Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.03ms] Passed 4 tests
This is a short check of server-side resources used by Clear Sucuri Cache
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 37.76 ▼3.67 |
Dashboard /wp-admin | 3.38 ▲0.08 | 43.94 ▼1.53 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 46.96 ▼5.47 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 94.89 ▼5.46 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 38.82 ▲2.26 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
sucuri-clearr |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Clear Sucuri Cache: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,981 ▲224 | 13.66 ▼0.59 | 9.00 ▲6.58 | 40.92 ▼1.84 |
Dashboard /wp-admin | 2,276 ▲85 | 5.88 ▲0.92 | 99.60 ▼16.30 | 79.71 ▲39.23 |
Posts /wp-admin/edit.php | 2,159 ▲67 | 2.02 ▼0.02 | 38.81 ▼0.98 | 36.35 ▲1.17 |
Add New Post /wp-admin/post-new.php | 1,746 ▲216 | 24.95 ▲6.79 | 636.64 ▼3.99 | 46.77 ▼7.60 |
Media Library /wp-admin/upload.php | 1,458 ▲70 | 4.23 ▼0.07 | 99.82 ▲1.25 | 79.76 ▲37.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/clear-sucuri-cache/purge-sucuri.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 11 tag instead of maximum 10
clear-sucuri-cache/purge-sucuri.php 85% from 13 tests
The main PHP file in "Clear Sucuri Cache" ver. 1.4 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("clear-sucuri-cache.php" instead of "purge-sucuri.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
There were no executable files found in this plugin610 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 51 | 129 | 293 |
CSS | 1 | 26 | 2 | 218 |
JavaScript | 1 | 15 | 5 | 99 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 2.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 23 | |
▷ Static methods | 4 | 17.39% |
▷ Public methods | 23 | 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 | 7 | |
▷ Global constants | 3 | 42.86% |
▷ Class constants | 4 | 57.14% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/spinner.png | 0.41KB | 0.33KB | ▼ 20.28% |
images/icon.png | 0.57KB | 0.51KB | ▼ 10.75% |