Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.31ms] Passed 4 tests
This is a short check of server-side resources used by Disable Comments
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.41 ▼0.43 |
Dashboard /wp-admin | 3.32 ▲0.01 | 48.20 ▼1.52 |
Posts /wp-admin/edit.php | 3.35 ▼0.01 | 46.23 ▼2.29 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 93.52 ▼0.22 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.35 ▼1.00 |
All Comments /wp-admin/edit-comments.php | 3.04 | 22.83 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Disable Comments
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,780 ▲45 | 13.28 ▼1.12 | 4.67 ▲2.81 | 43.51 ▼5.10 |
Dashboard /wp-admin | 2,175 ▼13 | 4.86 ▼0.02 | 97.92 ▼14.17 | 44.45 ▲1.43 |
Posts /wp-admin/edit.php | 1,929 ▼163 | 2.06 ▲0.00 | 36.40 ▼1.82 | 34.57 ▼0.19 |
Add New Post /wp-admin/post-new.php | 1,507 ▼7 | 23.20 ▲5.71 | 623.31 ▼44.01 | 51.51 ▼16.49 |
Media Library /wp-admin/upload.php | 1,360 ▼25 | 4.17 ▼0.01 | 94.85 ▼0.45 | 41.44 ▼4.33 |
All Comments /wp-admin/edit-comments.php | 2,175 | 6.02 | 86.86 | 35.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need 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
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wpsimpletools-disable-comments/wpsimpletools-disable-comments.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: disable comments, discussion, remove comments, comments
wpsimpletools-disable-comments/wpsimpletools-disable-comments.php Passed 13 tests
The main file in "Disable Comments" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
69 characters long description:
Completely disables comments functionality from backend and frontend.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected49 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 20 | 8 | 49 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
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 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