Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼7.99ms] Passed 4 tests
A check of server-side resources used by Conditional Comments Message
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 43.61 ▼0.81 |
Dashboard /wp-admin | 3.39 ▲0.08 | 51.87 ▼5.96 |
Posts /wp-admin/edit.php | 3.51 ▲0.14 | 51.95 ▼4.36 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 88.40 ▼20.84 |
Media Library /wp-admin/upload.php | 3.32 ▲0.08 | 41.01 ▲3.34 |
Conditional Comments Message /wp-admin/options-general.php?page=conditional-comments-message | 3.28 | 35.15 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
ccm |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Conditional Comments Message
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.30 ▼0.07 | 1.86 ▼0.05 | 44.95 ▼3.33 |
Dashboard /wp-admin | 2,199 ▲22 | 5.55 ▼0.14 | 80.58 ▼10.74 | 40.48 ▼7.81 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.03 ▼0.03 | 36.31 ▼4.10 | 35.56 ▼1.65 |
Add New Post /wp-admin/post-new.php | 1,548 ▼6 | 23.16 ▲4.64 | 662.40 ▲21.91 | 60.15 ▲10.33 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.16 ▼0.05 | 97.72 ▼2.11 | 44.59 ▲1.40 |
Conditional Comments Message /wp-admin/options-general.php?page=conditional-comments-message | 924 | 2.01 | 23.54 | 44.84 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/conditional-comments-message/conditional-comments-message.php:20
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: comments, after, conditional, message, automatically close
conditional-comments-message/conditional-comments-message.php Passed 13 tests
The principal PHP file in "Conditional Comments Message" v. 0.0.9 is loaded by WordPress automatically on each request
59 characters long description:
Show a message when comments are set to close automatically
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 plugin272 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 16 | 38 | 267 |
CSS | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
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 | 27 | |
▷ Named functions | 27 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 16 | 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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/comment_message.png | 5.37KB | 2.65KB | ▼ 50.62% |
images/settings.png | 2.11KB | 2.31KB | 0.00% |
images/support.png | 5.03KB | 2.79KB | ▼ 44.54% |