Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼270.86ms] Passed 4 tests
Server-side resources used by Disable The Comments
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.01 | 40.84 ▲12.92 |
Dashboard /wp-admin | 3.03 ▼0.03 | 35.71 ▼8.16 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 32.80 ▼11.90 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 89.84 ▼1,054.48 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 31.70 ▼8.91 |
All Comments /wp-admin/edit-comments.php | 2.88 | 23.35 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Disable The Comments
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,899 ▼707 | 15.88 ▲0.26 | 10.73 ▲2.14 | 50.53 ▲3.19 |
Dashboard /wp-admin | 2,150 ▼700 | 5.61 ▼0.24 | 148.78 ▲16.52 | 98.05 ▲1.86 |
Posts /wp-admin/edit.php | 2,515 ▼188 | 2.68 ▼0.01 | 65.12 ▼2.67 | 83.71 ▼9.08 |
Add New Post /wp-admin/post-new.php | 1,829 ▼24 | 17.77 ▼1.05 | 373.97 ▲5.16 | 101.68 ▼0.72 |
Media Library /wp-admin/upload.php | 1,734 ▲21 | 5.02 ▲0.01 | 151.88 ▲10.50 | 114.98 ▼7.46 |
All Comments /wp-admin/edit-comments.php | 2,162 | 4.76 | 118.79 | 95.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/disable-the-comments/disable-the-comments.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: disable, admin, remove, delete, comments
disable-the-comments/disable-the-comments.php Passed 13 tests
The main PHP script in "Disable The Comments" version 0.0.6 is automatically included on every request by WordPress
57 characters long description:
Disable the Wordpress comments functions on your website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin74 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 20 | 10 | 74 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin