77% woocommerce-bulk-order-form

Code Review | Quick/Bulk Order Form for WooCommerce

WordPress plugin Quick/Bulk Order Form for WooCommerce scored77%from 54 tests.

About plugin

  • Plugin page: woocommerce-bulk-...
  • Plugin version: 3.6.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.4
  • WordPress version: 6.3.1
  • First release: Mar 6, 2014
  • Latest release: Nov 8, 2023
  • Number of updates: 102
  • Update frequency: every 34.9 days
  • Top authors: pomegranate (37.25%)jprummer (36.27%)wpovernight (28.43%)

Code review

54 tests

User reviews

18 reviews

Install metrics

1,000+ active /58,125 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
Installer ran successfully

Server metrics [RAM: ▼0.10MB] [CPU: ▼10.87ms] Passed 4 tests

Server-side resources used by Quick/Bulk Order Form for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0737.53 ▼6.93
Dashboard /wp-admin3.27 ▼0.0431.82 ▼17.15
Posts /wp-admin/edit.php3.34 ▼0.0337.31 ▼11.42
Add New Post /wp-admin/post-new.php5.51 ▼0.3878.55 ▼7.97
Media Library /wp-admin/upload.php3.27 ▲0.0429.83 ▼2.05

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 107 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Quick/Bulk Order Form for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲1114.27 ▼0.121.67 ▼0.0637.94 ▼7.11
Dashboard /wp-admin2,203 ▲265.63 ▼0.0392.88 ▼8.5139.74 ▼5.35
Posts /wp-admin/edit.php2,108 ▲82.02 ▼0.0042.26 ▲3.8938.28 ▲2.68
Add New Post /wp-admin/post-new.php1,534 ▲523.27 ▼0.07644.72 ▼43.8754.16 ▲3.42
Media Library /wp-admin/upload.php1,405 ▲24.18 ▼0.01101.92 ▲5.6041.97 ▼0.45

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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 output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/woocommerce-bulk-order-form/templates/form-footer.php
    • > /wp-content/plugins/woocommerce-bulk-order-form/templates/form-header.php
  • 13× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Undefined variable: count in wp-content/plugins/woocommerce-bulk-order-form/templates/form-content.php on line 1
    • > PHP Notice
      Undefined variable: is_variation in wp-content/plugins/woocommerce-bulk-order-form/templates/table-footer.php on line 4
    • > PHP Notice
      Undefined variable: template in wp-content/plugins/woocommerce-bulk-order-form/templates/form-header.php on line 1
    • > PHP Notice
      Undefined variable: formid in wp-content/plugins/woocommerce-bulk-order-form/templates/form-header.php on line 1
    • > PHP Notice
      Undefined variable: count in wp-content/plugins/woocommerce-bulk-order-form/templates/form-content.php on line 1
    • > PHP Notice
      Undefined variable: count in wp-content/plugins/woocommerce-bulk-order-form/templates/form-content.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/woocommerce-bulk-order-form/templates/form-content.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/woocommerce-bulk-order-form/templates/table-footer.php:14
    • > PHP Notice
      Undefined variable: formid in wp-content/plugins/woocommerce-bulk-order-form/templates/form-content.php on line 1
    • > PHP Notice
      Undefined variable: formid in wp-content/plugins/woocommerce-bulk-order-form/templates/form-header.php on line 1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes: You can take inspiration from this readme.txt

woocommerce-bulk-order-form/wc-bulk-order-form.php 85% from 13 tests

"Quick/Bulk Order Form for WooCommerce" version 3.6.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woocommerce-bulk-order-form.php" instead of "wc-bulk-order-form.php")
  • Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "3.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin13,142 lines of code in 65 files:
LanguageFilesBlank linesComment linesLines of code
PO File162,4254,1624,555
JavaScript107781,1564,222
PHP327181,0533,285
CSS7105891,080

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity21.23
▷ Minimum class complexity2.00
▷ Maximum class complexity102.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes22
▷ Abstract classes14.55%
▷ Concrete classes2195.45%
▷ Final classes00.00%
Methods191
▷ Static methods157.85%
▷ Public methods17089.01%
▷ Protected methods105.24%
▷ Private methods115.76%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants35
▷ Global constants35100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/css/input-unchecked.png0.15KB0.15KB0.00%
assets/css/input-checked.png0.31KB0.32KB0.00%
includes/css/input-checked.png0.31KB0.32KB0.00%
assets/css/input-unchecked.png0.15KB0.15KB0.00%
assets/images/wpo-helper.png17.86KB5.25KB▼ 70.62%