84% bulk-comment-deleter

Code Review | Delete SPAM, Pending or ALL Comments

WordPress plugin Delete SPAM, Pending or ALL Comments scored84%from 54 tests.

About plugin

  • Plugin page: bulk-comment-deleter
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1
  • WordPress version: 6.3.1
  • First release: Jan 20, 2023
  • Latest release: Feb 20, 2023
  • Number of updates: 6
  • Update frequency: every 6.5 days
  • Top authors: pluginsclub (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /494 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.40ms] Passed 4 tests

This is a short check of server-side resources used by Delete SPAM, Pending or ALL Comments
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0240.07 ▲2.58
Dashboard /wp-admin3.33 ▼0.0248.44 ▼8.42
Posts /wp-admin/edit.php3.38 ▲0.0246.42 ▲0.04
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.58 ▼14.00
Media Library /wp-admin/upload.php3.25 ▲0.0234.94 ▼3.23

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Delete SPAM, Pending or ALL Comments
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲4514.39 ▼0.171.70 ▲0.1445.20 ▲6.16
Dashboard /wp-admin2,200 ▲195.62 ▼0.0883.24 ▼15.2640.38 ▼2.33
Posts /wp-admin/edit.php2,103 ▲31.98 ▼0.0136.27 ▼3.1732.13 ▼2.71
Add New Post /wp-admin/post-new.php1,531 ▲523.12 ▼0.26661.77 ▼42.8456.20 ▼8.40
Media Library /wp-admin/upload.php1,397 ▼64.21 ▲0.03101.65 ▼4.2444.06 ▼0.77

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulk-comment-deleter/bulk-comment-deleter.php:47

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed: The official readme.txt is a good inspiration

bulk-comment-deleter/bulk-comment-deleter.php Passed 13 tests

The main file in "Delete SPAM, Pending or ALL Comments" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
70 characters long description:
A plugin to delete SPAM, Unapproved or ALL comments from the database.

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
No dangerous file extensions were detected130 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1310130

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.68
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%
Functions3
▷ Named functions3100.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
PNG images were not found in this plugin