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
Installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼123.40ms] Passed 4 tests
Analyzing server-side resources used by ClusterCS Clear Cache
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 42.75 ▼10.66 |
Dashboard /wp-admin | 3.33 ▼0.10 | 53.42 ▼473.14 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 50.95 ▼5.56 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 86.24 ▼4.23 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 39.46 ▼3.57 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
clear_error |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
ClusterCS Clear Cache: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,988 ▲227 | 13.47 ▼0.88 | 15.65 ▲14.02 | 48.54 ▲8.13 |
Dashboard /wp-admin | 2,250 ▲70 | 5.74 ▲0.06 | 104.38 ▲15.30 | 81.01 ▲39.89 |
Posts /wp-admin/edit.php | 2,173 ▲76 | 2.06 ▲0.04 | 38.71 ▲0.71 | 35.34 ▲0.06 |
Add New Post /wp-admin/post-new.php | 1,746 ▲218 | 22.49 ▼0.83 | 773.66 ▲131.48 | 54.92 ▲5.45 |
Media Library /wp-admin/upload.php | 1,467 ▲70 | 4.29 ▲0.11 | 104.50 ▼14.55 | 81.90 ▲33.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- theysaidso_admin_options
- clear_error
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/clustercs-clear-cache/inc/options.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: Add descriptions for screenshots #2, #3 in clustercs-clear-cache/assets to your readme.txt
clustercs-clear-cache/clustercs.php 92% from 13 tests
"ClusterCS Clear Cache" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("clustercs-clear-cache.php" instead of "clustercs.php")
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 plugin633 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 79 | 12 | 299 |
JavaScript | 1 | 38 | 0 | 151 |
CSS | 1 | 31 | 3 | 142 |
Markdown | 1 | 21 | 0 | 40 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 12 | 75.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 4 | 66.67% |
▷ Class constants | 2 | 33.33% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/error.png | 26.12KB | 9.20KB | ▼ 64.78% |
img/check.png | 19.86KB | 7.86KB | ▼ 60.41% |