Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼2.23MB] [CPU: ▼365.70ms] Passed 4 tests
Analyzing server-side resources used by Advanced Comment Control
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼1.37 | 4.76 ▼51.15 |
Dashboard /wp-admin | 2.16 ▼1.25 | 4.08 ▼34.13 |
Posts /wp-admin/edit.php | 2.16 ▼1.48 | 8.59 ▼34.16 |
Add New Post /wp-admin/post-new.php | 2.16 ▼4.81 | 5.58 ▼1,343.34 |
Media Library /wp-admin/upload.php | 2.16 ▼1.14 | 3.91 ▼25.52 |
All Comments /wp-admin/edit-comments.php | 2.21 | 4.36 |
Advanced Controls /wp-admin/edit-comments.php?page=advanced_comment_control_settings | 2.21 | 8.10 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Advanced Comment Control
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,803 ▲49 | 15.30 ▼0.42 | 6.43 ▼0.20 | 2.33 ▼0.24 |
Dashboard /wp-admin | 2,896 ▲35 | 6.12 ▼0.05 | 117.59 ▼16.54 | 157.47 ▼4.93 |
Posts /wp-admin/edit.php | 2,713 ▲41 | 3.24 ▲0.00 | 64.61 ▲1.31 | 139.32 ▲2.55 |
Add New Post /wp-admin/post-new.php | 1,732 ▲72 | 21.80 ▲5.91 | 421.94 ▲3.78 | 154.40 ▼2.12 |
Media Library /wp-admin/upload.php | 1,714 ▲13 | 5.53 ▲0.07 | 142.76 ▲4.94 | 196.77 ▲11.87 |
All Comments /wp-admin/edit-comments.php | 2,396 | 3.41 | 65.20 | 139.64 |
Advanced Controls /wp-admin/edit-comments.php?page=advanced_comment_control_settings | 1,504 | 2.43 | 54.47 | 187.60 |
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
These items require your attention
- 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
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit-comments.php?page=advanced_comment_control_settings
- > 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 2× 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-comment-control/functions.php:98
- > 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
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: disable, comments, spam, trolls, trackbacks...
advanced-comment-control/advanced-comment-control.php Passed 13 tests
The principal PHP file in "Advanced Comment Control" v. 1.2.0 is loaded by WordPress automatically on each request
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 | This is a short overview of programming languages used in this plugin, detecting executable files
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
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
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
PNG images were not found in this plugin