72% woo-bulk-edit-products

Code Review | WooCommerce Bulk Edit Products - WP Sheet Editor

WordPress plugin WooCommerce Bulk Edit Products - WP Sheet Editor scored72%from 54 tests.

About plugin

  • Plugin page: woo-bulk-edit-pro...
  • Plugin version: 1.8.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.4
  • WordPress version: 6.3.1
  • First release: Nov 9, 2018
  • Latest release: Nov 1, 2023
  • Number of updates: 127
  • Update frequency: every 14.3 days
  • Top authors: JoseVega (100%)

Code review

54 tests

User reviews

172 reviews

Install metrics

9,000+ active /212,852 total downloads

Benchmarks

Plugin footprint 64% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲6.65MB] [CPU: ▲40.40ms] 50% from 4 tests

Analyzing server-side resources used by WooCommerce Bulk Edit Products - WP Sheet Editor
It is recommended to improve the following
  • RAM: Try to keep total memory usage under 10MB (currently 10.21MB on /wp-admin/admin.php?page=freemius)
  • Extra RAM: Try to keep extra memory usage under 5MB (currently 6.65MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /9.91 ▲6.4593.85 ▲50.89
Dashboard /wp-admin10.04 ▲6.6996.63 ▲31.96
Posts /wp-admin/edit.php10.09 ▲6.73100.93 ▲51.36
Add New Post /wp-admin/post-new.php12.62 ▲6.73131.10 ▲27.37
Media Library /wp-admin/upload.php9.97 ▲6.73104.15 ▲69.46
Extensions /wp-admin/admin.php?page=vg_sheet_editor_extensions9.9883.05
Sheet Editor /wp-admin/admin.php?page=vgse-bulk-edit-product10.1685.87
Settings /wp-admin/admin.php?page=vg_sheet_editor10.0687.35
WP Sheet Editor /wp-admin/admin.php?page=vg_sheet_editor_setup9.9984.45
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius10.2176.41

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 348 new files
Database: no new tables, 14 new options
New WordPress options
theysaidso_admin_options
vgse_columns_visibility_migrated
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
fs_active_plugins
fs_accounts
vg_sheet_editor
widget_recent-comments
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce Bulk Edit Products - WP Sheet Editor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,986 ▲24014.28 ▼0.291.67 ▲0.0132.56 ▼7.18
Dashboard /wp-admin2,377 ▲2035.56 ▼0.1095.10 ▲5.3088.27 ▲45.50
Posts /wp-admin/edit.php2,185 ▲851.99 ▼0.0339.04 ▲3.6537.58 ▲3.55
Add New Post /wp-admin/post-new.php1,746 ▲22020.21 ▼2.84840.28 ▲178.8664.12 ▲3.81
Media Library /wp-admin/upload.php1,487 ▲904.18 ▲0.02114.45 ▲18.4650.99 ▲10.19
Extensions /wp-admin/admin.php?page=vg_sheet_editor_extensions1,9605.95162.3777.64
Sheet Editor /wp-admin/admin.php?page=vgse-bulk-edit-product8064.08140.2422.14
Settings /wp-admin/admin.php?page=vg_sheet_editor2,1585.6572.0560.22
WP Sheet Editor /wp-admin/admin.php?page=vg_sheet_editor_setup2,0985.7275.7277.69
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius1,1391.6924.5532.15

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
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/woo-bulk-edit-products/vendor/freemius/includes/class-freemius.php+8546
    Undefined property: stdClass::$plugins
  • This plugin does not fully uninstall, leaving 12 options in the database
    • fs_debug_mode
    • fs_accounts
    • fs_active_plugins
    • db_upgraded
    • vgse_columns_visibility
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • wpsewcp_welcome_redirect
    • ...

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
Even though everything seems fine, this is not 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
Please fix the following
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-bulk-edit-products/modules/wp-sheet-editor/inc/integrations/visual-composer.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/woo-bulk-edit-products/vendor/vg-plugin-sdk/views/settings-page.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/woo-bulk-edit-products/vendor/vg-plugin-sdk/views/page-template.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/woo-bulk-edit-products/vendor/vg-plugin-sdk/samples/email-optin-form.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/woo-bulk-edit-products/vendor/vg-plugin-sdk/views/settings-form.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function VGSE() in wp-content/plugins/woo-bulk-edit-products/modules/wp-sheet-editor/views/whats-new/2.6.0.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-bulk-edit-products/modules/wp-sheet-editor/inc/integrations/elementor.php:107

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 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: bulk edit, spreadsheet, products, woocommerce, wp sheet editor

woo-bulk-edit-products/products.php 77% from 13 tests

The principal PHP file in "WooCommerce Bulk Edit Products - WP Sheet Editor" v. 1.8.7 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("4.7" instead of "3.0")
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-bulk-edit-products.php" instead of "products.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin175,266 lines of code in 249 files:
LanguageFilesBlank linesComment linesLines of code
PO File2718,19926,92661,468
JavaScript1215,52818,55554,363
PHP18510,45018,81848,536
CSS189173397,726
SVG4002,691
Markdown12110429
JSON10037
XML13016

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity74.39
▷ Minimum class complexity1.00
▷ Maximum class complexity3,096.00
Average method complexity4.60
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes92
▷ Abstract classes33.26%
▷ Concrete classes8996.74%
▷ Final classes00.00%
Methods1,951
▷ Static methods23912.25%
▷ Public methods1,52278.01%
▷ Protected methods170.87%
▷ Private methods41221.12%
Functions130
▷ Named functions12696.92%
▷ Anonymous functions43.08%
Constants154
▷ Global constants10769.48%
▷ Class constants4730.52%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
11 PNG files occupy 0.15MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
modules/wp-sheet-editor/assets/imgs/freemius-icon.png12.54KB6.09KB▼ 51.47%
modules/wp-sheet-editor/assets/imgs/icon-20x20.png45.33KB0.51KB▼ 98.88%
modules/wp-sheet-editor/assets/vendor/images/chosen-sprite.png0.53KB0.88KB0.00%
vendor/freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
modules/wp-sheet-editor/assets/vendor/images/input-unchecked.png0.15KB0.15KB0.00%