84% woo-order-test

Code Review | WooCommerce Order Test

WordPress plugin WooCommerce Order Test scored84%from 54 tests.

About plugin

  • Plugin page: woo-order-test
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.4.1
  • WordPress version: 6.3.1
  • First release: Aug 12, 2016
  • Latest release: Nov 14, 2023
  • Number of updates: 32
  • Update frequency: every 82.8 days
  • Top authors: wpfixit (100%)

Code review

54 tests

User reviews

18 reviews

Install metrics

9,000+ active /84,268 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Analyzing server-side resources used by WooCommerce Order Test
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.32 ▼6.41
Dashboard /wp-admin3.33 ▼0.0245.60 ▼15.24
Posts /wp-admin/edit.php3.38 ▲0.0247.82 ▲6.39
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.87 ▼6.18
Media Library /wp-admin/upload.php3.25 ▲0.0236.85 ▲2.05

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

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

Browser metrics Passed 4 tests

WooCommerce Order Test: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7214.26 ▼0.471.73 ▼0.0544.35 ▲0.04
Dashboard /wp-admin2,208 ▲305.60 ▼0.0688.29 ▼43.6940.52 ▼4.91
Posts /wp-admin/edit.php2,113 ▲101.97 ▲0.0139.60 ▲1.7737.07 ▲1.58
Add New Post /wp-admin/post-new.php1,536 ▲1023.20 ▲0.25659.33 ▼41.3752.01 ▼15.24
Media Library /wp-admin/upload.php1,407 ▲74.27 ▲0.00107.08 ▼7.2142.38 ▼6.55

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-order-test/wc-ot.php:19

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: woocommerce checkout, woocommerce, woocommerce order, woocommerce orders

woo-order-test/wc-ot.php 85% from 13 tests

The primary PHP file in "WooCommerce Order Test" version 2.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("woo-order-test.php" instead of "wc-ot.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 184 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected110 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1221699
CSS10011

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin