84% wp-delete-comments

Code Review | WP Delete Comments

WordPress plugin WP Delete Comments scored84%from 54 tests.

About plugin

  • Plugin page: wp-delete-comments
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.0.3
  • WordPress version: 6.3.1
  • First release: Jan 11, 2019
  • Latest release: Jan 11, 2019
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: embarkcode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /621 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by WP Delete Comments
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.12 ▼0.56
Dashboard /wp-admin3.34 ▲0.0349.65 ▼8.52
Posts /wp-admin/edit.php3.39 ▲0.0352.12 ▲1.54
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.90 ▼21.83
Media Library /wp-admin/upload.php3.26 ▲0.0339.21 ▲0.29

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

WP Delete Comments: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.40 ▼0.795.32 ▲3.5945.36 ▼5.47
Dashboard /wp-admin2,219 ▲284.93 ▼0.04112.61 ▼10.2341.70 ▼9.63
Posts /wp-admin/edit.php2,105 ▲132.01 ▼0.0437.58 ▼7.9933.94 ▼7.49
Add New Post /wp-admin/post-new.php1,546 ▲2623.03 ▼0.28658.51 ▼50.7773.54 ▲5.92
Media Library /wp-admin/upload.php1,395 ▲74.25 ▲0.05102.98 ▼11.1444.63 ▲0.22

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
The following issues need your attention
  • 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-delete-comments/wp-delete-comments.php:14

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Invalid url: ""
The official readme.txt is a good inspiration

wp-delete-comments/wp-delete-comments.php Passed 13 tests

The primary PHP file in "WP Delete Comments" version 1.0 is used by WordPress to initiate all plugin functionality
100 characters long description:
WP Delete Comments allows you to delete your Pending, Approved, Spam, Trash or All of your comments.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin153 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22929153

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions6
▷ Named functions6100.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