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
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Warning in wp-content/plugins/simple-cache/inc/class-sc-config.php+182
unlink() expects parameter 2 to be resource, bool given
Server metrics [RAM: ▲0.24MB] [CPU: ▼1.30ms] Passed 4 tests
An overview of server-side resources used by Simple Cache
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 40.94 ▼0.69 |
Dashboard /wp-admin | 3.54 ▲0.24 | 49.69 ▲3.82 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 44.27 ▼2.71 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 81.17 ▼5.61 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 38.69 ▲4.73 |
Simple Cache /wp-admin/options-general.php?page=simple-cache | 3.44 | 35.54 |
Server storage [IO: ▲0.19MB] [DB: ▲0.07MB] 67% from 3 tests
A short overview of filesystem and database impact
Please try to fix the following items
- The plugin illegally modified 1 file (0.46KB) outside of "wp-content/plugins/simple-cache/" and "wp-content/uploads/"
- (new file) wp-content/sc-config/config-wp.com.php
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Simple Cache: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲56 | 14.39 ▼0.26 | 1.63 ▲0.11 | 44.42 ▼2.50 |
Dashboard /wp-admin | 2,214 ▲40 | 5.55 ▲0.03 | 83.74 ▼0.86 | 39.78 ▼1.31 |
Posts /wp-admin/edit.php | 2,123 ▲23 | 1.96 ▼0.15 | 35.33 ▼2.12 | 34.01 ▼3.95 |
Add New Post /wp-admin/post-new.php | 1,543 ▲17 | 22.98 ▼0.36 | 635.45 ▼38.42 | 56.76 ▲6.00 |
Media Library /wp-admin/upload.php | 1,422 ▲22 | 4.23 ▲0.04 | 110.65 ▲16.70 | 48.91 ▲8.35 |
Simple Cache /wp-admin/options-general.php?page=simple-cache | 1,214 | 1.85 | 33.24 | 32.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/simple-cache/inc/class-sc-advanced-cache.php+134
unlink(wp-content/advanced-cache.php): No such file or directory
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: object caching, object cache, memcache, memcached, cache...
simple-cache/simple-cache.php Passed 13 tests
The main PHP file in "Simple Cache" ver. 2.0.0 adds more information about the plugin and also serves as the entry point for this plugin
40 characters long description:
A simple caching plugin that just works.
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
There were no executable files found in this plugin3,247 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 872 | 1,071 | 2,808 |
PO File | 2 | 92 | 127 | 313 |
JavaScript | 2 | 14 | 0 | 61 |
CSS | 2 | 9 | 0 | 49 |
Markdown | 1 | 6 | 0 | 16 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 44.40 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 113.00 |
Average method complexity | 4.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 119 | |
▷ Static methods | 6 | 5.04% |
▷ Public methods | 107 | 89.92% |
▷ Protected methods | 9 | 7.56% |
▷ Private methods | 3 | 2.52% |
Functions | 61 | |
▷ Named functions | 61 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 9 | 90.00% |
▷ Class constants | 1 | 10.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin