83% order-status-customizer-for-woocommerce

Code Review | Order Status Customizer for Woocommerce

WordPress plugin Order Status Customizer for Woocommerce scored83%from 54 tests.

About plugin

  • Plugin page: order-status-cust...
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6.14-5.5
  • WordPress version: 6.3.1
  • First release: Oct 17, 2020
  • Latest release: May 7, 2021
  • Number of updates: 4
  • Update frequency: every 50.8 days
  • Top authors: novarum (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /422 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼8.81ms] Passed 4 tests

This is a short check of server-side resources used by Order Status Customizer for Woocommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0344.65 ▲0.11
Dashboard /wp-admin3.37 ▼0.0155.27 ▼11.64
Posts /wp-admin/edit.php3.49 ▲0.0950.85 ▲0.56
Add New Post /wp-admin/post-new.php5.95 ▲0.0388.15 ▼24.26
Media Library /wp-admin/upload.php3.30 ▲0.0338.05 ▲2.16

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Order Status Customizer for Woocommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.01 ▼0.721.76 ▲0.0445.44 ▲3.68
Dashboard /wp-admin2,192 ▲125.48 ▼0.2088.47 ▲1.1540.66 ▼3.82
Posts /wp-admin/edit.php2,103 ▲62.03 ▲0.0736.60 ▲2.6133.55 ▼0.92
Add New Post /wp-admin/post-new.php1,526 ▼1123.42 ▲5.14666.21 ▲29.9159.52 ▼9.50
Media Library /wp-admin/upload.php1,400 ▲34.14 ▼0.25101.08 ▼4.1844.82 ▲0.48

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 did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/order-status-customizer-for-woocommerce/admin/partials/woocommerce-order-status-customizer-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === order-status-customizer-for-woocommerce === )
Please take inspiration from this readme.txt

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

The main PHP script in "Order Status Customizer for Woocommerce" version 1.1.4 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Requires at least: Required version does not match the one declared in readme.txt ("3.0.1" instead of "2.6.14")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("order-status-customizer-for-woocommerce.php" instead of "woocommerce-order-status-customizer.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin877 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP10401664744
CSS18478
JavaScript1402955

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 problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity11.83
▷ Minimum class complexity1.00
▷ Maximum class complexity63.00
Average method complexity2.62
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods40
▷ Static methods25.00%
▷ Public methods3587.50%
▷ Protected methods00.00%
▷ Private methods512.50%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
2 PNG files occupy 0.14MB with 0.10MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png64.27KB16.56KB▼ 74.24%
assets/screenshot-1.png76.73KB19.87KB▼ 74.11%