Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/edge-cache-html-cloudflare-workers/admin/class-cloudflare-edge-cache-admin-settings.php+56
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.79MB] [CPU: ▼54.57ms] Passed 4 tests
A check of server-side resources used by Edge Cache HTML via Cloudflare Workers
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.20 ▼1.26 | 6.00 ▼34.15 |
Dashboard /wp-admin | 2.22 ▼1.08 | 7.66 ▼44.97 |
Posts /wp-admin/edit.php | 2.22 ▼1.14 | 6.37 ▼36.83 |
Add New Post /wp-admin/post-new.php | 2.22 ▼3.67 | 7.83 ▼102.32 |
Media Library /wp-admin/upload.php | 2.22 ▼1.01 | 6.95 ▼29.95 |
Cloudflare Edge Caching Options /wp-admin/plugins.php?page=cf_caching_options | 2.23 | 7.52 |
Server storage [IO: ▲0.08MB] [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: 22 new files
Database: no new tables, 8 new options
New WordPress options |
---|
cf_edge_cache_input |
widget_recent-posts |
widget_recent-comments |
cf_edge_cache_options |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Edge Cache HTML via Cloudflare Workers
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,880 ▲94 | 13.50 ▼0.85 | 8.24 ▲6.14 | 43.00 ▼3.17 |
Dashboard /wp-admin | 2,203 ▲23 | 5.65 ▲0.05 | 85.36 ▼12.90 | 41.50 ▼1.27 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.01 ▲0.02 | 37.10 ▼2.18 | 32.33 ▼0.99 |
Add New Post /wp-admin/post-new.php | 1,542 ▲16 | 18.19 ▼4.89 | 640.83 ▲17.66 | 52.06 ▲1.34 |
Media Library /wp-admin/upload.php | 1,408 ▲14 | 4.23 ▲0.03 | 96.25 ▲0.73 | 43.33 ▲2.26 |
Cloudflare Edge Caching Options /wp-admin/plugins.php?page=cf_caching_options | 837 | 2.04 | 22.71 | 39.10 |
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
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/edge-cache-html-cloudflare-workers/admin/class-cloudflare-edge-cache-admin-settings.php+57
Undefined index: cloudflare_api_key
- This plugin does not fully uninstall, leaving 8 options in the database
- cf_edge_cache_options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- cf_edge_cache_input
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/plugins.php?page=cf_caching_options
- > Notice in wp-content/plugins/edge-cache-html-cloudflare-workers/admin/class-cloudflare-edge-cache-admin-settings.php+328
Undefined index: cloudflare_api_key
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
Almost there! Just fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/edge-cache-html-cloudflare-workers/admin/partials/cloudflare-edge-cache-admin-display.php
- > /wp-content/plugins/edge-cache-html-cloudflare-workers/public/partials/cloudflare-edge-cache-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: caching, cloudflare cache, cloudflare workers, workers
edge-cache-html-cloudflare-workers/cloudflare-edge-cache.php 77% from 13 tests
"Edge Cache HTML via Cloudflare Workers" version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("edge-cache-html-cloudflare-workers.php" instead of "cloudflare-edge-cache.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin641 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 187 | 628 | 579 |
CSS | 2 | 4 | 8 | 42 |
JavaScript | 2 | 9 | 56 | 20 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 4.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 2 | 4.17% |
▷ Public methods | 43 | 89.58% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 10.42% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
There were not PNG files found in your plugin