Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/easy-object-cache/EzOptions.php+21
Methods with the same name as their class will not be constructors in a future version of PHP; EzBaseOption has a deprecated constructor
Server metrics [RAM: ▼1.71MB] [CPU: ▼50.46ms] Passed 4 tests
Server-side resources used by Easy Object Cache
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.27 ▼1.19 | 5.88 ▼31.65 |
Dashboard /wp-admin | 2.29 ▼1.01 | 6.71 ▼47.67 |
Posts /wp-admin/edit.php | 2.29 ▼1.06 | 8.28 ▼37.30 |
Add New Post /wp-admin/post-new.php | 2.29 ▼3.59 | 6.74 ▼85.20 |
Media Library /wp-admin/upload.php | 2.29 ▼0.94 | 7.10 ▼22.01 |
Server storage [IO: ▲0.57MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Easy Object Cache
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.17 ▼1.21 | 4.96 ▲3.24 | 41.14 ▼5.42 |
Dashboard /wp-admin | 2,210 ▲22 | 5.88 ▼0.02 | 97.97 ▼10.71 | 38.28 ▼6.92 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.03 ▲0.01 | 36.78 ▼2.38 | 32.60 ▼2.04 |
Add New Post /wp-admin/post-new.php | 1,546 ▲13 | 18.36 ▼4.91 | 625.20 ▼62.98 | 68.08 ▲5.54 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.20 ▼0.04 | 95.78 ▼8.21 | 42.02 ▼0.33 |
Easy Object Cache Lite /wp-admin/easy-object-cache.php | 26 | 0.44 | 0.08 | 16.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/easy-object-cache/EzOptions.php+21
Methods with the same name as their class will not be constructors in a future version of PHP; EzBaseOption has a deprecated constructor
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
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 everything seems fine, this is not an exhaustive test
SRP 50% 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
- 8× PHP files trigger server errors when accessed directly:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/file.php): failed to open stream: No such file or directory in wp-content/plugins/easy-object-cache/EzObjectCacheBase.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/easy-object-cache/info-divs.php:2
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/easy-object-cache/EzObjectCacheBase.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/easy-object-cache/EzObjectCacheBase.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/easy-object-cache/EzObjectCacheBase.php on line 7
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/easy-object-cache/myPlugins.php:300
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/file.php' (include_path='.:/usr/share/php') in wp-content/plugins/easy-object-cache/EzObjectCacheBase.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/easy-object-cache/EzObjectCacheBase.php on line 7
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/easy-object-cache.php
- > Network (severe)
wp-admin/easy-object-cache.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% 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 require attention:
- Screenshots: Please add an image for screenshot #1 (*Easy Object Cache* admin page.)
easy-object-cache/easy-object-cache.php Passed 13 tests
The main file in "Easy Object Cache" v. 1.30 serves as a complement to information provided in readme.txt and as the entry point to the plugin
112 characters long description:
Easy Object Cache provides Alternate PHP Cache user data caching functions and lets you control WP object cache.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin3,386 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 358 | 275 | 2,270 |
JavaScript | 1 | 51 | 134 | 1,116 |
PHP code Passed 2 tests
Analyzing 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.28 |
Average class complexity | 12.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 2.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 121 | |
▷ Static methods | 6 | 4.96% |
▷ Public methods | 119 | 98.35% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.65% |
Functions | 34 | |
▷ Named functions | 34 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.18MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/ezsupport.png | 3.13KB | 2.01KB | ▼ 35.75% |
ezpaypal.png | 9.22KB | 3.44KB | ▼ 62.72% |
img/ezpaypal.png | 9.22KB | 3.44KB | ▼ 62.72% |
ezsupport.png | 3.13KB | 2.01KB | ▼ 35.75% |
screenshot-1.png | 158.33KB | 39.94KB | ▼ 74.77% |