89% pw-bulk-edit

Code Review | PW WooCommerce Bulk Edit

WordPress plugin PW WooCommerce Bulk Edit scored89%from 54 tests.

About plugin

  • Plugin page: pw-bulk-edit
  • Plugin version: 2.121
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Sep 9, 2016
  • Latest release: Nov 28, 2023
  • Number of updates: 275
  • Update frequency: every 9.6 days
  • Top authors: pimwick (100%)

Code review

54 tests

User reviews

217 reviews

Install metrics

20,000+ active /653,297 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.86ms] Passed 4 tests

A check of server-side resources used by PW WooCommerce Bulk Edit
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0738.57 ▼8.31
Dashboard /wp-admin3.38 ▲0.0747.63 ▼2.51
Posts /wp-admin/edit.php3.49 ▲0.1347.59 ▼1.60
Add New Post /wp-admin/post-new.php5.96 ▲0.0792.82 ▼11.03
Media Library /wp-admin/upload.php3.30 ▲0.0734.21 ▲0.71

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 93 new files
Database: no new tables, 7 new options
New WordPress options
pwbe_database_version
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

PW WooCommerce Bulk Edit: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.70 ▲0.491.66 ▼0.1838.00 ▼4.90
Dashboard /wp-admin2,198 ▲215.58 ▼0.1496.58 ▼5.2842.49 ▼1.39
Posts /wp-admin/edit.php2,100 ▲31.94 ▼0.0140.97 ▲2.4536.52 ▼3.87
Add New Post /wp-admin/post-new.php1,530 ▼623.06 ▼0.39646.57 ▼33.1159.01 ▼10.16
Media Library /wp-admin/upload.php1,403 ▲64.21 ▲0.05102.65 ▼2.9341.83 ▼2.46

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • pwbe_database_version
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

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:
  • Tags: There are too many tags (14 tag instead of maximum 10)
You can take inspiration from this readme.txt

pw-bulk-edit/pw-bulk-edit.php 85% from 13 tests

"PW WooCommerce Bulk Edit" version 2.121's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.5" instead of "4.0")
  • Description: Keep the plugin description shorter than 140 characters (currently 156 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected6,475 lines of code in 51 files:
LanguageFilesBlank linesComment linesLines of code
PHP256933992,776
CSS183132161,393
JavaScript4286301,160
SVG100685
PO File1164199323
HTML1522122
XML10016

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity21.50
▷ Minimum class complexity1.00
▷ Maximum class complexity74.00
Average method complexity4.67
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes880.00%
Methods56
▷ Static methods2137.50%
▷ Public methods4885.71%
▷ Protected methods00.00%
▷ Private methods814.29%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants9
▷ Global constants888.89%
▷ Class constants111.11%
▷ Public constants1100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
26 PNG files occupy 1.24MB with 0.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
docs/assets/blueprint-css/plugins/buttons/icons/cross.png0.64KB0.72KB0.00%
docs/assets/blueprint-css/plugins/link-icons/icons/pdf.png0.58KB0.57KB▼ 1.02%
docs/assets/images/screenshot-4.png158.27KB42.84KB▼ 72.94%
docs/assets/blueprint-css/plugins/link-icons/icons/xls.png0.65KB0.63KB▼ 2.41%
docs/assets/images/screenshot-3.png105.87KB34.38KB▼ 67.53%