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


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
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.87 ▼1.17
Dashboard /wp-admin3.35 ▲0.0049.77 ▼9.69
Posts /wp-admin/edit.php3.46 ▲0.1146.77 ▼0.61
Add New Post /wp-admin/post-new.php5.93 ▲0.0480.01 ▼20.08
Media Library /wp-admin/upload.php3.27 ▲0.0438.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

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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲4014.35 ▼0.001.91 ▼0.0243.50 ▲3.73
Dashboard /wp-admin2,210 ▲305.62 ▼0.0694.73 ▲2.0744.28 ▲3.29
Posts /wp-admin/edit.php2,110 ▲72.01 ▲0.0235.20 ▼0.3935.55 ▼2.55
Add New Post /wp-admin/post-new.php1,538 ▲1223.08 ▲0.08656.33 ▼23.3260.20 ▲7.85
Media Library /wp-admin/upload.php1,415 ▲154.20 ▲0.0695.92 ▼22.1441.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


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:
LanguageFilesBlank linesComment linesLines of code

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 code0.30
Average class complexity7.38
▷ Minimum class complexity1.00
▷ Maximum class complexity24.00
Average method complexity2.06
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
▷ Static methods1939.58%
▷ Public methods3368.75%
▷ Protected methods510.42%
▷ Private methods1020.83%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants26.25%
▷ Class constants3093.75%
▷ Public constants30100.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