Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.72MB] [CPU: ▼49.73ms] Passed 4 tests
A check of server-side resources used by Advanced Comment Control
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.27 ▼1.20 | 6.06 ▼33.73 |
Dashboard /wp-admin | 2.29 ▼1.02 | 6.18 ▼44.80 |
Posts /wp-admin/edit.php | 2.29 ▼1.07 | 6.01 ▼40.35 |
Add New Post /wp-admin/post-new.php | 2.29 ▼3.60 | 6.85 ▼80.05 |
Media Library /wp-admin/upload.php | 2.29 ▼0.94 | 6.90 ▼26.24 |
Advanced Controls /wp-admin/edit-comments.php?page=advanced_comment_control_settings | 2.34 | 6.46 |
All Comments /wp-admin/edit-comments.php | 2.34 | 7.04 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Advanced Comment Control
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲45 | 14.72 ▲0.37 | 1.73 ▲0.12 | 43.74 ▼0.00 |
Dashboard /wp-admin | 2,215 ▲38 | 5.59 ▼0.06 | 84.44 ▼18.77 | 39.78 ▼4.46 |
Posts /wp-admin/edit.php | 2,117 ▲17 | 2.02 ▲0.03 | 34.86 ▼6.44 | 32.39 ▼7.29 |
Add New Post /wp-admin/post-new.php | 1,541 ▲13 | 23.18 ▼0.17 | 702.74 ▲46.71 | 50.95 ▼7.74 |
Media Library /wp-admin/upload.php | 1,417 ▲23 | 4.29 ▲0.12 | 95.29 ▼21.12 | 40.79 ▼5.50 |
Advanced Controls /wp-admin/edit-comments.php?page=advanced_comment_control_settings | 1,206 | 2.21 | 26.41 | 29.43 |
All Comments /wp-admin/edit-comments.php | 1,824 | 2.27 | 35.36 | 32.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/advanced-comment-control/class.php+16
Methods with the same name as their class will not be constructors in a future version of PHP; AdvancedCommentControl has a deprecated constructor
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit-comments.php
- > Deprecated in wp-content/plugins/advanced-comment-control/class.php+16
Methods with the same name as their class will not be constructors in a future version of PHP; AdvancedCommentControl has a deprecated constructor
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
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/advanced-comment-control/advanced-comment-control.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-comment-control/functions.php:98
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: comments, pings, spam, security, advanced...
advanced-comment-control/advanced-comment-control.php Passed 13 tests
"Advanced Comment Control" version 1.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
91 characters long description:
This plugin allows you to manage who can comment and when they can comment on your content.
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
Everything looks great! No dangerous files found in this plugin875 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 321 | 139 | 672 |
PO File | 1 | 47 | 54 | 122 |
JavaScript | 2 | 7 | 2 | 50 |
CSS | 2 | 3 | 0 | 31 |
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 code | 0.50 |
Average class complexity | 105.00 |
▷ Minimum class complexity | 105.00 |
▷ Maximum class complexity | 105.00 |
Average method complexity | 10.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin