Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▲0.19ms] Passed 4 tests
An overview of server-side resources used by Disable Comments by click5
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 42.62 ▲5.43 |
Dashboard /wp-admin | 3.36 ▲0.01 | 51.11 ▼8.09 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 47.23 ▲3.22 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 86.53 ▲3.32 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.78 ▲2.33 |
Disable Comments /wp-admin/options-general.php?page=disable-comments-by-click5 | 3.26 | 36.76 |
All Comments /wp-admin/edit-comments.php | 2.06 | 7.10 |
Server storage [IO: ▲0.74MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 12 new options
New WordPress options |
---|
click5_disable_comments_display_globally |
click5_disable_comments_display_rpc |
can_compress_scripts |
click5_disable_comments_force_autoupdate |
click5_disable_comments_display_api |
theysaidso_admin_options |
widget_theysaidso_widget |
click5_disable_comments_activation_date |
widget_recent-posts |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Disable Comments by click5
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,741 ▼45 | 14.28 ▼0.27 | 1.66 ▼0.17 | 44.09 ▲7.82 |
Dashboard /wp-admin | 2,163 ▼8 | 5.58 ▲0.06 | 94.48 ▲7.67 | 40.88 ▲1.88 |
Posts /wp-admin/edit.php | 2,072 ▼28 | 2.04 ▲0.03 | 35.36 ▲0.00 | 33.31 ▼5.68 |
Add New Post /wp-admin/post-new.php | 1,507 ▼24 | 23.01 ▼0.00 | 649.42 ▼7.07 | 51.76 ▼7.80 |
Media Library /wp-admin/upload.php | 1,366 ▼28 | 4.17 ▼0.01 | 96.83 ▼4.31 | 43.74 ▲1.59 |
Disable Comments /wp-admin/options-general.php?page=disable-comments-by-click5 | 982 | 2.00 | 24.81 | 40.44 |
All Comments /wp-admin/edit-comments.php | 2,163 | 5.47 | 68.11 | 35.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/disable-comments-by-click5/disable-comments-by-click5.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
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, spam, disable comments, comments, click5
disable-comments-by-click5/disable-comments-by-click5.php Passed 13 tests
"Disable Comments by click5" version 1.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
68 characters long description:
Disable comments on your website and protect yourself from spammers.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected876 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 124 | 71 | 547 |
CSS | 1 | 67 | 1 | 329 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
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 | 32 | |
▷ Named functions | 30 | 93.75% |
▷ Anonymous functions | 2 | 6.25% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.60MB with 0.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/sitemap.png | 70.41KB | 29.81KB | ▼ 57.66% |
assets/baner-v01c.png | 83.68KB | 33.21KB | ▼ 60.31% |
assets/screenshot-1.png | 194.79KB | 70.97KB | ▼ 63.56% |
assets/banner-772x250.png | 54.31KB | 23.81KB | ▼ 56.16% |
assets/banner-300x515-sitemap-plugin.png | 142.17KB | 59.35KB | ▼ 58.25% |