Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.98 ▲0.14 | 28.36 ▲2.34 |
Dashboard /wp-admin | 3.27 ▲0.21 | 47.64 ▲11.01 |
Posts /wp-admin/edit.php | 3.32 ▲0.21 | 45.48 ▲2.82 |
Add New Post /wp-admin/post-new.php | 5.57 ▲0.13 | 75.59 ▼614.69 |
Media Library /wp-admin/upload.php | 3.15 ▲0.15 | 27.27 ▲1.25 |
All Comments /wp-admin/edit-comments.php | 3.24 | 32.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 |
---|
acm_options |
Browser metrics Passed 4 tests
A check of browser resources used by Advanced Comments Moderation
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,700 ▲99 | 15.68 ▲0.32 | 5.89 ▲0.77 | 81.32 ▲1.78 |
Dashboard /wp-admin | 2,957 ▲64 | 6.08 ▼0.05 | 119.26 ▼15.63 | 170.36 ▼6.72 |
Posts /wp-admin/edit.php | 2,764 ▲27 | 3.37 ▲0.15 | 68.89 ▲4.33 | 147.04 ▲5.25 |
Add New Post /wp-admin/post-new.php | 3,827 ▲69 | 18.74 ▼0.11 | 531.21 ▼116.28 | 190.22 ▲18.94 |
Media Library /wp-admin/upload.php | 1,773 ▲21 | 5.49 ▲0.02 | 155.50 ▲0.00 | 205.46 ▲9.63 |
All Comments /wp-admin/edit-comments.php | 2,478 | 3.43 | 67.95 | 148.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
- > PHP Fatal error
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
Optimizations
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 242 | 259 | 746 |
JavaScript | 1 | 1 | 0 | 44 |
PO File | 1 | 4 | 4 | 25 |
CSS | 1 | 1 | 0 | 6 |
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 code | 0.25 |
Average class complexity | 35.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 2.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 2 | 4.55% |
▷ Public methods | 33 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 25.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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