Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼3.02ms] Passed 4 tests
An overview of server-side resources used by WSA - Website Accelerator Cache Purge
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 41.66 ▼1.66 |
Dashboard /wp-admin | 3.41 ▲0.11 | 53.59 ▼2.75 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 52.29 ▲2.48 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 86.96 ▼10.15 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 41.50 ▲5.20 |
Website Accelerator Cache purge /wp-admin/tools.php?page=wsa-cachepurge/lib/wsa-cachepurge_display.php | 3.35 | 54.54 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Just a few items left to fix
- Illegal file modification found: 1 file (4.00KB) outside of "wp-content/plugins/wsa-cachepurge/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 23 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
wsa-cachepurge_wsa-installed |
wsa-cachepurge_auto-purge |
can_compress_scripts |
Browser metrics Passed 4 tests
WSA - Website Accelerator Cache Purge: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲73 | 14.47 ▲0.04 | 2.07 ▲0.26 | 48.17 ▲4.79 |
Dashboard /wp-admin | 2,234 ▲34 | 4.84 ▼0.98 | 107.01 ▼7.60 | 37.67 ▼7.33 |
Posts /wp-admin/edit.php | 2,113 ▲10 | 1.98 ▼0.07 | 38.35 ▲2.25 | 35.54 ▼1.44 |
Add New Post /wp-admin/post-new.php | 1,532 ▼13 | 17.68 ▼5.69 | 684.29 ▼0.18 | 64.41 ▲4.90 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.26 ▲0.01 | 103.20 ▼12.13 | 44.20 ▼3.59 |
Website Accelerator Cache purge /wp-admin/tools.php?page=wsa-cachepurge/lib/wsa-cachepurge_display.php | 960 | 2.02 | 26.69 | 53.57 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- wsa-cachepurge_wsa-installed
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
The following issues need your attention
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wsa-cachepurge/lib/wsa-cachepurge_display.php
- > /wp-content/plugins/wsa-cachepurge/lib/wsa-cachepurge_wp-module.class.php
- > /wp-content/plugins/wsa-cachepurge/lib/wsa-cachepurge_display.class.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wsa-cachepurge/wsa-cachepurge.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: cache, cpwsa, wsa, wsa-cachepurge, purge...
wsa-cachepurge/wsa-cachepurge.php 85% from 13 tests
The primary PHP file in "WSA - Website Accelerator Cache Purge" version 1.1.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 205 characters long)
- Requires at least: Required version must match the one declared in readme.txt ("3.5" instead of "3.5.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,516 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 5 | 183 | 219 | 819 |
PHP | 6 | 190 | 623 | 543 |
SVG | 1 | 0 | 1 | 154 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 24 | 96.00% |
▷ Public methods | 14 | 56.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 44.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
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
ressources/clear-single-user-cache-white.png | 0.65KB | 0.77KB | 0.00% |