74% webd-woocommerce-product-bulk-edit

Code Review | WebD Woocommerce Product Bulk Edit

WordPress plugin WebD Woocommerce Product Bulk Edit scored74%from 54 tests.

About plugin

  • Plugin page: webd-woocommerce-...
  • Plugin version: 1.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.2-6.0
  • WordPress version: 6.3.1
  • First release: Nov 7, 2017
  • Latest release: May 31, 2022
  • Number of updates: 35
  • Update frequency: every 47.6 days
  • Top authors: taz_bambu (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,397 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.86MB] [CPU: ▼47.19ms] Passed 4 tests

Server-side resources used by WebD Woocommerce Product Bulk Edit
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1042.64 ▼2.26
Dashboard /wp-admin3.10 ▼0.2524.69 ▼48.42
Posts /wp-admin/edit.php3.10 ▼0.2622.91 ▼31.13
Add New Post /wp-admin/post-new.php3.10 ▼2.7924.30 ▼92.05
Media Library /wp-admin/upload.php3.10 ▼0.1323.13 ▼17.14
Bulk Edit /wp-admin/edit.php?post_type=product&page=webd-woocommerce-bulk-edit3.1025.28
Bulk Edit /wp-admin/admin.php?page=webd-woocommerce-bulk-edit3.1031.66

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WebD Woocommerce Product Bulk Edit
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲4713.27 ▼1.294.58 ▲2.2844.85 ▲1.91
Dashboard /wp-admin2,227 ▲565.78 ▲0.2688.87 ▼0.4536.05 ▼6.53
Posts /wp-admin/edit.php2,134 ▲342.25 ▲0.2238.81 ▼2.2233.87 ▼4.69
Add New Post /wp-admin/post-new.php1,566 ▲3823.28 ▲0.08613.46 ▼17.9334.32 ▼25.47
Media Library /wp-admin/upload.php1,429 ▲264.43 ▲0.2198.58 ▼11.2343.68 ▼3.55
Bulk Edit /wp-admin/edit.php?post_type=product&page=webd-woocommerce-bulk-edit1,5479.22305.5082.56
Bulk Edit /wp-admin/admin.php?page=webd-woocommerce-bulk-edit1,5489.68278.9150.93

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=webd-woocommerce-bulk-edit
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: product inline edit, woocommerce bulk edit, woocommerce, product bulk edit, product categories bulk edit...

webd-woocommerce-product-bulk-edit/webd-woocommerce-product-bulk-edit.php 92% from 13 tests

Analyzing the main PHP file in "WebD Woocommerce Product Bulk Edit" version 1.2
Please make the necessary changes and fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("3.0.1" instead of "2.2")

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
Success! There were no dangerous files found in this plugin1,835 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
SVG100685
PHP211521646
JavaScript16421256
CSS2405248

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity85.00
▷ Minimum class complexity85.00
▷ Maximum class complexity85.00
Average method complexity15.00
▷ Minimum method complexity3.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.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

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.14MB with 0.09MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/webd_woocommerce_bulk_edit_pro_square.png55.12KB19.19KB▼ 65.19%
images/webd_woocommerce_product_excel_importer_bulk_edit_pro_square.png53.55KB17.45KB▼ 67.42%
images/webd_woocommerce_bulk_edit.png37.10KB12.06KB▼ 67.49%