83% bp-custom-order-status-for-woocommerce

Code Review | Custom Order Status Manager for WooCommerce

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

About plugin

  • Plugin page: bp-custom-order-s...
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.2.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.4
  • WordPress version: 6.3.1
  • First release: Feb 18, 2022
  • Latest release: Nov 6, 2023
  • Number of updates: 38
  • Update frequency: every 16.5 days
  • Top authors: niloybrightvessel (73.68%)im_niloy (28.95%)

Code review

54 tests

User reviews

38 reviews

Install metrics

10,000+ active /49,983 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
Installer ran successfully

Server metrics [RAM: ▲1.57MB] [CPU: ▲6.36ms] Passed 4 tests

Analyzing server-side resources used by Custom Order Status Manager for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /5.04 ▲1.5848.92 ▲3.05
Dashboard /wp-admin4.88 ▲1.5758.92 ▲8.12
Posts /wp-admin/edit.php4.93 ▲1.5761.21 ▲13.04
Add New Post /wp-admin/post-new.php7.48 ▲1.5997.66 ▲1.23
Media Library /wp-admin/upload.php4.80 ▲1.5756.98 ▲26.09

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Custom Order Status Manager for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2814.34 ▲0.061.75 ▼0.2040.82 ▼3.42
Dashboard /wp-admin2,205 ▲275.65 ▼0.0788.58 ▼14.9641.98 ▼1.24
Posts /wp-admin/edit.php2,111 ▲112.02 ▲0.0642.07 ▲3.8236.99 ▲0.87
Add New Post /wp-admin/post-new.php1,536 ▲823.06 ▼0.10695.80 ▲67.9657.02 ▲6.82
Media Library /wp-admin/upload.php1,413 ▲134.19 ▼0.0498.81 ▼1.7645.99 ▼0.08

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 8 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • bp_custom_order_status_installed
    • rdn_fetch_14725b97
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bp-custom-order-status-for-woocommerce/include/functions.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bp-custom-order-status-for-woocommerce/include/dokan.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Email' not found in wp-content/plugins/bp-custom-order-status-for-woocommerce/src/emails/class-wcbv-order-status-email.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes: Please take inspiration from this readme.txt

bp-custom-order-status-for-woocommerce/main.php 69% from 13 tests

"Custom Order Status Manager for WooCommerce" version 1.1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • 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
  • Requires PHP: The required version number must match the one declared in readme.txt ("7.4" instead of "7.2.0")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("bp-custom-order-status-for-woocommerce.php" instead of "main.php")
  • Requires at least: The required version number must match the one declared in readme.txt ("5.0" instead of "4.9")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected34,862 lines of code in 148 files:
LanguageFilesBlank linesComment linesLines of code
PHP1144,0262,58417,519
JavaScript71,3175066,616
Sass1697035,674
CSS43765094,872
JSON430163
XML10016
SVG2002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity24.61
▷ Minimum class complexity1.00
▷ Maximum class complexity151.00
Average method complexity5.81
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes77
▷ Abstract classes22.60%
▷ Concrete classes7597.40%
▷ Final classes22.67%
Methods381
▷ Static methods7118.64%
▷ Public methods36194.75%
▷ Protected methods133.41%
▷ Private methods71.84%
Functions38
▷ Named functions2976.32%
▷ Anonymous functions923.68%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/bp-logo.png4.99KB2.68KB▼ 46.35%
include/codestar/assets/images/checkerboard.png2.29KB2.54KB0.00%
assets/img/bp-logo-icon.png1.09KB0.87KB▼ 20.45%