Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲2.73MB] [CPU: ▲10.38ms] Passed 4 tests
Analyzing server-side resources used by Super Page Cache for Cloudflare
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.21 ▲2.75 | 55.39 ▲12.75 |
Dashboard /wp-admin | 6.07 ▲2.77 | 61.41 ▲12.73 |
Posts /wp-admin/edit.php | 6.11 ▲2.75 | 58.90 ▲8.57 |
Add New Post /wp-admin/post-new.php | 8.61 ▲2.72 | 95.49 ▲7.47 |
Media Library /wp-admin/upload.php | 5.92 ▲2.69 | 57.15 ▲22.40 |
Super Page Cache for Cloudflare Nginx Settings /wp-admin/admin.php?page=wp-cloudflare-super-page-cache-nginx-settings | 5.89 | 46.41 |
Super Page Cache for Cloudflare /wp-admin/options-general.php?page=wp-cloudflare-super-page-cache-index | 7.30 | 56.62 |
Super Page Cache for Cloudflare cached HTML pages /wp-admin/admin.php?page=wp-cloudflare-super-page-cache-cached-html-pages | 5.89 | 44.89 |
Settings /wp-admin/admin.php?page=wp-cloudflare-super-page-cache-index | 7.30 | 52.54 |
Server storage [IO: ▲2.59MB] [DB: ▲0.39MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Just a few items left to fix
- The plugin illegally modified 5 files (0.10KB) outside of "wp-content/plugins/wp-cloudflare-page-cache/" and "wp-content/uploads/"
- (new file) wp-content/wp-cloudflare-super-page-cache/wp.com/index.php
- (new file) wp-content/wp-cloudflare-super-page-cache/index.php
- (new file) wp-content/wp-cloudflare-super-page-cache/wp.com/cached_html_pages/index.php
- (new file) wp-content/wp-cloudflare-super-page-cache/wp.com/purge_cache_queue/index.php
- (new file) wp-content/wp-cloudflare-super-page-cache/wp.com/nginx.conf
Filesystem: 97 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
swcfpc_version |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
swcfpc_config |
wp_cloudflare_page_cache_install |
Browser metrics Passed 4 tests
A check of browser resources used by Super Page Cache for Cloudflare
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,967 ▲206 | 14.69 ▲0.34 | 2.29 ▲0.60 | 31.60 ▼11.44 |
Dashboard /wp-admin | 2,344 ▲173 | 5.66 ▼0.02 | 83.43 ▼16.63 | 43.66 ▼1.11 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 2.23 ▲0.24 | 34.46 ▼1.94 | 35.81 ▲1.71 |
Add New Post /wp-admin/post-new.php | 1,548 ▲20 | 22.99 ▼0.05 | 621.26 ▼104.04 | 60.08 ▲4.91 |
Media Library /wp-admin/upload.php | 1,427 ▲30 | 4.34 ▲0.15 | 98.01 ▼8.08 | 42.23 ▼0.18 |
Super Page Cache for Cloudflare Nginx Settings /wp-admin/admin.php?page=wp-cloudflare-super-page-cache-nginx-settings | 842 | 1.86 | 22.83 | 30.29 |
Super Page Cache for Cloudflare /wp-admin/options-general.php?page=wp-cloudflare-super-page-cache-index | 5,098 | 1.85 | 28.00 | 51.83 |
Super Page Cache for Cloudflare cached HTML pages /wp-admin/admin.php?page=wp-cloudflare-super-page-cache-cached-html-pages | 829 | 1.90 | 27.95 | 23.15 |
Settings /wp-admin/admin.php?page=wp-cloudflare-super-page-cache-index | 5,095 | 1.85 | 27.31 | 39.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.38MB] 75% 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
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- wp_cloudflare_page_cache_install
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 11× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/wp-cloudflare-page-cache/libs/cloudflare.class.php
- > /wp-content/plugins/wp-cloudflare-page-cache/libs/backend.class.php
- > /wp-content/plugins/wp-cloudflare-page-cache/libs/fallback_cache.class.php
- > /wp-content/plugins/wp-cloudflare-page-cache/libs/wpcli.class.php
- > /wp-content/plugins/wp-cloudflare-page-cache/libs/installer.class.php
- > /wp-content/plugins/wp-cloudflare-page-cache/libs/logs.class.php
- > /wp-content/plugins/wp-cloudflare-page-cache/libs/varnish.class.php
- > /wp-content/plugins/wp-cloudflare-page-cache/assets/advanced-cache.php
- > /wp-content/plugins/wp-cloudflare-page-cache/libs/preloader.class.php
- > /wp-content/plugins/wp-cloudflare-page-cache/libs/cache_controller.class.php
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-cloudflare-page-cache/wp-cloudflare-super-page-cache.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_thickbox() in wp-content/plugins/wp-cloudflare-page-cache/libs/views/sidebar.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Async_Request' not found in wp-content/plugins/wp-cloudflare-page-cache/vendor/deliciousbrains/wp-background-processing/classes/wp-background-process.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-cloudflare-page-cache/vendor/deliciousbrains/wp-background-processing/wp-background-processing.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-cloudflare-page-cache/libs/views/cached_html_pages.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-cloudflare-page-cache/libs/views/nginx.php:5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-cloudflare-page-cache/libs/views/settings.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% 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: cloudflare cache, improve speed, improve performance, page caching
wp-cloudflare-page-cache/wp-cloudflare-super-page-cache.php 92% from 13 tests
"Super Page Cache for Cloudflare" version 4.7.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-cloudflare-page-cache.php" instead of "wp-cloudflare-super-page-cache.php")
Code Analysis 97% from 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 plugin22,383 lines of code in 76 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 54 | 5,216 | 5,398 | 12,956 |
JavaScript | 10 | 941 | 1,727 | 5,854 |
CSS | 6 | 120 | 12 | 2,277 |
PO File | 1 | 306 | 438 | 884 |
Markdown | 2 | 212 | 0 | 275 |
JSON | 1 | 0 | 0 | 95 |
SVG | 1 | 0 | 0 | 31 |
HTML | 1 | 0 | 0 | 11 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 212)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 62.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 547.00 |
Average method complexity | 4.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 212.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 34 | |
▷ Abstract classes | 3 | 8.82% |
▷ Concrete classes | 31 | 91.18% |
▷ Final classes | 1 | 3.23% |
Methods | 550 | |
▷ Static methods | 51 | 9.27% |
▷ Public methods | 474 | 86.18% |
▷ Protected methods | 21 | 3.82% |
▷ Private methods | 55 | 10.00% |
Functions | 49 | |
▷ Named functions | 23 | 46.94% |
▷ Anonymous functions | 26 | 53.06% |
Constants | 30 | |
▷ Global constants | 15 | 50.00% |
▷ Class constants | 15 | 50.00% |
▷ Public constants | 15 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.29MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/codeinwp/themeisle-sdk/assets/images/sparks.png | 2.63KB | 1.34KB | ▼ 49.07% |
vendor/codeinwp/themeisle-sdk/assets/images/wplk.png | 1.92KB | 1.27KB | ▼ 33.69% |
vendor/codeinwp/themeisle-sdk/assets/images/otter/otter-library.png | 173.18KB | 173.42KB | 0.00% |
vendor/codeinwp/themeisle-sdk/assets/images/otter/otter-patterns.png | 87.50KB | 87.41KB | 0.10% |
assets/img/partners/cloudways.png | 4.83KB | 0.32KB | ▼ 93.38% |