94% comment-overload

Code Review | Comment Overload

WordPress plugin Comment Overload scored 94% from 54 tests.

About plugin

  • Plugin page: comment-overload
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Jul 20, 2012
  • Latest release: Sep 24, 2016
  • Number of updates: 7
  • Update frequency: every 218.1 days
  • Top authors: trepmal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 900 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼175.09ms] Passed 4 tests

Analyzing server-side resources used by Comment Overload
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1344.58 ▲13.75
Dashboard /wp-admin3.08 ▲0.0356.61 ▲10.59
Posts /wp-admin/edit.php3.13 ▲0.0361.99 ▲7.02
Add New Post /wp-admin/post-new.php5.44 ▲0.01113.02 ▼714.35
Media Library /wp-admin/upload.php3.02 ▲0.0233.42 ▼3.61

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Comment Overload: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,813 ▲24316.27 ▲0.7513.86 ▲6.9347.78 ▼4.29
Dashboard /wp-admin2,970 ▲395.94 ▼0.15146.24 ▼23.10125.75 ▲3.56
Posts /wp-admin/edit.php2,739 ▼02.69 ▼0.0177.29 ▲5.50110.70 ▲13.54
Add New Post /wp-admin/post-new.php1,683 ▼018.26 ▼0.29460.63 ▲44.59116.81 ▼11.33
Media Library /wp-admin/upload.php1,807 ▼05.02 ▼0.01168.15 ▲2.24128.44 ▼7.49

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 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)
Even though no errors were found, this is by no means an exhaustive test

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 take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/comment-overload/comment-overload.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected


Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Requires at least: Version not formatted correctly
  • Screenshots: Please add descriptions for these screenshots #1, #2 in comment-overload/assets to your readme.txt
You can take inspiration from this readme.txt

comment-overload/comment-overload.php Passed 13 tests

"Comment Overload" version 1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
60 characters long description:
Alert commenters when they start writing too many paragraphs

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
Success! There were no dangerous files found in this plugin108 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ 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
There are no PNG files in this plugin