68% wp-comments-remover

Code Review | WP Comments Remover

WordPress plugin WP Comments Remover scored68%from 54 tests.

About plugin

  • Plugin page: wp-comments-remover
  • Plugin version: 1.0.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.1
  • WordPress version: 6.3.1
  • First release: Dec 25, 2017
  • Latest release: Dec 25, 2017
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: shmider (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /3,597 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.95MB] [CPU: ▼39.77ms] Passed 4 tests

Analyzing server-side resources used by WP Comments Remover
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.46 ▲3.29
Dashboard /wp-admin2.99 ▼0.3122.85 ▼26.64
Posts /wp-admin/edit.php2.99 ▼0.3624.19 ▼41.62
Add New Post /wp-admin/post-new.php2.99 ▼2.8922.63 ▼79.97
Media Library /wp-admin/upload.php2.99 ▼0.2325.23 ▼10.86
WP Comments Remover /wp-admin/edit-comments.php?page=darklich_wp_comments_remover3.0022.46
All Comments /wp-admin/edit-comments.php2.9923.16

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Comments Remover
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲7113.23 ▼0.912.52 ▲0.8853.66 ▲12.82
Dashboard /wp-admin2,241 ▲415.86 ▼0.04101.41 ▼2.2942.53 ▼0.36
Posts /wp-admin/edit.php2,117 ▲142.01 ▼0.0340.20 ▼4.0336.53 ▼0.86
Add New Post /wp-admin/post-new.php1,563 ▲2123.06 ▲4.62679.24 ▲56.7659.64 ▲7.28
Media Library /wp-admin/upload.php1,414 ▲114.26 ▲0.0097.29 ▼1.6941.22 ▼3.21
WP Comments Remover /wp-admin/edit-comments.php?page=darklich_wp_comments_remover9642.0223.6425.27
All Comments /wp-admin/edit-comments.php1,8242.2934.6534.09

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit-comments.php
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/edit-comments.php?page=darklich_wp_comments_remover
    • > Notice in wp-content/plugins/wp-comments-remover/wp-comments-remover.php+94
    Undefined index: btnTest
    • > GET request to /wp-admin/edit-comments.php?page=darklich_wp_comments_remover
    • > Notice in wp-content/plugins/wp-comments-remover/wp-comments-remover.php+104
    Undefined index: btnRemove
    • > GET request to /wp-admin/edit-comments.php?page=darklich_wp_comments_remover
    • > Notice in wp-content/plugins/wp-comments-remover/wp-comments-remover.php+114
    Undefined index: btnRemoveAll

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
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-comments-remover/wp-comments-remover.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: delete comments by keyword, delete comments, remove comments, mass remove comments, mass delete comments

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

The main file in "WP Comments Remover" v. 1.0.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
66 characters long description:
A small plug-in to remove pending comments using a search keyword.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin198 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11439139
CSS13159

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin