90% bp-bulk-delete

Code Review | BP Bulk Delete

WordPress plugin BP Bulk Delete scored90%from 54 tests.

About plugin

  • Plugin page: bp-bulk-delete
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1
  • WordPress version: 6.3.1
  • First release: Apr 16, 2017
  • Latest release: Dec 23, 2022
  • Number of updates: 32
  • Update frequency: every 64.9 days
  • Top authors: shanebp (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /5,895 total downloads

Benchmarks

Plugin footprint 83% 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.01MB] [CPU: ▼4.71ms] Passed 4 tests

Analyzing server-side resources used by BP Bulk Delete
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.73 ▲0.31
Dashboard /wp-admin3.31 ▲0.0148.46 ▼6.33
Posts /wp-admin/edit.php3.36 ▲0.0149.39 ▼0.54
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.03 ▼12.26
Media Library /wp-admin/upload.php3.23 ▲0.0137.65 ▲6.01

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

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

Browser metrics Passed 4 tests

Checking browser requirements for BP Bulk Delete
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲2913.28 ▼0.894.59 ▲2.7243.51 ▲1.71
Dashboard /wp-admin2,224 ▲214.87 ▼0.02102.35 ▼5.3543.25 ▼2.89
Posts /wp-admin/edit.php2,097 ▼02.03 ▲0.0235.41 ▼3.8737.06 ▲1.69
Add New Post /wp-admin/post-new.php1,554 ▲2818.23 ▲0.43634.74 ▲22.5358.52 ▲10.02
Media Library /wp-admin/upload.php1,403 ▲34.24 ▲0.0699.86 ▼1.2541.50 ▼6.34

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

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
There were no plugin tags found

bp-bulk-delete/bpbd.php 92% from 13 tests

This is the main PHP file of "BP Bulk Delete" version 1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bp-bulk-delete.php" instead of "bpbd.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin321 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP318116321

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity34.00
▷ Minimum class complexity34.00
▷ Maximum class complexity34.00
Average method complexity3.06
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods16.25%
▷ Public methods425.00%
▷ Protected methods00.00%
▷ Private methods1275.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin