90% order-status-for-woocommerce

Code Review | Custom Order Status for WooCommerce

WordPress plugin Custom Order Status for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: order-status-for-...
  • Plugin version: 1.4.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4
  • WordPress version: 6.3.1
  • First release: Jan 28, 2019
  • Latest release: Nov 19, 2023
  • Number of updates: 21
  • Update frequency: every 85.5 days
  • Top authors: algoritmika (61.9%)wpcodefactory (42.86%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /3,602 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by Custom Order Status for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.87 ▼11.33
Dashboard /wp-admin3.31 ▲0.0043.61 ▼3.43
Posts /wp-admin/edit.php3.36 ▲0.0043.72 ▼1.67
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.64 ▼12.27
Media Library /wp-admin/upload.php3.23 ▲0.0029.41 ▼5.08

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Custom Order Status for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.20 ▲0.041.77 ▼0.1242.82 ▲0.47
Dashboard /wp-admin2,192 ▲155.54 ▲0.0193.34 ▼1.0637.92 ▼2.43
Posts /wp-admin/edit.php2,103 ▲31.94 ▲0.0039.57 ▲0.1435.36 ▼5.06
Add New Post /wp-admin/post-new.php1,526 ▼022.95 ▼0.45603.94 ▼138.2552.73 ▼3.48
Media Library /wp-admin/upload.php1,400 ▼04.18 ▼0.0795.68 ▼10.2542.99 ▼5.42

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

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

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: status, woocommerce, order status, woo commerce

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

The principal PHP file in "Custom Order Status for WooCommerce" v. 1.4.5 is loaded by WordPress automatically on each request
50 characters long description:
Manage order statuses in WooCommerce. Beautifully.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,154 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP91765911,141
JavaScript222013

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity21.71
▷ Minimum class complexity1.00
▷ Maximum class complexity73.00
Average method complexity3.54
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes114.29%
Methods57
▷ Static methods11.75%
▷ Public methods57100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin