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.35MB] [CPU: ▼3.60ms] Passed 4 tests
Analyzing server-side resources used by Disable Comments - Remove Comments & Stop Spam [Multi-Site Support]
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.35 | 46.41 ▲3.16 |
Dashboard /wp-admin | 3.70 ▲0.36 | 52.57 ▼15.21 |
Posts /wp-admin/edit.php | 3.76 ▲0.40 | 55.50 ▲1.91 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.34 | 94.70 ▼4.26 |
Media Library /wp-admin/upload.php | 3.56 ▲0.34 | 41.16 ▲4.76 |
Disable Comments /wp-admin/options-general.php?page=disable_comments_settings | 3.61 | 37.65 |
Delete Comments /wp-admin/tools.php?page=disable_comments_tools | 3.43 | 33.16 |
Server storage [IO: ▲0.67MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
disable_comments_options |
theysaidso_admin_options |
disable_comment_version |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Disable Comments - Remove Comments & Stop Spam [Multi-Site Support]
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 14.25 ▲0.11 | 1.89 ▼0.00 | 45.82 ▼0.27 |
Dashboard /wp-admin | 2,208 ▲31 | 5.64 ▲0.05 | 82.27 ▼17.31 | 80.49 ▲34.75 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 1.96 ▼0.19 | 37.12 ▲1.87 | 33.09 ▼6.69 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 23.87 ▲0.82 | 648.74 ▼42.65 | 51.46 ▲2.51 |
Media Library /wp-admin/upload.php | 1,410 ▲16 | 4.30 ▼0.00 | 96.83 ▼4.53 | 45.30 ▼0.85 |
Disable Comments /wp-admin/options-general.php?page=disable_comments_settings | 1,577 | 2.57 | 48.83 | 108.55 |
Delete Comments /wp-admin/tools.php?page=disable_comments_tools | 1,602 | 2.56 | 43.72 | 58.51 |
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
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- disable_comment_version
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
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 | 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 items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/disable-comments/views/partials/_footer.php
- 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/disable-comments/views/partials/_disable.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/disable-comments/views/partials/_delete.php:3
- > PHP Notice
Undefined variable: type in wp-content/plugins/disable-comments/views/partials/_sites.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/disable-comments/views/settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/disable-comments/views/partials/_sites.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/disable-comments/views/partials/_sidebar.php:3
- > PHP Warning
Use of undefined constant DC_PLUGIN_VIEWS_PATH - assumed 'DC_PLUGIN_VIEWS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/disable-comments/views/partials/_footer.php on line 6
- > PHP Notice
Undefined variable: type in wp-content/plugins/disable-comments/views/partials/_sites.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/disable-comments/views/partials/_menu.php:3
- > PHP Warning
include(): Failed opening 'DC_PLUGIN_VIEWS_PATHpartials/_menu.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/disable-comments/views/partials/_footer.php on line 6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
disable-comments/disable-comments.php 92% from 13 tests
The main PHP script in "Disable Comments - Remove Comments & Stop Spam [Multi-Site Support]" version 2.4.5 is automatically included on every request by WordPress
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 158 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin3,591 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 206 | 456 | 2,348 |
JavaScript | 5 | 277 | 178 | 1,141 |
CSS | 5 | 3 | 1 | 98 |
SVG | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of 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.46 |
Average class complexity | 134.00 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 261.00 |
Average method complexity | 5.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 92 | |
▷ Static methods | 2 | 2.17% |
▷ Public methods | 76 | 82.61% |
▷ Protected methods | 4 | 4.35% |
▷ Private methods | 12 | 13.04% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 9 | |
▷ Global constants | 6 | 66.67% |
▷ Class constants | 3 | 33.33% |
▷ Public constants | 3 | 100.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
6 PNG files occupy 0.09MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/finalize-thumb.png | 20.93KB | 11.42KB | ▼ 45.44% |
assets/img/icon-logo-small.png | 0.92KB | 1.33KB | 0.00% |
assets/img/company-thumb.png | 57.25KB | 28.95KB | ▼ 49.44% |
assets/img/check.png | 0.15KB | 0.24KB | 0.00% |
assets/img/logo.png | 8.78KB | 4.94KB | ▼ 43.68% |