84% advanced-comments-moderation

Code Review | Advanced Comments Moderation

WordPress plugin Advanced Comments Moderation scored 84% from 54 tests.

About plugin

  • Plugin page: advanced-comments...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.7.1
  • WordPress version: 5.8.1
  • First release: Oct 18, 2013
  • Latest release: Jan 30, 2014
  • Number of updates: 12
  • Update frequency: every 8.7 days
  • Top authors: titopandub (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 1,935 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.16MB] [CPU: ▼152.07ms] Passed 4 tests

This is a short check of server-side resources used by Advanced Comments Moderation
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.98 ▲0.1428.36 ▲2.34
Dashboard /wp-admin3.27 ▲0.2147.64 ▲11.01
Posts /wp-admin/edit.php3.32 ▲0.2145.48 ▲2.82
Add New Post /wp-admin/post-new.php5.57 ▲0.1375.59 ▼614.69
Media Library /wp-admin/upload.php3.15 ▲0.1527.27 ▲1.25
All Comments /wp-admin/edit-comments.php3.2432.97

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Advanced Comments Moderation
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,700 ▲9915.68 ▲0.325.89 ▲0.7781.32 ▲1.78
Dashboard /wp-admin2,957 ▲646.08 ▼0.05119.26 ▼15.63170.36 ▼6.72
Posts /wp-admin/edit.php2,764 ▲273.37 ▲0.1568.89 ▲4.33147.04 ▲5.25
Add New Post /wp-admin/post-new.php3,827 ▲6918.74 ▼0.11531.21 ▼116.28190.22 ▲18.94
Media Library /wp-admin/upload.php1,773 ▲215.49 ▲0.02155.50 ▲0.00205.46 ▲9.63
All Comments /wp-admin/edit-comments.php2,4783.4367.95148.45

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 1 option
    • acm_options

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
Good news, no errors were detected

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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-comments-moderation/advanced-comments-moderation.php:833

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)
Everything seems fine on the user side


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: comments

advanced-comments-moderation/advanced-comments-moderation.php Passed 13 tests

The primary PHP file in "Advanced Comments Moderation" version 1.4 is used by WordPress to initiate all plugin functionality
86 characters long description:
Advanced Comments Moderation makes managing your WordPress blog's comments far easier.

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
Good job! No executable or dangerous file extensions detected821 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PO File14425

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.25
Average class complexity35.00
▷ Minimum class complexity18.00
▷ Maximum class complexity52.00
Average method complexity2.55
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods24.55%
▷ Public methods3375.00%
▷ Protected methods00.00%
▷ Private methods1125.00%
▷ Named functions11100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.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
No PNG images were found in this plugin