89% order-status-control-for-woocommerce

Code Review | Order Status Control for WooCommerce

WordPress plugin Order Status Control for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: order-status-cont...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.2.2
  • WordPress version: 6.3.1
  • First release: Jul 10, 2021
  • Latest release: May 26, 2023
  • Number of updates: 20
  • Update frequency: every 34.3 days
  • Top authors: niloybrightvessel (80%)im_niloy (25%)

Code review

54 tests

User reviews

3 reviews

Install metrics

3,000+ active /16,151 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼10.10ms] Passed 4 tests

Analyzing server-side resources used by Order Status Control for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0736.14 ▼5.91
Dashboard /wp-admin3.37 ▲0.0244.91 ▼16.15
Posts /wp-admin/edit.php3.48 ▲0.1347.90 ▼0.04
Add New Post /wp-admin/post-new.php5.95 ▲0.0682.95 ▼17.57
Media Library /wp-admin/upload.php3.29 ▲0.0633.84 ▼0.76

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Order Status Control for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.62 ▲0.251.69 ▼0.0938.77 ▼4.02
Dashboard /wp-admin2,198 ▲185.63 ▲0.0287.76 ▲0.8440.51 ▲0.21
Posts /wp-admin/edit.php2,100 ▼31.94 ▼0.0238.86 ▼3.8437.20 ▼0.75
Add New Post /wp-admin/post-new.php1,526 ▼023.15 ▲0.05674.74 ▲13.8563.52 ▲3.99
Media Library /wp-admin/upload.php1,394 ▼34.20 ▼0.0196.02 ▼6.9839.84 ▼5.20

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

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 83% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention: You can take inspiration from this readme.txt

order-status-control-for-woocommerce/bv-order-status.php 69% from 13 tests

The main PHP script in "Order Status Control for WooCommerce" version 1.0.2 is automatically included on every request by WordPress
You should first fix the following items:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.8" instead of "5.3")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("order-status-control-for-woocommerce.php" instead of "bv-order-status.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,284 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP14224576856
CSS11610305
JSON30099
JavaScript17324

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity16.12
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity3.03
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes112.50%
Methods61
▷ Static methods2642.62%
▷ Public methods5895.08%
▷ Protected methods00.00%
▷ Private methods34.92%
Functions5
▷ Named functions240.00%
▷ Anonymous functions360.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin