Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.05MB] [CPU: ▼6.09ms] Passed 4 tests
Analyzing server-side resources used by CRUDLab Disable Comments
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.96 ▼2.05 |
Dashboard /wp-admin | 3.06 ▼0.24 | 25.19 ▼21.97 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.17 ▼1.42 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 92.76 ▲1.08 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.91 ▲3.34 |
All Comments /wp-admin/edit-comments.php | 3.02 | 23.39 |
Server storage [IO: ▲3.51MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 49 new files
Database: no new tables, 7 new options
New WordPress options |
---|
cldisablecomments-options |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by CRUDLab Disable Comments
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,775 ▲40 | 13.27 ▼1.15 | 1.59 ▼0.11 | 46.62 ▼5.91 |
Dashboard /wp-admin | 2,192 ▲1 | 4.96 ▲0.08 | 97.68 ▼4.36 | 85.21 ▲39.09 |
Posts /wp-admin/edit.php | 1,946 ▼143 | 2.06 ▲0.02 | 36.83 ▲2.14 | 33.69 ▼3.11 |
Add New Post /wp-admin/post-new.php | 1,508 ▼25 | 22.99 ▼0.17 | 674.26 ▼12.57 | 54.21 ▲2.41 |
Media Library /wp-admin/upload.php | 1,374 ▼11 | 4.22 ▲0.01 | 98.29 ▼8.28 | 71.88 ▲27.67 |
All Comments /wp-admin/edit-comments.php | 28 | 0.44 | 0.07 | 3.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/edit-comments.php
- > Network (severe)
wp-admin/edit-comments.php - Failed to load resource: the server responded with a status of 403 (Forbidden)
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
6 plugin tags: disappear commments, close commments, disable comments, delete comments, remove comments...
crudlab-disable-comments/crudlab-disable-comments.php Passed 13 tests
The principal PHP file in "CRUDLab Disable Comments" v. 1.0.5 is loaded by WordPress automatically on each request
95 characters long description:
CRUDLab Disable Comments allows you to disable comments for any page or post or for whole site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin38,737 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 8 | 0 | 0 | 28,600 |
CSS | 4 | 0 | 10 | 6,212 |
JSON | 1 | 0 | 0 | 2,106 |
JavaScript | 5 | 145 | 53 | 1,373 |
PHP | 2 | 57 | 36 | 446 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 50.00 |
▷ Minimum class complexity | 39.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 3.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 34 | |
▷ Static methods | 1 | 2.94% |
▷ Public methods | 30 | 88.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 11.76% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/ico.png | 1.36KB | 1.13KB | ▼ 17.04% |