84% order-tracking-codes-for-woocommerce

Code Review | Order Tracking Codes for WooCommerce

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

About plugin

  • Plugin page: order-tracking-co...
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Aug 17, 2020
  • Latest release: Aug 29, 2023
  • Number of updates: 33
  • Update frequency: every 34.1 days
  • Top authors: wecomplugins (72.73%)gkastorinis (27.27%)elpap (6.06%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,505 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.21ms] Passed 4 tests

Analyzing server-side resources used by Order Tracking Codes for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.09 ▼3.37
Dashboard /wp-admin3.31 ▲0.0045.71 ▼0.89
Posts /wp-admin/edit.php3.36 ▲0.0043.21 ▼4.82
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.60 ▼11.75
Media Library /wp-admin/upload.php3.23 ▲0.0036.06 ▲0.55

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Order Tracking Codes for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.301.75 ▲0.1443.76 ▲6.07
Dashboard /wp-admin2,198 ▲275.63 ▲0.0793.33 ▲7.1341.45 ▲1.61
Posts /wp-admin/edit.php2,100 ▲32.03 ▲0.0734.39 ▼1.7632.26 ▼2.27
Add New Post /wp-admin/post-new.php1,526 ▼223.00 ▼0.52653.42 ▲22.6266.73 ▲3.43
Media Library /wp-admin/upload.php1,400 ▼04.21 ▲0.0492.30 ▼14.1341.97 ▼3.53

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

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
Even though no errors were found, 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
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/order-tracking-codes-for-woocommerce/order-tracking-codes-for-woocommerce.admin.php

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: voucher, woocommerce, tracking, shipping, order

order-tracking-codes-for-woocommerce/order-tracking-codes-for-woocommerce.php Passed 13 tests

The entry point to "Order Tracking Codes for WooCommerce" version 1.2.0 is a PHP file that has certain tags in its header comment area
93 characters long description:
Add order tracking codes to WooCommerce orders and include them in "Order Completed" e-mails.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin214 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP33725179
PO File17935

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods214.29%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There were not PNG files found in your plugin