78% order-status-per-product-for-woocommerce

Code Review | Order Status Per Product For Woocommerce

WordPress plugin Order Status Per Product For Woocommerce scored78%from 54 tests.

About plugin

  • Plugin page: order-status-per-...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 11, 2023
  • Latest release: Oct 2, 2023
  • Number of updates: 4
  • Update frequency: every 58.2 days
  • Top authors: silverplugins217 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /166 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.45ms] Passed 4 tests

An overview of server-side resources used by Order Status Per Product For Woocommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.92 ▲2.51
Dashboard /wp-admin3.31 ▲0.0045.56 ▼3.23
Posts /wp-admin/edit.php3.36 ▲0.0044.84 ▲0.76
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.86 ▼9.82
Media Library /wp-admin/upload.php3.23 ▲0.0032.40 ▲3.03

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Order Status Per Product For Woocommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,849 ▲7813.85 ▼0.741.71 ▼0.2043.70 ▼1.95
Dashboard /wp-admin2,206 ▲185.88 ▲0.03105.29 ▲0.7242.01 ▲1.39
Posts /wp-admin/edit.php2,086 ▼32.04 ▲0.0535.01 ▼1.8835.74 ▼2.48
Add New Post /wp-admin/post-new.php1,537 ▲423.19 ▲0.01602.90 ▼53.4756.15 ▼16.17
Media Library /wp-admin/upload.php1,388 ▲34.19 ▼0.0194.11 ▼6.3741.78 ▼1.91

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% 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
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/order-status-per-product-for-woocommerce/order-status-per-product-for-woocommerce.php
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/order-status-per-product-for-woocommerce/main/fronted/osppfw-front.php:53
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/order-status-per-product-for-woocommerce/main/resources/osppfw-language.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/order-status-per-product-for-woocommerce/main/backend/osppfw-backend.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/order-status-per-product-for-woocommerce/main/resources/osppfw-load-js-css.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/order-status-per-product-for-woocommerce/main/resources/osppfw-installation-require.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Contributors: The plugin contributors field is not present
You can look at the official readme.txt

order-status-per-product-for-woocommerce/order-status-per-product-for-woocommerce.php 92% from 13 tests

This is the main PHP file of "Order Status Per Product For Woocommerce" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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
Everything looks great! No dangerous files found in this plugin416 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP66731392
CSS10018
JavaScript20116

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG images were found in this plugin