90% trackdesk-for-woocommerce

Code Review | Trackdesk for WooCommerce

WordPress plugin Trackdesk for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: trackdesk-for-woo...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.2
  • WordPress version: 6.3.1
  • First release: Jun 23, 2023
  • Latest release: Sep 21, 2023
  • Number of updates: 9
  • Update frequency: every 10.3 days
  • Top authors: trackdesk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /463 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.89ms] Passed 4 tests

This is a short check of server-side resources used by Trackdesk for WooCommerce
Server-side resource usage in normal parameters
Page Memory (MB) CPU Time (ms)
Home / 3.50 ▲0.04 38.87 ▼1.17
Dashboard /wp-admin 3.35 ▲0.00 49.77 ▼9.69
Posts /wp-admin/edit.php 3.46 ▲0.11 46.77 ▼0.61
Add New Post /wp-admin/post-new.php 5.93 ▲0.04 80.01 ▼20.08
Media Library /wp-admin/upload.php 3.27 ▲0.04 38.15 ▲0.13

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Trackdesk for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page Nodes Memory (MB) Script (ms) Layout (ms)
Home / 2,826 ▲40 14.35 ▼0.00 1.91 ▼0.02 43.50 ▲3.73
Dashboard /wp-admin 2,210 ▲30 5.62 ▼0.06 94.73 ▲2.07 44.28 ▲3.29
Posts /wp-admin/edit.php 2,110 ▲7 2.01 ▲0.02 35.20 ▼0.39 35.55 ▼2.55
Add New Post /wp-admin/post-new.php 1,538 ▲12 23.08 ▲0.08 656.33 ▼23.32 60.20 ▲7.85
Media Library /wp-admin/upload.php 1,415 ▲15 4.20 ▲0.06 95.92 ▼22.14 41.20 ▼6.65

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Requires php: Version format is invalid
Please take inspiration from this readme.txt

trackdesk-for-woocommerce/trackdesk-for-woocommerce.php Passed 13 tests

The main file in "Trackdesk for WooCommerce" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
88 characters long description:
Integrating the trackdesk tracking code into your WordPress website is simple and quick.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected627 lines of code in 8 files:
Language Files Blank lines Comment lines Lines of code
PHP 8 126 17 627

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code 0.30
Average class complexity 7.38
▷ Minimum class complexity 1.00
▷ Maximum class complexity 24.00
Average method complexity 2.06
▷ Minimum method complexity 1.00
▷ Maximum method complexity 12.00
Code structure
Namespaces 0
Interfaces 0
Traits 0
Classes 8
▷ Abstract classes 0 0.00%
▷ Concrete classes 8 100.00%
▷ Final classes 0 0.00%
Methods 48
▷ Static methods 19 39.58%
▷ Public methods 33 68.75%
▷ Protected methods 5 10.42%
▷ Private methods 10 20.83%
Functions 0
▷ Named functions 0 0.00%
▷ Anonymous functions 0 0.00%
Constants 32
▷ Global constants 2 6.25%
▷ Class constants 30 93.75%
▷ Public constants 30 100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin