84% remove-all-comments

Code Review | Remove All Comments

WordPress plugin Remove All Comments scored 84% from 54 tests.

About plugin

  • Plugin page: remove-all-comments
  • Plugin version: 3.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8
  • WordPress version: 6.3.1
  • First release: Dec 30, 2014
  • Latest release: Aug 13, 2017
  • Number of updates: 30
  • Update frequency: every 32.0 days
  • Top authors: php-developer (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

500+ active / 24,283 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
Installer ran successfully

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

This is a short check of server-side resources used by Remove All Comments
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0444.52 ▲2.36
Dashboard /wp-admin3.34 ▲0.0353.58 ▼1.32
Posts /wp-admin/edit.php3.39 ▲0.0353.73 ▲2.39
Add New Post /wp-admin/post-new.php5.92 ▲0.03102.77 ▼2.67
Media Library /wp-admin/upload.php3.26 ▲0.0338.69 ▲1.28

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Remove All Comments
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲2414.45 ▲0.241.79 ▼0.0946.07 ▲2.02
Dashboard /wp-admin2,230 ▲245.77 ▼0.0895.22 ▼14.8174.56 ▲27.47
Posts /wp-admin/edit.php2,116 ▲272.06 ▲0.0741.28 ▲7.0138.23 ▲4.37
Add New Post /wp-admin/post-new.php1,545 ▲323.27 ▲5.18681.46 ▲22.4151.75 ▼12.22
Media Library /wp-admin/upload.php1,409 ▲214.21 ▲0.0195.83 ▼13.4869.92 ▲24.89

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

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

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 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/remove-all-comments/remove-all-comments.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: no comments, delete comments, spam free comments, comments less, remove comments...

remove-all-comments/remove-all-comments.php 92% from 13 tests

The main PHP file in "Remove All Comments" ver. 3.1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 178 characters long)

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
Everything looks great! No dangerous files found in this plugin193 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12425193

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.22MB with 0.18MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png54.97KB26.54KB▼ 51.73%
(invalid) images/icon.png1.31KB0.00KB▼ 100.00%
(invalid) banner-772x250.png166.37KB0.00KB▼ 100.00%