Benchmarks
Plugin footprint 57% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/mobile-cache/EzOptions.php+480
Methods with the same name as their class will not be constructors in a future version of PHP; EzMiniTab has a deprecated constructor
Server metrics [RAM: ▲0.12MB] [CPU: ▼6.31ms] Passed 4 tests
Server-side resources used by Easy Cache
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 42.12 ▲3.33 |
Dashboard /wp-admin | 3.45 ▲0.14 | 44.28 ▼7.47 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 45.87 ▼1.37 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 83.66 ▼16.00 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 35.19 ▼0.40 |
Server storage [IO: ▲1.36MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Just a few items left to fix
- You have illegally modified 3 files (0.18KB) outside of "wp-content/plugins/mobile-cache/" and "wp-content/uploads/"
- (new file) wp-content/easy-cache/others/index.php
- (new file) wp-content/easy-cache/.htaccess
- (new file) wp-content/easy-cache/mobile/index.php
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Easy Cache
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.63 ▼1.02 | 1.67 ▼0.07 | 40.01 ▼3.34 |
Dashboard /wp-admin | 2,210 ▲18 | 5.79 ▲0.87 | 98.86 ▼23.06 | 40.87 ▼5.00 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 1.97 ▼0.03 | 40.69 ▼2.88 | 35.17 ▼0.24 |
Add New Post /wp-admin/post-new.php | 1,545 ▲24 | 23.47 ▲0.13 | 639.59 ▼49.32 | 54.21 ▼2.22 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.25 ▲0.07 | 95.64 ▼10.44 | 42.52 ▼1.41 |
Easy Cache Lite /wp-admin/mobile-cache.php | 26 | 0.44 | 0.08 | 13.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 25% 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
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/mobile-cache/info-divs.php
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/mobile-cache/myPlugins.php:300
- > PHP Warning
require_once(ABSPATHwp-admin/includes/file.php): failed to open stream: No such file or directory in wp-content/plugins/mobile-cache/MobileCacheBase.php on line 7
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/mobile-cache/MobileCacheBase.php on line 7
- > PHP Warning
require_once(ABSPATHwp-admin/includes/file.php): failed to open stream: No such file or directory in wp-content/plugins/mobile-cache/MobileCacheBase.php on line 7
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/file.php' (include_path='.:/usr/share/php') in wp-content/plugins/mobile-cache/MobileCacheBase.php on line 7
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/file.php' (include_path='.:/usr/share/php') in wp-content/plugins/mobile-cache/MobileCacheBase.php on line 7
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/mobile-cache/MobileCacheBase.php on line 7
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/mobile-cache.php
- > Network (severe)
wp-admin/mobile-cache.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (*Easy Cache* admin page, showing the simple, single-page, easy-to-understand settings.), #2 (*Easy Cache* Pro features, showing independent caching by target type (smart phones, tablets, desktop browsers) and CDN and RAM disk support.), #3 (My blog performance with no caching.), #4 (My blog with a fully-configured *Easy Cache* set up.)
mobile-cache/mobile-cache.php 92% from 13 tests
The primary PHP file in "Easy Cache" version 1.60 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 175 characters long)
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 plugin4,373 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 461 | 1,003 | 3,257 |
JavaScript | 1 | 51 | 134 | 1,116 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 21.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 3.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 170 | |
▷ Static methods | 34 | 20.00% |
▷ Public methods | 168 | 98.82% |
▷ Protected methods | 2 | 1.18% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 6 | 100.00% |
Constants | 10 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 10 | 100.00% |
▷ Public constants | 10 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.85MB with 0.54MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 176.29KB | 45.93KB | ▼ 73.94% |
img/ezsupport.png | 3.13KB | 2.01KB | ▼ 35.75% |
ezpaypal.png | 9.22KB | 3.44KB | ▼ 62.72% |
screenshot-2.png | 142.89KB | 39.99KB | ▼ 72.01% |
screenshot-4.png | 273.45KB | 74.78KB | ▼ 72.65% |