93% bulk-delete

Code Review | Bulk Delete

WordPress plugin Bulk Delete scored 93% from 53 tests.

About plugin

  • Plugin page: bulk-delete
  • Plugin version: 6.0.2
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.8
  • WordPress version: 5.8.1
  • First release: Mar 19, 2009
  • Latest release: Oct 13, 2021
  • Number of updates: 194
  • Update frequency: every 23.9 days
  • Top authors: sudar (99.48%)Otto42 (1.03%)

Code review

53 tests

User reviews

114 reviews

Install metrics

50,000+ active / 909,163 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲1.48MB] [CPU: ▼293.76ms] Passed 4 tests

Server-side resources used by Bulk Delete
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.09 ▲0.3737.95 ▲18.37
Dashboard /wp-admin4.94 ▲1.8950.45 ▲7.02
Posts /wp-admin/edit.php5.00 ▲1.8953.76 ▲7.56
Add New Post /wp-admin/post-new.php7.26 ▲1.8397.84 ▼1,191.08
Media Library /wp-admin/upload.php4.83 ▲1.8242.52 ▲1.45
Bulk Delete Users /wp-admin/admin.php?page=bulk-delete-users4.8546.69
Bulk Delete Misc /wp-admin/admin.php?page=bulk-delete-misc4.8431.17
Scheduled Jobs /wp-admin/admin.php?page=bulk-delete-cron4.8436.53
Bulk Delete Posts /wp-admin/admin.php?page=bulk-delete-posts4.8748.50
Bulk Delete Meta Fields /wp-admin/admin.php?page=bulk-delete-metas4.8533.27
System Info /wp-admin/admin.php?page=bulk-delete-system-info4.8745.29
Addon Licenses /wp-admin/admin.php?page=bulk-delete-addon4.8537.42
Bulk Delete Terms /wp-admin/admin.php?page=bulk-delete-terms4.8435.27
Bulk Delete Pages /wp-admin/admin.php?page=bulk-delete-pages4.8536.39

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 171 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Bulk Delete: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,713 ▲10715.84 ▲0.297.90 ▼2.0445.83 ▲1.44
Dashboard /wp-admin2,991 ▲1395.88 ▲0.06138.28 ▼8.28106.58 ▲3.60
Posts /wp-admin/edit.php2,770 ▲642.70 ▲0.0165.20 ▲2.5391.13 ▼1.74
Add New Post /wp-admin/post-new.php1,696 ▼15516.84 ▼1.91361.05 ▼10.12106.12 ▼0.94
Media Library /wp-admin/upload.php1,839 ▲645.01 ▲0.03150.20 ▲0.82114.42 ▲3.00
Bulk Delete Users /wp-admin/admin.php?page=bulk-delete-users2,5513.8199.4587.05
Bulk Delete Misc /wp-admin/admin.php?page=bulk-delete-misc1,3302.8776.9364.74
Scheduled Jobs /wp-admin/admin.php?page=bulk-delete-cron1,5802.0957.8460.33
Bulk Delete Posts /wp-admin/admin.php?page=bulk-delete-posts4,1483.60109.76109.88
Bulk Delete Meta Fields /wp-admin/admin.php?page=bulk-delete-metas2,7873.7496.9492.16
System Info /wp-admin/admin.php?page=bulk-delete-system-info1,1712.2256.1268.02
Addon Licenses /wp-admin/admin.php?page=bulk-delete-addon1,3892.0959.8958.66
Bulk Delete Terms /wp-admin/admin.php?page=bulk-delete-terms1,7253.42102.13118.64
Bulk Delete Pages /wp-admin/admin.php?page=bulk-delete-pages1,7553.0982.2688.43

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
  • 3× 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/bulk-delete/include/meta/class-bulk-delete-user-meta.php:280
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulk-delete/include/meta/class-bulk-delete-comment-meta.php:316
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulk-delete/include/meta/class-bulk-delete-post-meta.php:346

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 important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: post, user, delete, bulk, draft...

bulk-delete/bulk-delete.php 77% from 13 tests

This is the main PHP file of "Bulk Delete" version 6.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 152 characters long)
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("languages/")
  • Domain Path: Prefix the domain path with a forward slash character ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin12,371 lines of code in 143 files:
LanguageFilesBlank linesComment linesLines of code
PHP1202,6547,07310,208
PO File127581,4421,712
JavaScript482119391
CSS591435
JSON10023
Markdown1002

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity8.64
▷ Minimum class complexity1.00
▷ Maximum class complexity73.00
Average method complexity2.15
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces19
Interfaces0
Traits0
Classes101
▷ Abstract classes2726.73%
▷ Concrete classes7473.27%
▷ Final classes22.70%
Methods695
▷ Static methods11516.55%
▷ Public methods36452.37%
▷ Protected methods30543.88%
▷ Private methods263.74%
Functions79
▷ Named functions79100.00%
▷ Anonymous functions00.00%
Constants47
▷ Global constants00.00%
▷ Class constants47100.00%
▷ Public constants47100.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/images/ui-bg_glass_65_ffffff_1x400.png0.26KB0.09KB▼ 66.79%
assets/css/images/ui-icons_2e83ff_256x240.png4.57KB4.18KB▼ 8.43%
assets/css/images/ui-icons_222222_256x240.png6.86KB4.18KB▼ 39.05%
assets/css/images/ui-bg_glass_75_e6e6e6_1x400.png0.32KB0.15KB▼ 53.40%
assets/css/images/ui-icons_888888_256x240.png6.94KB4.18KB▼ 39.78%