10% bulk-edit-for-woocommerce

Code Review | Bulk Edit for WooCommerce

WordPress plugin Bulk Edit for WooCommerce scored10%from 54 tests.

About plugin

  • Plugin page: bulk-edit-for-woo...
  • Plugin version: 0.0.6
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1.0-6.0
  • WordPress version: 6.3.1
  • First release: Apr 23, 2019
  • Latest release: Jun 6, 2022
  • Number of updates: 9
  • Update frequency: every 127.2 days
  • Top authors: pressmaximum (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,865 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Warning in wp-content/plugins/bulk-edit-for-woocommerce/inc/class-plugin.php+145
    require_once(wp-content/plugins/bulk-edit-for-woocommerce/inc/class-tax-query.php): failed to open stream: No such file or directory

Server metrics [RAM: ▲0.00MB] [CPU: ▼0.08ms] Passed 4 tests

A check of server-side resources used by Bulk Edit for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.86 ▲0.61
Dashboard /wp-admin3.31 ▲0.0044.36 ▼2.23
Posts /wp-admin/edit.php3.36 ▲0.0048.74 ▲1.66
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.62 ▲2.51
Media Library /wp-admin/upload.php3.23 ▲0.0033.10 ▼0.36

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 112 new files
Database: 1 new table, 7 new options
New tables
wp_pbe_tasks
New WordPress options
db_upgraded
pbe_db_version
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bulk Edit for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.19 ▼1.261.87 ▲0.1943.04 ▲2.30
Dashboard /wp-admin2,209 ▲245.90 ▲0.99108.22 ▼3.6741.98 ▲1.02
Posts /wp-admin/edit.php2,092 ▲32.02 ▼0.0139.06 ▲2.4136.31 ▲3.91
Add New Post /wp-admin/post-new.php1,533 ▼023.16 ▲0.14635.46 ▲11.7357.16 ▲0.99
Media Library /wp-admin/upload.php1,388 ▼34.25 ▲0.0596.02 ▲1.0240.27 ▼4.13

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_pbe_tasks
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • pbe_db_version
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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 items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/bulk-edit-for-woocommerce/templates/pricing.php
    • > /wp-content/plugins/bulk-edit-for-woocommerce/templates/helps.php
  • 14× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/bulk-edit-for-woocommerce/templates/form-action-edit.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/bulk-edit-for-woocommerce/bulk-edit.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function pbe() in wp-content/plugins/bulk-edit-for-woocommerce/templates/tasks.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Meta_Query' not found in wp-content/plugins/bulk-edit-for-woocommerce/inc/class-meta-query.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Product_Simple' not found in wp-content/plugins/bulk-edit-for-woocommerce/index.php:9
    • > PHP Warning
      Use of undefined constant PBE_DIR - assumed 'PBE_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/bulk-edit-for-woocommerce/inc/class-setting.php on line 691
    • > PHP Fatal error
      Uncaught Error: Call to undefined function pbe() in wp-content/plugins/bulk-edit-for-woocommerce/templates/task-details.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function pbe_settings() in wp-content/plugins/bulk-edit-for-woocommerce/inc/configs.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/bulk-edit-for-woocommerce/templates/bulk-edit.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/bulk-edit-for-woocommerce/templates/modal.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes: Please take inspiration from this readme.txt

bulk-edit-for-woocommerce/bulk-edit.php 85% from 13 tests

"Bulk Edit for WooCommerce" version 0.0.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("bulk-edit-for-woocommerce.php" instead of "bulk-edit.php")

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
No dangerous file extensions were detected32,444 lines of code in 98 files:
LanguageFilesBlank linesComment linesLines of code
JSON20012,638
JavaScript612,7591,09711,793
PHP227774974,751
CSS10231102,361
Sass1433822
XML18443
Markdown112036

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity53.90
▷ Minimum class complexity1.00
▷ Maximum class complexity159.00
Average method complexity4.34
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods159
▷ Static methods85.03%
▷ Public methods15698.11%
▷ Protected methods31.89%
▷ Private methods00.00%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants4
▷ Global constants4100.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
There are no PNG files in this plugin