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
Install script ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼8.22ms] Passed 4 tests
This is a short check of server-side resources used by Advanced Comments Moderation
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 38.21 ▼5.28 |
Dashboard /wp-admin | 3.45 ▲0.11 | 48.17 ▼20.17 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 48.38 ▼2.03 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 93.99 ▼5.39 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 38.98 ▲4.20 |
All Comments /wp-admin/edit-comments.php | 3.46 | 43.48 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
acm_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Advanced Comments Moderation
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲45 | 14.25 ▲0.01 | 1.96 ▲0.34 | 42.42 ▼1.73 |
Dashboard /wp-admin | 2,209 ▲35 | 5.51 ▼0.06 | 84.23 ▼4.60 | 41.38 ▼3.52 |
Posts /wp-admin/edit.php | 2,120 ▲17 | 2.09 ▲0.07 | 39.26 ▼5.52 | 36.33 ▼1.48 |
Add New Post /wp-admin/post-new.php | 1,555 ▲29 | 23.26 ▲0.26 | 612.52 ▼81.16 | 51.51 ▼4.04 |
Media Library /wp-admin/upload.php | 1,417 ▲14 | 4.20 ▲0.09 | 98.71 ▼6.84 | 45.06 ▼1.73 |
All Comments /wp-admin/edit-comments.php | 1,845 | 2.30 | 40.04 | 33.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- acm_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
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 have triggered server-side errors or warnings:
- > 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 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: comments
advanced-comments-moderation/advanced-comments-moderation.php Passed 13 tests
The main PHP script in "Advanced Comments Moderation" version 1.4 is automatically included on every request by WordPress
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 | An overview of files in this plugin; executable files are not allowed
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
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
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
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