Benchmarks
Plugin footprint 65% 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.83MB] [CPU: ▼30.62ms] Passed 4 tests
An overview of server-side resources used by Purge Varnish Cache
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 42.18 ▼0.82 |
Dashboard /wp-admin | 3.12 ▼0.19 | 25.57 ▼23.56 |
Posts /wp-admin/edit.php | 3.12 ▼0.24 | 27.23 ▼21.41 |
Add New Post /wp-admin/post-new.php | 3.12 ▼2.77 | 23.94 ▼69.93 |
Media Library /wp-admin/upload.php | 3.12 ▼0.11 | 25.48 ▼7.59 |
Purge URLs /wp-admin/admin.php?page=purge-varnish-urls | 3.12 | 23.75 |
Purge all /wp-admin/admin.php?page=purge-varnish-all | 3.12 | 24.54 |
Terminal /wp-admin/admin.php?page=purge-varnish-settings | 3.12 | 23.46 |
Expire /wp-admin/admin.php?page=purge-varnish-expire | 3.12 | 26.04 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
purge_varnish_action |
purge_varnish_expire |
Browser metrics Passed 4 tests
An overview of browser requirements for Purge Varnish Cache
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲103 | 13.22 ▼1.36 | 4.43 ▲2.46 | 39.32 ▼2.84 |
Dashboard /wp-admin | 2,247 ▲62 | 4.89 ▼0.99 | 99.18 ▼1.34 | 79.25 ▲36.00 |
Posts /wp-admin/edit.php | 2,127 ▲38 | 2.04 ▼0.02 | 34.49 ▲1.10 | 34.87 ▼1.45 |
Add New Post /wp-admin/post-new.php | 1,552 ▲10 | 23.00 ▲0.05 | 775.82 ▲93.73 | 58.02 ▼3.42 |
Media Library /wp-admin/upload.php | 1,423 ▲38 | 4.20 ▼0.04 | 98.14 ▼3.07 | 67.53 ▲24.26 |
Purge URLs /wp-admin/admin.php?page=purge-varnish-urls | 931 | 2.04 | 24.21 | 29.53 |
Purge all /wp-admin/admin.php?page=purge-varnish-all | 838 | 2.03 | 27.50 | 27.57 |
Terminal /wp-admin/admin.php?page=purge-varnish-settings | 989 | 2.16 | 22.68 | 40.29 |
Expire /wp-admin/admin.php?page=purge-varnish-expire | 1,288 | 2.05 | 23.35 | 31.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function add_menu_page was called incorrectly. The seventh parameter passed to add_menu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 6.0.0.)
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=purge-varnish-expire
- > User notice in wp-includes/functions.php+5905
Function add_menu_page was called incorrectly. The seventh parameter passed to add_menu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 6.0.0.)
- > GET request to /wp-admin/admin.php?page=purge-varnish-settings
- > Warning in wp-content/plugins/purge-varnish/class_purge_varnish.php+128
socket_connect(): unable to connect [111]: Connection refused
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: flush, performance, automatic, caching, plugin...
purge-varnish/class_purge_varnish.php 85% from 13 tests
The main PHP file in "Purge Varnish Cache" ver. 2.5 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: The principal plugin file should be the same as the plugin slug ("purge-varnish.php" instead of "class_purge_varnish.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 334 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,280 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 184 | 178 | 1,254 |
CSS | 1 | 0 | 0 | 25 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 140.00 |
▷ Minimum class complexity | 140.00 |
▷ Maximum class complexity | 140.00 |
Average method complexity | 4.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 46 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 46 | 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 | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/error.png | 0.76KB | 0.75KB | 0.13% |
images/ok.png | 0.76KB | 0.75KB | ▼ 0.52% |
images/purge16x16.png | 0.50KB | 0.29KB | ▼ 41.52% |