84% bulk-order-update-for-woocommerce

Code Review | Bulk Order Update for WooCommerce

WordPress plugin Bulk Order Update for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: bulk-order-update...
  • Plugin version: 1.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Aug 13, 2021
  • Latest release: Jun 5, 2023
  • Number of updates: 29
  • Update frequency: every 22.8 days
  • Top authors: sayantandas20 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

80+ active /1,244 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
This plugin's installer ran successfully

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

A check of server-side resources used by Bulk Order Update for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.79 ▼3.82
Dashboard /wp-admin3.31 ▼0.0442.78 ▼13.97
Posts /wp-admin/edit.php3.36 ▲0.0047.87 ▼4.40
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.15 ▼6.11
Media Library /wp-admin/upload.php3.23 ▲0.0036.38 ▲3.40

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Bulk Order Update for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.27 ▼1.114.79 ▲2.8238.67 ▼12.59
Dashboard /wp-admin2,209 ▲245.88 ▼0.03114.95 ▼1.5040.54 ▲2.01
Posts /wp-admin/edit.php2,092 ▼01.96 ▼0.0540.28 ▼4.3735.37 ▲0.23
Add New Post /wp-admin/post-new.php1,533 ▲523.07 ▲4.79671.87 ▲56.9355.65 ▲1.60
Media Library /wp-admin/upload.php1,388 ▲34.19 ▼0.0097.64 ▼11.9641.50 ▲0.61

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_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/bulk-order-update-for-woocommerce/inc/loadview.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/bulk-order-update-for-woocommerce/configuration.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulk-order-update-for-woocommerce/inc/plugin-html.php:14
    • > PHP Warning
      Use of undefined constant bouw_IMAGE_PATH - assumed 'bouw_IMAGE_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/bulk-order-update-for-woocommerce/inc/loadview.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulk-order-update-for-woocommerce/inc/register-scripts.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser 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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: order, csv, bulk-update, split response, large-csv...

bulk-order-update-for-woocommerce/configuration.php 92% from 13 tests

The primary PHP file in "Bulk Order Update for WooCommerce" version 1.6 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bulk-order-update-for-woocommerce.php" instead of "configuration.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin587 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP44634250
JavaScript12127206
CSS1242131

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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 files were detected