89% wp-bulk-delete

Code Review | WP Bulk Delete

WordPress plugin WP Bulk Delete scored89%from 54 tests.

About plugin

  • Plugin page: wp-bulk-delete
  • Plugin version: 1.2.6
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.4
  • WordPress version: 6.3.1
  • First release: Oct 24, 2016
  • Latest release: Nov 6, 2023
  • Number of updates: 54
  • Update frequency: every 47.6 days
  • Top authors: xylus (94.44%)Dharm1025 (7.41%)

Code review

54 tests

User reviews

72 reviews

Install metrics

60,000+ active /505,265 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.68MB] [CPU: ▼1.08ms] 75% from 4 tests

A check of server-side resources used by WP Bulk Delete
It is recommended to improve the following
  • CPU: Total CPU usage should be kept under 500.00ms (currently 2,382.66ms on /wp-admin/admin.php?page=wpbd_support)
PageMemory (MB)CPU Time (ms)
Home /4.14 ▲0.6752.18 ▲12.27
Dashboard /wp-admin4.04 ▲0.7048.73 ▼13.56
Posts /wp-admin/edit.php4.10 ▲0.7448.61 ▲4.83
Add New Post /wp-admin/post-new.php6.56 ▲0.6884.33 ▼2.82
Media Library /wp-admin/upload.php3.91 ▲0.6841.73 ▲7.22
Cleanup /wp-admin/admin.php?page=wpbd_cleanup3.8836.68
Delete Users /wp-admin/admin.php?page=delete_all_users3.8837.88
Delete Posts /wp-admin/admin.php?page=delete_all_posts3.8833.46
Support & Help /wp-admin/admin.php?page=wpbd_support4.422,382.66
Delete Terms /wp-admin/admin.php?page=wpbd_delete_terms3.8835.17
Delete Comments /wp-admin/admin.php?page=delete_all_comments3.8834.95
Delete Meta Fields /wp-admin/admin.php?page=delete_all_meta3.8839.02

Server storage [IO: ▲0.47MB] [DB: ▲0.18MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by WP Bulk Delete
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲9314.28 ▼0.081.90 ▲0.1938.50 ▼5.90
Dashboard /wp-admin2,245 ▲655.62 ▼0.0587.06 ▼14.0441.52 ▼1.76
Posts /wp-admin/edit.php2,150 ▲501.94 ▲0.0036.05 ▲0.6034.69 ▲1.62
Add New Post /wp-admin/post-new.php1,565 ▲3923.34 ▼0.22706.74 ▲6.7966.52 ▼6.43
Media Library /wp-admin/upload.php1,450 ▲504.24 ▲0.0898.12 ▼18.9045.06 ▼2.61
Cleanup /wp-admin/admin.php?page=wpbd_cleanup1,0692.1538.5132.58
Delete Users /wp-admin/admin.php?page=delete_all_users1,2692.3742.8432.02
Delete Posts /wp-admin/admin.php?page=delete_all_posts1,0032.1133.9629.95
Support & Help /wp-admin/admin.php?page=wpbd_support1,1902.0434.3140.70
Delete Terms /wp-admin/admin.php?page=wpbd_delete_terms1,0292.2441.8629.38
Delete Comments /wp-admin/admin.php?page=delete_all_comments1,2482.3532.6931.17
Delete Meta Fields /wp-admin/admin.php?page=delete_all_meta1,0562.2331.0531.73

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 25 tag instead of maximum 10
You can take inspiration from this readme.txt

wp-bulk-delete/wp-bulk-delete.php Passed 13 tests

The main PHP script in "WP Bulk Delete" version 1.2.6 is automatically included on every request by WordPress
120 characters long description:
Bulk delete and cleanup anything like posts, comments, users, meta fields, taxonomy terms. with powerful filter options.

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
Success! There were no dangerous files found in this plugin5,747 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
PHP255839823,641
CSS460581,359
PO File1230302473
JavaScript32143274

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity120.00
▷ Minimum class complexity8.00
▷ Maximum class complexity342.00
Average method complexity11.82
▷ Minimum method complexity1.00
▷ Maximum method complexity67.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods33
▷ Static methods13.03%
▷ Public methods3090.91%
▷ Protected methods00.00%
▷ Private methods39.09%
Functions71
▷ Named functions71100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
9 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/images/ui-icons_cc0000_256x240.png4.51KB4.18KB▼ 7.28%
assets/css/images/ui-icons_777620_256x240.png4.51KB4.18KB▼ 7.28%
assets/images/chosen-sprite.png0.53KB0.88KB0.00%
assets/css/images/ui-icons_555555_256x240.png6.91KB4.18KB▼ 39.47%
assets/css/images/ui-icons_ffffff_256x240.png6.33KB4.18KB▼ 33.99%