Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/cloudflare-cache-purge/cloudflare_cachepurge.php+80
Undefined index: ccpurge_logging_disabled
Server metrics [RAM: ▲0.07MB] [CPU: ▼3.06ms] Passed 4 tests
A check of server-side resources used by CloudFlare(R) Cache Purge
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 41.26 ▲0.56 |
Dashboard /wp-admin | 3.39 ▲0.04 | 51.79 ▼14.77 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 53.50 ▲5.12 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 102.09 ▲0.35 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 36.74 ▲1.63 |
Cloudflare Purge /wp-admin/options-general.php?page=ccpurge | 3.29 | 34.08 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
ccpurge_options |
Browser metrics Passed 4 tests
An overview of browser requirements for CloudFlare(R) Cache Purge
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲63 | 13.37 ▼0.93 | 1.93 ▼0.09 | 42.15 ▼0.25 |
Dashboard /wp-admin | 2,212 ▲24 | 5.92 ▼0.09 | 120.13 ▲12.48 | 42.42 ▲2.01 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.07 ▲0.02 | 43.86 ▲5.66 | 35.69 ▼2.00 |
Add New Post /wp-admin/post-new.php | 1,521 ▲7 | 23.06 ▲5.46 | 668.48 ▼25.51 | 57.66 ▲6.10 |
Media Library /wp-admin/upload.php | 1,400 ▲15 | 4.38 ▲0.18 | 109.89 ▲2.83 | 43.30 ▼6.75 |
Cloudflare Purge /wp-admin/options-general.php?page=ccpurge | 928 | 2.13 | 35.13 | 37.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/cloudflare-cache-purge/cloudflare_cachepurge.php+80
Undefined index: ccpurge_logging_disabled
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- ccpurge_options
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 take a closer look at the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'CCPURGE_API' not found in wp-content/plugins/cloudflare-cache-purge/lib/ccpurge_options.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cloudflare-cache-purge/lib/ccpurge_posttypes.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/cloudflare-cache-purge/cloudflare_cachepurge.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: cache clear, cache purge, api, cloudflare
cloudflare-cache-purge/cloudflare_cachepurge.php 92% from 13 tests
The main file in "CloudFlare(R) Cache Purge" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("cloudflare-cache-purge.php" instead of "cloudflare_cachepurge.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin562 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 94 | 46 | 395 |
JavaScript | 1 | 14 | 0 | 99 |
CSS | 1 | 6 | 2 | 68 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 3.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/tooltip.png | 0.72KB | 0.67KB | ▼ 7.69% |