84% order-status-time-field-for-woocommerce

Code Review | Order Status Time Field for WooCommerce

WordPress plugin Order Status Time Field for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: order-status-time...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.5.2
  • WordPress version: 6.3.1
  • First release: Jun 1, 2016
  • Latest release: Mar 20, 2020
  • Number of updates: 5
  • Update frequency: every 277.8 days
  • Top authors: hearken (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /815 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.91ms] Passed 4 tests

Server-side resources used by Order Status Time Field for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.18 ▼2.11
Dashboard /wp-admin3.31 ▲0.0149.27 ▼0.62
Posts /wp-admin/edit.php3.36 ▲0.0147.90 ▼2.08
Add New Post /wp-admin/post-new.php5.89 ▲0.0197.87 ▲1.15
Media Library /wp-admin/upload.php3.24 ▲0.0136.21 ▼2.83

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Order Status Time Field for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.342.13 ▲0.6240.03 ▼4.93
Dashboard /wp-admin2,189 ▲125.55 ▼0.1186.31 ▼1.0938.70 ▼1.86
Posts /wp-admin/edit.php2,097 ▼32.01 ▲0.0233.62 ▼0.8234.44 ▼3.07
Add New Post /wp-admin/post-new.php1,526 ▼023.38 ▲0.33609.05 ▼72.3051.15 ▼1.33
Media Library /wp-admin/upload.php1,403 ▼04.29 ▲0.1699.14 ▼9.3241.81 ▼2.81

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/order-status-time-field-for-woocommerce/plugin-credit.php:10
    • > PHP Notice
      Undefined variable: potent_slug in wp-content/plugins/order-status-time-field-for-woocommerce/plugin-credit.php on line 9

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
5 plugin tags: complete, completed, woocommerce, order, status

order-status-time-field-for-woocommerce/order-status-time-field-for-woocommerce.php Passed 13 tests

The main PHP script in "Order Status Time Field for WooCommerce" version 1.0.0 is automatically included on every request by WordPress
89 characters long description:
Records the time of an order status change as an order meta field for reporting purposes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin147 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22116147

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/potent-logo.png7.60KB5.27KB▼ 30.74%