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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼3.45ms] Passed 4 tests
Analyzing server-side resources used by Disable WP Comments
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 40.95 ▲0.80 |
Dashboard /wp-admin | 3.40 ▲0.10 | 44.83 ▼3.58 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 46.08 ▼0.77 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 84.05 ▼10.25 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 35.91 ▲1.60 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Disable WP Comments
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,888 ▲127 | 13.42 ▼1.30 | 8.03 ▲6.28 | 42.09 ▲3.46 |
Dashboard /wp-admin | 2,211 ▲34 | 5.48 ▼0.17 | 87.89 ▼0.00 | 39.63 ▼5.76 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.00 ▼0.02 | 38.48 ▼11.93 | 37.18 ▼0.18 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 23.66 ▲0.17 | 665.55 ▼26.31 | 47.18 ▼5.28 |
Media Library /wp-admin/upload.php | 1,419 ▲16 | 4.19 ▲0.05 | 96.82 ▼14.43 | 45.63 ▼1.94 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/disable-wp-comments/public/partials/disable-wp-comments-public-display.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/disable-wp-comments/admin/partials/disable-wp-comments-admin-display.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/disable-wp-comments/admin/partials/disable-wp-comments-admin-plugins.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/disable-wp-comments/admin/partials/disable-wp-comments-admin-right-area.php:39
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (screenshot-1.jpg), #2 (screenshot-2.jpg)
disable-wp-comments/disable-wp-comments.php Passed 13 tests
The main file in "Disable WP Comments" v. 1.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
82 characters long description:
A simple pluign to Disable/Hide or to Close WordPress native comments. And more...
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
Everything looks great! No dangerous files found in this plugin845 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 182 | 647 | 494 |
CSS | 2 | 42 | 14 | 341 |
JavaScript | 3 | 4 | 54 | 10 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 4.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 2 | 5.41% |
▷ Public methods | 32 | 86.49% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.51% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected