Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/wp-super-cache/wp-cache.php+110
include(wp-content/wp-cache-config.php): failed to open stream: No such file or directory
Server metrics [RAM: ▲1.94MB] [CPU: ▲8.87ms] Passed 4 tests
This is a short check of server-side resources used by WP Super Cache
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.44 ▲1.98 | 46.51 ▲5.34 |
Dashboard /wp-admin | 5.27 ▲1.97 | 59.15 ▲9.98 |
Posts /wp-admin/edit.php | 5.31 ▲1.96 | 62.82 ▲13.49 |
Add New Post /wp-admin/post-new.php | 7.82 ▲1.94 | 92.86 ▲6.67 |
Media Library /wp-admin/upload.php | 5.13 ▲1.90 | 51.99 ▲21.12 |
WP Super Cache /wp-admin/options-general.php?page=wpsupercache | 5.28 | 81.84 |
Server storage [IO: ▲3.50MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
It is recommended to fix the following issues
- Illegal file modification detected: 8 files (9.25KB) outside of "wp-content/plugins/wp-super-cache/" and "wp-content/uploads/"
- (new file) wp-content/advanced-cache.php
- (new file) wp-content/cache/meta/index.html
- (new file) wp-content/cache/.htaccess
- (new file) wp-content/cache/index.html
- (new file) wp-content/wp-cache-config.php
- (new file) wp-content/cache/supercache/index.html
- (modified) wp-config.php
- (new file) wp-content/cache/blogs/index.html
Filesystem: 106 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
wpsupercache_start |
widget_theysaidso_widget |
wpsupercache_count |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Super Cache
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲70 | 14.24 ▼0.11 | 1.61 ▼0.28 | 38.50 ▼6.31 |
Dashboard /wp-admin | 2,231 ▲51 | 5.52 ▼0.14 | 90.71 ▼1.82 | 42.44 ▲2.31 |
Posts /wp-admin/edit.php | 2,140 ▲40 | 2.14 ▲0.18 | 41.50 ▲4.79 | 35.14 ▲2.95 |
Add New Post /wp-admin/post-new.php | 1,564 ▲38 | 25.39 ▲2.22 | 689.43 ▲9.04 | 65.21 ▲8.27 |
Media Library /wp-admin/upload.php | 1,430 ▲30 | 4.20 ▲0.00 | 104.53 ▼2.53 | 45.01 ▲1.40 |
WP Super Cache /wp-admin/options-general.php?page=wpsupercache | 1,227 | 1.71 | 27.84 | 48.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/wp-super-cache/wp-cache.php+1933
unlink(wp-content/cache/blogs/index.html): No such file or directory
- This plugin does not fully uninstall, leaving 8 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- wpsupercache_start
- theysaidso_admin_options
- wpsupercache_count
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
- 34× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/wp-super-cache/rest/class.wp-super-cache-rest-get-settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_cacheaction() in wp-content/plugins/wp-super-cache/plugins/domain-mapping.php:59
- > PHP Fatal error
Uncaught Error: Call to undefined function add_cacheaction() in wp-content/plugins/wp-super-cache/plugins/wptouch.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-super-cache/partials/lockdown.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/wp-super-cache/wp-cache-base.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-super-cache/inc/preload-notification.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/wp-super-cache/plugins/multisite.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-super-cache/partials/restore.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url_raw() in wp-content/plugins/wp-super-cache/partials/advanced.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/wp-super-cache/rest/class.wp-super-cache-rest-get-settings.php:5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wpsupercache
- > Other (warning) in unknown
other - Failed parsing 'srcset' attribute value since it has an unknown descriptor.
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wpsupercache
- > Other (warning) in unknown
other - Dropped srcset candidate "/wp-content/plugins/wp-super-cache//assets/boost-install-card-main.png"
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
5 plugin tags: cache, caching, wp-super-cache, performance, wp-cache
wp-super-cache/wp-cache.php 92% from 13 tests
The primary PHP file in "WP Super Cache" version 1.11.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-super-cache.php" instead of "wp-cache.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected25,689 lines of code in 81 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 16 | 5,603 | 7,631 | 12,858 |
PHP | 49 | 1,861 | 1,806 | 11,453 |
Markdown | 6 | 265 | 0 | 829 |
JavaScript | 3 | 35 | 30 | 204 |
JSON | 4 | 0 | 0 | 168 |
CSS | 1 | 22 | 6 | 146 |
SVG | 2 | 0 | 0 | 31 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 32.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 294.00 |
Average method complexity | 4.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 162 | |
▷ Static methods | 74 | 45.68% |
▷ Public methods | 115 | 70.99% |
▷ Protected methods | 43 | 26.54% |
▷ Private methods | 4 | 2.47% |
Functions | 274 | |
▷ Named functions | 269 | 98.18% |
▷ Anonymous functions | 5 | 1.82% |
Constants | 45 | |
▷ Global constants | 33 | 73.33% |
▷ Class constants | 12 | 26.67% |
▷ Public constants | 12 | 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
4 PNG files occupy 0.42MB with 0.20MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/boost-install-card-main.png | 93.93KB | 38.92KB | ▼ 58.56% |
assets/super-cache-icon.png | 4.14KB | 3.32KB | ▼ 19.65% |
assets/automattic-airline.png | 3.49KB | 1.90KB | ▼ 45.50% |
assets/boost-install-card-main-2x.png | 333.52KB | 131.44KB | ▼ 60.59% |