89% tl-bulk-comment-delete

Code Review | TL Bulk Comment Delete

WordPress plugin TL Bulk Comment Delete scored89%from 54 tests.

About plugin

  • Plugin page: tl-bulk-comment-d...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.9.2
  • WordPress version: 6.3.1
  • First release: Aug 20, 2020
  • Latest release: Mar 27, 2022
  • Number of updates: 8
  • Update frequency: every 73.1 days
  • Top authors: techsurf (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /2,482 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.01ms] Passed 4 tests

A check of server-side resources used by TL Bulk Comment Delete
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.32 ▲2.74
Dashboard /wp-admin3.33 ▲0.0349.61 ▲0.75
Posts /wp-admin/edit.php3.38 ▲0.0347.91 ▲0.13
Add New Post /wp-admin/post-new.php5.91 ▲0.0384.66 ▼14.06
Media Library /wp-admin/upload.php3.26 ▲0.0338.00 ▼2.85

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

TL Bulk Comment Delete: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲1914.35 ▲0.451.75 ▼0.3543.96 ▲5.27
Dashboard /wp-admin2,208 ▲315.55 ▼0.1088.57 ▼9.8741.73 ▼1.78
Posts /wp-admin/edit.php2,116 ▲162.01 ▲0.0237.11 ▼0.7942.67 ▲2.26
Add New Post /wp-admin/post-new.php1,557 ▲3123.30 ▲0.29683.36 ▼65.5056.99 ▲4.74
Media Library /wp-admin/upload.php1,413 ▲134.11 ▼0.19108.75 ▼12.7248.43 ▼0.68

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
The SRP test was a success

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)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === tl-bulk-comment-delete === )
The official readme.txt might help

tl-bulk-comment-delete/tl-bulk-delete-comments.php 92% from 13 tests

The primary PHP file in "TL Bulk Comment Delete" version 1.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("tl-bulk-comment-delete.php" instead of "tl-bulk-delete-comments.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 plugin116 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP21317116

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png42.21KB16.76KB▼ 60.29%