10% wppdev-woocommerce-order-status

Code Review | WPPDEV WooCommerce Order Status

WordPress plugin WPPDEV WooCommerce Order Status scored10%from 54 tests.

About plugin

  • Plugin page: wppdev-woocommerc...
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0.1
  • WordPress version: 6.3.1
  • First release: Jul 1, 2021
  • Latest release: Aug 18, 2022
  • Number of updates: 38
  • Update frequency: every 10.9 days
  • Top authors: fabiojun (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /846 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)

Server metrics [RAM: ▲0.76MB] [CPU: ▼1.18ms] Passed 4 tests

This is a short check of server-side resources used by WPPDEV WooCommerce Order Status
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.18 ▲0.7250.67 ▼11.78
Dashboard /wp-admin4.07 ▲0.7273.70 ▲6.12
Posts /wp-admin/edit.php4.18 ▲0.8357.11 ▲7.36
Add New Post /wp-admin/post-new.php6.72 ▲0.8491.94 ▼6.28
Media Library /wp-admin/upload.php4.00 ▲0.7745.31 ▲7.22

Server storage [IO: ▲6.29MB] [DB: ▲0.01MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 399 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPPDEV WooCommerce Order Status
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2914.74 ▲0.361.84 ▼0.3042.79 ▼3.23
Dashboard /wp-admin2,203 ▲125.94 ▲0.06116.15 ▲10.5443.52 ▲3.11
Posts /wp-admin/edit.php2,086 ▼62.01 ▼0.0136.70 ▼1.9534.97 ▼2.88
Add New Post /wp-admin/post-new.php1,533 ▼123.20 ▲0.20589.76 ▼90.9060.87 ▲3.81
Media Library /wp-admin/upload.php1,382 ▼64.17 ▲0.0197.67 ▼23.9641.81 ▼7.27

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
  • 231× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\SocketHandler' not found in wp-content/plugins/wppdev-woocommerce-order-status/vendor/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/wppdev-woocommerce-order-status/vendor/wpplugindev/framework/vendor/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Processor\\MemoryProcessor' not found in wp-content/plugins/wppdev-woocommerce-order-status/vendor/wpplugindev/framework/vendor/monolog/monolog/src/Monolog/Processor/MemoryUsageProcessor.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\SocketHandler' not found in wp-content/plugins/wppdev-woocommerce-order-status/vendor/wpplugindev/framework/vendor/monolog/monolog/src/Monolog/Handler/SlackHandler.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\GroupHandler' not found in wp-content/plugins/wppdev-woocommerce-order-status/vendor/wpplugindev/framework/vendor/monolog/monolog/src/Monolog/Handler/FallbackGroupHandler.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractSyslogHandler' not found in wp-content/plugins/wppdev-woocommerce-order-status/vendor/wpplugindev/framework/vendor/monolog/monolog/src/Monolog/Handler/SyslogHandler.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractHandler' not found in wp-content/plugins/wppdev-woocommerce-order-status/vendor/wpplugindev/framework/vendor/monolog/monolog/src/Monolog/Handler/SamplingHandler.php:33
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\SocketHandler' not found in wp-content/plugins/wppdev-woocommerce-order-status/vendor/wpplugindev/framework/vendor/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php:32
    • > PHP Fatal error
      Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/wppdev-woocommerce-order-status/vendor/wpplugindev/framework/vendor/monolog/monolog/src/Monolog/Processor/UidProcessor.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'WPPluginsDev\\WooOrderWorkflow\\Models\\Model_Status' not found in wp-content/plugins/wppdev-woocommerce-order-status/app/Models/Status/Model_Status_ManufactoryDef.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: woocommerce order status, order workflow, custom order status, order status, order fulfillment...

wppdev-woocommerce-order-status/wppdev-woocommerce-order-status.php 92% from 13 tests

Analyzing the main PHP file in "WPPDEV WooCommerce Order Status" version 1.1.1
It is important to fix the following:
  • Domain Path: The domain path folder was not found ("/app/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin20,956 lines of code in 251 files:
LanguageFilesBlank linesComment linesLines of code
PHP1943,9459,61815,824
JavaScript362993312,418
CSS320094949
Markdown52100676
JSON600477
PO File3181209424
Sass2340159
TypeScript13118
XML10011

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity10.94
▷ Minimum class complexity1.00
▷ Maximum class complexity120.00
Average method complexity2.66
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces29
Interfaces20
Traits14
Classes271
▷ Abstract classes165.90%
▷ Concrete classes25594.10%
▷ Final classes62.35%
Methods1,878
▷ Static methods29615.76%
▷ Public methods1,38473.70%
▷ Protected methods35919.12%
▷ Private methods1357.19%
Functions44
▷ Named functions24.55%
▷ Anonymous functions4295.45%
Constants224
▷ Global constants41.79%
▷ Class constants22098.21%
▷ Public constants16675.45%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin