84% bulk-comments-management

Code Review | Bulk Comments Management

WordPress plugin Bulk Comments Management scored84%from 54 tests.

About plugin

  • Plugin page: bulk-comments-man...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.2
  • WordPress version: 6.3.1
  • First release: Jul 8, 2013
  • Latest release: Jul 8, 2013
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: yakuphoca (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

1,000+ active /24,580 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 gracefully, with no errors

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

Analyzing server-side resources used by Bulk Comments Management
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.77 ▼4.29
Dashboard /wp-admin3.31 ▲0.0144.00 ▼1.27
Posts /wp-admin/edit.php3.36 ▲0.0044.03 ▼6.93
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.77 ▼9.01
Media Library /wp-admin/upload.php3.23 ▲0.0034.91 ▼0.06
Bulk Comments Management /wp-admin/tools.php?page=yakuphoca-bulk-comments-management3.1829.68

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bulk Comments Management
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.16 ▼0.191.75 ▼0.0836.53 ▼8.34
Dashboard /wp-admin2,202 ▲285.64 ▲0.0683.53 ▼6.6038.91 ▼2.41
Posts /wp-admin/edit.php2,104 ▲252.08 ▲0.0532.92 ▼4.8033.76 ▼1.84
Add New Post /wp-admin/post-new.php1,530 ▲423.02 ▼0.57678.61 ▲10.4148.43 ▼8.54
Media Library /wp-admin/upload.php1,407 ▲104.23 ▲0.06107.36 ▲11.8444.19 ▲2.90
Bulk Comments Management /wp-admin/tools.php?page=yakuphoca-bulk-comments-management8651.9924.3731.93

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/tools.php?page=yakuphoca-bulk-comments-management
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/tools.php?page=yakuphoca-bulk-comments-management
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: enable comments, bulk, delete tracakbacks, unapproved, comments...

bulk-comments-management/bulk-comments-management.php Passed 13 tests

"Bulk Comments Management" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
121 characters long description:
You can delete all approved, pending or spam comments and you can disable comments and pings for posts only by one click.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected112 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1610112

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity5.33
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin