90% order-status-rules-for-woocommerce

Code Review | Order Status Rules for WooCommerce

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

About plugin

  • Plugin page: order-status-rule...
  • Plugin version: 3.4.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Jul 11, 2019
  • Latest release: Sep 23, 2023
  • Number of updates: 73
  • Update frequency: every 21.0 days
  • Top authors: algoritmika (79.45%)wpcodefactory (21.92%)

Code review

54 tests

User reviews

8 reviews

Install metrics

2,000+ active /27,080 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.01MB] [CPU: ▼9.47ms] Passed 4 tests

An overview of server-side resources used by Order Status Rules for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.90 ▼9.24
Dashboard /wp-admin3.31 ▼0.0451.44 ▼10.53
Posts /wp-admin/edit.php3.36 ▲0.0051.53 ▼2.54
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.51 ▼13.99
Media Library /wp-admin/upload.php3.23 ▲0.0035.08 ▼4.10

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Order Status Rules for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6914.48 ▲0.261.93 ▼0.0444.12 ▲3.40
Dashboard /wp-admin2,221 ▲154.82 ▼0.07116.25 ▲7.9041.78 ▲0.19
Posts /wp-admin/edit.php2,100 ▼32.03 ▲0.0736.17 ▼6.9535.19 ▼1.36
Add New Post /wp-admin/post-new.php1,545 ▼023.38 ▲0.24687.32 ▼9.1855.09 ▼16.15
Media Library /wp-admin/upload.php1,403 ▲34.25 ▼0.0398.45 ▼8.8043.19 ▼3.49

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: order status, order, woocommerce, status, woo commerce

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

"Order Status Rules for WooCommerce" version 3.4.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
49 characters long description:
Automate WooCommerce order statuses. Beautifully.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected2,430 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP193611,0822,430

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.69
Average class complexity19.50
▷ Minimum class complexity1.00
▷ Maximum class complexity97.00
Average method complexity3.92
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes15.56%
Methods114
▷ Static methods10.88%
▷ Public methods114100.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 were not PNG files found in your plugin