84% order-tracking-for-woocommerce

Code Review | Order Tracking for WooCommerce

WordPress plugin Order Tracking for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: order-tracking-fo...
  • Plugin version: 1.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.9.2
  • WordPress version: 6.3.1
  • First release: May 11, 2021
  • Latest release: Mar 16, 2022
  • Number of updates: 5
  • Update frequency: every 61.8 days
  • Top authors: sidngr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /363 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
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.03ms] Passed 4 tests

This is a short check of server-side resources used by Order Tracking for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.30 ▼0.46
Dashboard /wp-admin3.31 ▲0.0144.31 ▼3.88
Posts /wp-admin/edit.php3.36 ▲0.0143.01 ▼6.79
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.95 ▼5.00
Media Library /wp-admin/upload.php3.23 ▲0.0035.01 ▲3.27

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Order Tracking for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9613.68 ▼0.701.96 ▲0.2439.57 ▼0.42
Dashboard /wp-admin2,206 ▲185.83 ▲0.7399.52 ▼15.9641.81 ▼1.43
Posts /wp-admin/edit.php2,095 ▲32.00 ▼0.0536.71 ▼6.7332.41 ▼5.25
Add New Post /wp-admin/post-new.php1,519 ▲517.62 ▲0.02668.82 ▼12.4360.03 ▲7.89
Media Library /wp-admin/upload.php1,397 ▲124.35 ▲0.0899.78 ▼0.0243.07 ▼0.76

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'SN_OT_INIT' not found in wp-content/plugins/order-tracking-for-woocommerce/templates/navigation.php:1

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: shipping, tracking, order, woocommerce

order-tracking-for-woocommerce/init.php 92% from 13 tests

The primary PHP file in "Order Tracking for WooCommerce" version 1.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("order-tracking-for-woocommerce.php" instead of "init.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected2,115 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript5134249950
PHP14172317827
CSS21216338

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.35
Average class complexity6.50
▷ Minimum class complexity3.00
▷ Maximum class complexity13.00
Average method complexity1.85
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods39
▷ Static methods410.26%
▷ Public methods3897.44%
▷ Protected methods00.00%
▷ Private methods12.56%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants17
▷ Global constants17100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/carrier-logos/correos.png13.61KB3.83KB▼ 71.87%
assets/images/carrier-logos/canpar.png10.65KB4.10KB▼ 61.55%
assets/images/icon.png1.31KB0.56KB▼ 57.07%
assets/images/carrier-logos/nexive.png6.44KB2.17KB▼ 66.34%
assets/images/carrier-logos/fedex.png7.63KB2.80KB▼ 63.29%