Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Compile error in wp-content/plugins/wp-redis-cache/rc_core.php+313
'continue' not in the 'loop' or 'switch' context
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.27ms] Passed 4 tests
Analyzing server-side resources used by Redis Cache
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 44.01 ▲4.14 |
Dashboard /wp-admin | 3.31 ▲0.00 | 49.70 ▲0.26 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.97 ▼1.00 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.04 ▼29.73 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.76 ▼2.59 |
Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Redis Cache: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 14.28 ▼0.07 | 1.89 ▲0.12 | 45.16 ▲0.70 |
Dashboard /wp-admin | 2,195 ▲15 | 5.58 ▼0.09 | 93.57 ▲1.42 | 41.56 ▲4.79 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.03 ▲0.06 | 33.60 ▼3.34 | 34.66 ▼0.13 |
Add New Post /wp-admin/post-new.php | 1,526 ▼9 | 23.36 ▲5.17 | 663.91 ▼25.30 | 55.91 ▼19.06 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.21 ▲0.01 | 92.48 ▼11.57 | 42.89 ▲0.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 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
Please fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
'continue' not in the 'loop' or 'switch' context in wp-content/plugins/wp-redis-cache/rc_core.php on line 313
- > PHP Fatal error
Uncaught Error: Class 'Walker_Category' not found in wp-content/plugins/wp-redis-cache/class/admin-page-framework.php:10539
- > 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 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #1 (Dashboard Screenshot) image missing
- Donate link: Invalid url: ""
wp-redis-cache/rc_core.php 92% from 13 tests
The principal PHP file in "Redis Cache" v. 0.2.5 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-redis-cache.php" instead of "rc_core.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin8,515 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 2,224 | 4,704 | 8,462 |
CSS | 2 | 1 | 0 | 40 |
Markdown | 1 | 9 | 0 | 13 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 6.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 128.00 |
Average method complexity | 2.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 219 | |
▷ Abstract classes | 23 | 10.50% |
▷ Concrete classes | 196 | 89.50% |
▷ Final classes | 0 | 0.00% |
Methods | 789 | |
▷ Static methods | 29 | 3.68% |
▷ Public methods | 587 | 74.40% |
▷ Protected methods | 100 | 12.67% |
▷ Private methods | 102 | 12.93% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 27 | |
▷ Global constants | 2 | 7.41% |
▷ Class constants | 25 | 92.59% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin