Benchmarks
Plugin footprint 22% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/cache-performance/lib/class-optimisationio-cacheenabler.php+174
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.64MB] [CPU: ▼9.02ms] Passed 4 tests
This is a short check of server-side resources used by WordPress Cache and CDN plugin - fast, easy to use, instant results
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.31 | 32.60 ▼8.53 |
Dashboard /wp-admin | 4.25 ▲0.95 | 52.43 ▲4.23 |
Posts /wp-admin/edit.php | 4.31 ▲0.95 | 50.46 ▲0.73 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.36 | 69.38 ▼32.49 |
Media Library /wp-admin/upload.php | 4.18 ▲0.95 | 42.49 ▲9.66 |
Server storage [IO: ▲0.62MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Just a few items left to fix
- Illegal file modification found: 2 files (7.40KB) outside of "wp-content/plugins/cache-performance/" and "wp-content/uploads/"
- (new file) wp-content/advanced-cache.php
- (modified) wp-config.php
Filesystem: 38 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_wp_cache_gravatars |
wp_wp_optimisation_sizes_info |
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Optimisationio_rev3a_cdnsettings |
cache |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WordPress Cache and CDN plugin - fast, easy to use, instant results
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,859 ▲113 | 13.23 ▼1.52 | 1.86 ▲0.06 | 43.46 ▼4.14 |
Dashboard /wp-admin | 2,246 ▲55 | 5.84 ▲0.91 | 98.88 ▼1.91 | 39.64 ▼0.84 |
Posts /wp-admin/edit.php | 2,120 ▲28 | 2.06 ▲0.08 | 33.10 ▼7.63 | 33.40 ▼1.66 |
Add New Post /wp-admin/post-new.php | 1,560 ▲46 | 23.11 ▲5.43 | 581.11 ▼18.51 | 54.13 ▲6.02 |
Media Library /wp-admin/upload.php | 1,425 ▲37 | 4.18 ▼0.02 | 92.21 ▼2.47 | 43.76 ▲1.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/cache-performance/lib/class-optimisationio-cacheenabler.php+124
Trying to access array offset on value of type bool
- Zombie tables detected upon uninstall: 1 table
- wp_wp_optimisation_sizes_info
- Zombie WordPress options were found after uninstall: 8 options
- theysaidso_admin_options
- widget_recent-comments
- Optimisationio_rev3a_cdnsettings
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- cache
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
Almost there! Just fix the following items
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Optimisationio_Dashboard' not found in wp-content/plugins/cache-performance/views/optimisationio-dashboard.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Upgrader_Skin' not found in wp-content/plugins/cache-performance/lib/class-optimisationio-upgrader-skin.php:5
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/cache-performance/lib/class-optimisationio-upgrader-skin.php on line 3
- > 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/cache-performance/advanced-cache.php on line 36
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/cache-performance/optimisationio.php:22
- > PHP Warning
include_once(ABSPATHwp-admin/includes/class-wp-upgrader.php): failed to open stream: No such file or directory in wp-content/plugins/cache-performance/lib/class-optimisationio-upgrader-skin.php on line 3
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/class-wp-upgrader.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/cache-performance/lib/class-optimisationio-upgrader-skin.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
cache-performance/optimisationio.php 92% from 13 tests
Analyzing the main PHP file in "WordPress Cache and CDN plugin - fast, easy to use, instant results" version 1.6.12
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("cache-performance.php" instead of "optimisationio.php")
Code Analysis Passed 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
Good job! No executable or dangerous file extensions detected8,332 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 1,447 | 1,175 | 6,489 |
CSS | 2 | 170 | 26 | 1,034 |
JavaScript | 3 | 192 | 34 | 809 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 71.87 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 272.00 |
Average method complexity | 5.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 78.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 256 | |
▷ Static methods | 117 | 45.70% |
▷ Public methods | 205 | 80.08% |
▷ Protected methods | 5 | 1.95% |
▷ Private methods | 46 | 17.97% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 19 | |
▷ Global constants | 7 | 36.84% |
▷ Class constants | 12 | 63.16% |
▷ Public constants | 12 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 compressed PNG files occupy 0.01MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo-optimisation-line.png | 0.85KB | 1.07KB | 0.00% |
images/icon-support.png | 0.76KB | 0.76KB | 0.13% |
images/logo-optimisation.png | 3.97KB | 3.99KB | 0.00% |