84% wp-bulk-post-delete

Code Review | WP Bulk Post Delete

WordPress plugin WP Bulk Post Delete scored84%from 54 tests.

About plugin

  • Plugin page: wp-bulk-post-delete
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.0-4.2.2
  • WordPress version: 6.3.1
  • First release: May 12, 2016
  • Latest release: May 23, 2016
  • Number of updates: 19
  • Update frequency: every 0.6 days
  • Top authors: shjain (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,045 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.93ms] Passed 4 tests

Analyzing server-side resources used by WP Bulk Post Delete
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.0245.78 ▼0.35
Dashboard /wp-admin3.59 ▼0.0551.29 ▼16.13
Posts /wp-admin/edit.php3.70 ▲0.0250.22 ▼2.87
Add New Post /wp-admin/post-new.php6.17 ▲0.0287.01 ▼9.95
Media Library /wp-admin/upload.php3.51 ▲0.0237.96 ▼2.78

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Bulk Post Delete
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲1914.73 ▲0.052.09 ▲0.1544.24 ▲2.22
Dashboard /wp-admin2,214 ▲375.64 ▼0.0695.78 ▲1.1441.87 ▲0.23
Posts /wp-admin/edit.php2,116 ▲162.01 ▼0.0133.82 ▼6.1335.40 ▼4.12
Add New Post /wp-admin/post-new.php1,558 ▲2623.20 ▼0.05661.90 ▼29.6449.45 ▼7.99
Media Library /wp-admin/upload.php1,419 ▲194.17 ▼0.0898.35 ▼17.3443.43 ▼2.39

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-bulk-post-delete/bulk_post_delete.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were 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: bulk, category, bulk-delete, post, remove...

wp-bulk-post-delete/bulk_post_delete.php 92% from 13 tests

"WP Bulk Post Delete" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-bulk-post-delete.php" instead of "bulk_post_delete.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected144 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1398144

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin