84% trackfree-woocommerce-tracking

Code Review | TrackFree – All-In-One WooCommerce Order Tracking

WordPress plugin TrackFree – All-In-One WooCommerce Order Tracking scored84%from 54 tests.

About plugin

  • Plugin page: trackfree-woocomm...
  • Plugin version: 2.0.9
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3.1
  • WordPress version: 6.3.1
  • First release: Mar 20, 2018
  • Latest release: Sep 16, 2023
  • Number of updates: 100
  • Update frequency: every 20.1 days
  • Top authors: trackfree (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /20,020 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.15MB] [CPU: ▼0.79ms] Passed 4 tests

This is a short check of server-side resources used by TrackFree – All-In-One WooCommerce Order Tracking
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1564.38 ▲21.59
Dashboard /wp-admin3.46 ▲0.1552.21 ▼0.40
Posts /wp-admin/edit.php3.57 ▲0.2149.39 ▼0.65
Add New Post /wp-admin/post-new.php6.04 ▲0.1589.95 ▼9.86
Media Library /wp-admin/upload.php3.38 ▲0.1540.84 ▲7.76

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 80 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for TrackFree – All-In-One WooCommerce Order Tracking
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.73 ▲0.172.27 ▲0.2161.41 ▲15.91
Dashboard /wp-admin2,195 ▲155.69 ▲0.0188.60 ▼1.1437.98 ▼7.24
Posts /wp-admin/edit.php2,097 ▼02.13 ▲0.1334.08 ▼3.5436.78 ▼1.02
Add New Post /wp-admin/post-new.php1,545 ▼023.14 ▼0.03651.87 ▼30.6352.22 ▼5.99
Media Library /wp-admin/upload.php1,403 ▲94.26 ▲0.06100.23 ▼20.0643.44 ▼4.11

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 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
Please take a closer look at the following
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/trackfree-woocommerce-tracking/includes/trackfree-shipment-overview.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/trackfree-woocommerce-tracking/getting-started.php:176
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/trackfree-woocommerce-tracking/includes/tf-order-details-page.php:183
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/trackfree-woocommerce-tracking/includes/trackfree-wc-order-summary.php:308
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/trackfree-woocommerce-tracking/includes/tf-settings-template.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/trackfree-woocommerce-tracking/templates/user-tracking.php:21

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 23 tag instead of maximum 10
The official readme.txt is a good inspiration

trackfree-woocommerce-tracking/trackfree.php 92% from 13 tests

The main PHP script in "TrackFree – All-In-One WooCommerce Order Tracking" version 2.0.9 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("trackfree-woocommerce-tracking.php" instead of "trackfree.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin31,844 lines of code in 53 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript125,2086,96016,883
PHP15397205,287
JSON1004,718
CSS4386322,483
PO File41,18002,416
SVG170057

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions78
▷ Named functions78100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
18 PNG files occupy 0.11MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icons/sad_smily.png7.56KB2.82KB▼ 62.72%
assets/icons/icon-failed-attempt.png3.98KB1.87KB▼ 53.04%
assets/plugins/leaflet/images/marker-icon-2x.png2.41KB2.52KB0.00%
assets/icons/icon-in-transit.png3.95KB1.87KB▼ 52.66%
assets/plugins/leaflet/images/marker-icon.png1.43KB1.55KB0.00%