83% custom-order-status-for-woocommerce

Code Review | Custom Order Status for WooCommerce - Create and manage custom order status for WooCommerce

WordPress plugin Custom Order Status for WooCommerce - Create and manage custom order status for WooCommerce scored 83% from 54 tests.

About plugin

  • Plugin page: custom-order-stat...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8.1
  • WordPress version: 6.3.1
  • First release: Feb 5, 2021
  • Latest release: Sep 23, 2021
  • Number of updates: 3
  • Update frequency: every 93.7 days
  • Top authors: mithublue (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 511 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼6.77ms] Passed 4 tests

Analyzing server-side resources used by Custom Order Status for WooCommerce - Create and manage custom order status for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0637.93 ▼9.43
Dashboard /wp-admin3.36 ▲0.0546.59 ▲0.93
Posts /wp-admin/edit.php3.41 ▲0.0546.12 ▼4.70
Add New Post /wp-admin/post-new.php5.94 ▲0.0587.05 ▼13.89
Media Library /wp-admin/upload.php3.28 ▲0.0535.48 ▲4.26
Custom Order Status /wp-admin/edit.php?post_type=woocos_order_status3.3238.27

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Custom Order Status for WooCommerce - Create and manage custom order status for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲5613.20 ▼1.481.92 ▼0.0640.91 ▼0.63
Dashboard /wp-admin2,206 ▲155.86 ▲0.96104.92 ▼11.8739.05 ▼2.22
Posts /wp-admin/edit.php2,089 ▲32.05 ▲0.0336.64 ▼3.6133.14 ▼3.96
Add New Post /wp-admin/post-new.php1,533 ▼323.04 ▼0.21672.07 ▲34.1253.07 ▲3.08
Media Library /wp-admin/upload.php1,391 ▲64.24 ▲0.06100.12 ▼10.2941.27 ▼2.04
Custom Order Status /wp-admin/edit.php?post_type=woocos_order_status1,0522.0631.3532.94

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
The following issues need your attention
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-order-status-for-woocommerce/inc/class-admin-panel.php:39
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/custom-order-status-for-woocommerce/woo-custom-order-status.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: order, custom order, custom order status, status, woocommerce...

custom-order-status-for-woocommerce/woo-custom-order-status.php 77% from 13 tests

The main file in "Custom Order Status for WooCommerce - Create and manage custom order status for WooCommerce" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • 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 ("custom-order-status-for-woocommerce.php" instead of "woo-custom-order-status.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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 detected12,318 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JSON30012,080
PHP34974153
JavaScript2146065
Markdown19020

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity4.67
▷ Minimum class complexity3.00
▷ Maximum class complexity6.00
Average method complexity1.85
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods13
▷ Static methods323.08%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.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
PNG images were not found in this plugin