84% order-status-history-for-woocommerce

Code Review | Order Status History for WooCommerce

WordPress plugin Order Status History for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: order-status-hist...
  • Plugin version: 1.8.6.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Apr 14, 2020
  • Latest release: Aug 13, 2022
  • Number of updates: 140
  • Update frequency: every 6.1 days
  • Top authors: alx359 (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

900+ active /7,116 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Analyzing server-side resources used by Order Status History for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.93 ▼0.39
Dashboard /wp-admin3.31 ▼0.0445.37 ▼14.38
Posts /wp-admin/edit.php3.36 ▲0.0044.54 ▼4.40
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.71 ▼19.49
Media Library /wp-admin/upload.php3.23 ▲0.0031.71 ▼2.74

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Order Status History for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲2614.49 ▼0.092.19 ▲0.2549.80 ▲6.20
Dashboard /wp-admin2,203 ▲265.56 ▼0.0984.76 ▼2.0640.12 ▼2.88
Posts /wp-admin/edit.php2,088 ▼122.04 ▲0.0535.06 ▼2.5734.49 ▼0.40
Add New Post /wp-admin/post-new.php1,544 ▲1823.18 ▲0.18576.73 ▼84.9563.06 ▼3.48
Media Library /wp-admin/upload.php1,411 ▲114.22 ▲0.01100.56 ▼4.2644.85 ▲0.88

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function oshwoo\\plugin_basename() in wp-content/plugins/order-status-history-for-woocommerce/includes/constants.php:60
    • > PHP Fatal error
      Uncaught Error: Call to undefined function oshwoo\\add_meta_box() in wp-content/plugins/order-status-history-for-woocommerce/includes/parts/donation_box.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: past orders, woocommerce orders, woocommerce history, order status, woocommerce order history

order-status-history-for-woocommerce/order-status-history-for-woocommerce.php Passed 13 tests

"Order Status History for WooCommerce" version 1.8.6.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
55 characters long description:
WooCommerce plugin for Order Status History and Reports

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin2,588 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP143115321,962
PO File1116182284
JavaScript43175248
CSS193594

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity114.00
▷ Minimum class complexity114.00
▷ Maximum class complexity114.00
Average method complexity4.14
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods36
▷ Static methods25.56%
▷ Public methods3494.44%
▷ Protected methods00.00%
▷ Private methods25.56%
Functions30
▷ Named functions1446.67%
▷ Anonymous functions1653.33%
Constants29
▷ Global constants620.69%
▷ Class constants2379.31%
▷ Public constants23100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/default.png2.77KB2.73KB▼ 1.66%