Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▲1.62ms] Passed 4 tests
Server-side resources used by WPCacheOn - WordPress Caching plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 41.81 ▲5.35 |
Dashboard /wp-admin | 3.37 ▲0.06 | 46.65 ▼4.77 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 47.48 ▲1.00 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 95.68 ▲8.97 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 38.25 ▲4.89 |
WPCacheOn /wp-admin/options-general.php?page=wp-cache-on | 3.32 | 488.20 |
Server storage [IO: ▲0.16MB] [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
- There were 9 files (73.95KB) illegally modified outside of "wp-content/plugins/wpcacheon/" and "wp-content/uploads/"
- (new file) wp-content/cache/wpcacheon/index.php
- (modified) .htaccess
- (new file) .htaccess.wco
- (new file) wp-content/cache/wpcacheon/wp.com/wco.html.gz
- (new file) wp-content/cache/wpcacheon/wp.com/wco-webp.html.gz
- (new file) wp-content/advanced-cache.php
- (modified) wp-config.php
- (new file) wp-content/cache/wpcacheon/wp.com/wco.html
- (new file) wp-content/cache/wpcacheon/wp.com/wco-webp.html
Filesystem: 34 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
wp-cache-on |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for WPCacheOn - WordPress Caching plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,921 ▲132 | 13.56 ▼1.17 | 5.68 ▲3.84 | 37.77 ▼5.74 |
Dashboard /wp-admin | 2,230 ▲21 | 5.83 ▲0.99 | 97.72 ▼0.27 | 41.05 ▲3.15 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 2.06 ▲0.03 | 39.20 ▲3.54 | 36.71 ▲3.89 |
Add New Post /wp-admin/post-new.php | 1,525 ▼8 | 17.51 ▼5.84 | 606.41 ▼53.30 | 49.48 ▼13.73 |
Media Library /wp-admin/upload.php | 1,406 ▲15 | 4.24 ▲0.07 | 100.73 ▲1.07 | 41.07 ▼5.28 |
WPCacheOn /wp-admin/options-general.php?page=wp-cache-on | 1,142 | 5.63 | 148.99 | 51.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/wpcacheon/uninstall.php+26
Constant WCO_CACHE_DIR already defined
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 50% 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 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
Please take a closer look at the following
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wpcacheon/includes/index.php
- > /wp-content/plugins/wpcacheon/admin/index.php
- > /wp-content/plugins/wpcacheon/public/index.php
- > /wp-content/plugins/wpcacheon/index.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Cache_On' not found in wp-content/plugins/wpcacheon/admin/partials/settings.php:4
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpcacheon/includes/advanced-cache.php on line 27
- > 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
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: cache, gzip, caching, minify, gtmetrix
wpcacheon/wp-cache-on.php 92% from 13 tests
"WPCacheOn - WordPress Caching plugin" version 2.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("wpcacheon.php" instead of "wp-cache-on.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,920 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 378 | 858 | 1,619 |
CSS | 2 | 12 | 32 | 241 |
JavaScript | 2 | 10 | 54 | 35 |
SVG | 2 | 0 | 0 | 25 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 20.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 3.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 93 | |
▷ Static methods | 66 | 70.97% |
▷ Public methods | 69 | 74.19% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 24 | 25.81% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 15 | |
▷ Global constants | 8 | 53.33% |
▷ Class constants | 7 | 46.67% |
▷ Public constants | 7 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) admin/images/logo.png | 23.65KB | 0.00KB | ▼ 100.00% |
admin/images/icon.png | 1.41KB | 0.63KB | ▼ 55.13% |
admin/images/rate.png | 2.19KB | 1.74KB | ▼ 20.49% |