Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▲0.00ms] Passed 4 tests
This is a short check of server-side resources used by Purge Cache
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.44 ▼5.33 |
Dashboard /wp-admin | 3.40 ▲0.10 | 57.03 ▲1.83 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 57.06 ▲1.33 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 105.34 ▲10.82 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 38.11 ▲2.18 |
Cloudflare Purge Cache /wp-admin/options-general.php?page=c-purge-cache | 3.30 | 39.89 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 9 new options
New WordPress options |
---|
c_purge_cache_post_update_settings |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
c_purge_cache_purge_settings |
widget_theysaidso_widget |
c_purge_cache_default_settings |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Purge Cache
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,964 ▲218 | 14.92 ▲0.55 | 1.79 ▲0.06 | 43.81 ▼2.05 |
Dashboard /wp-admin | 2,367 ▲179 | 6.58 ▲0.70 | 135.89 ▲20.21 | 42.99 ▼0.24 |
Posts /wp-admin/edit.php | 2,279 ▲190 | 3.64 ▲1.64 | 59.86 ▲21.93 | 34.43 ▼3.56 |
Add New Post /wp-admin/post-new.php | 1,535 ▼7 | 23.24 ▲5.20 | 611.84 ▼39.36 | 33.91 ▼21.11 |
Media Library /wp-admin/upload.php | 1,409 ▲18 | 4.32 ▲0.11 | 82.74 ▼20.18 | 41.83 ▼0.93 |
Cloudflare Purge Cache /wp-admin/options-general.php?page=c-purge-cache | 1,212 | 3.42 | 50.60 | 27.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 9 options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- c_purge_cache_default_settings
- widget_recent-comments
- c_purge_cache_post_update_settings
- theysaidso_admin_options
- widget_theysaidso_widget
- c_purge_cache_purge_settings
Smoke tests Passed 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 no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: cache, purge, cloudflare
c-purge-cache/c-purge-cache.php Passed 13 tests
Analyzing the main PHP file in "Purge Cache" version 1.0.8
100 characters long description:
Purge Cloudflare Cache of the Post with additional URLs on the Post update, Purge Everything button.
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
Success! There were no dangerous files found in this plugin1,535 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 387 | 808 | 1,530 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
An short overview of 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.47 |
Average class complexity | 20.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 83.00 |
Average method complexity | 3.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 1 | 9.09% |
Methods | 96 | |
▷ Static methods | 27 | 28.12% |
▷ Public methods | 86 | 89.58% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 10.42% |
Functions | 15 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 15 | 100.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin