Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.58ms] Passed 4 tests
Analyzing server-side resources used by Redis Object Cache
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 35.80 ▼3.37 |
Dashboard /wp-admin | 3.36 ▲0.06 | 46.20 ▼4.46 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 49.28 ▲6.08 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 91.09 ▼3.50 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 31.89 ▼2.98 |
Redis /wp-admin/options-general.php?page=redis-cache | 3.42 | 35.56 |
Server storage [IO: ▲1.46MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 402 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Redis Object Cache
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,056 ▲294 | 14.73 ▲0.61 | 1.60 ▼0.24 | 40.97 ▼3.89 |
Dashboard /wp-admin | 2,439 ▲262 | 6.38 ▲0.85 | 135.13 ▲31.80 | 47.22 ▲3.26 |
Posts /wp-admin/edit.php | 2,132 ▲32 | 1.97 ▼0.05 | 39.71 ▲2.98 | 35.24 ▼0.95 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.28 ▲0.20 | 598.39 ▼147.49 | 45.60 ▼10.23 |
Media Library /wp-admin/upload.php | 1,432 ▲32 | 4.25 ▲0.02 | 103.70 ▼5.05 | 43.62 ▼4.03 |
Redis /wp-admin/options-general.php?page=redis-cache | 1,068 | 2.83 | 46.07 | 27.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/StreamConnection.php+108
stream_socket_client(): unable to connect to tcp://127.0.0.1:6379 (Connection refused)
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=redis-cache
- > Warning in wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/StreamConnection.php+108
stream_socket_client(): unable to connect to tcp://127.0.0.1:6379 (Connection refused)
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
- 295× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Command\\Command' not found in wp-content/plugins/redis-cache/dependencies/predis/predis/src/Command/Redis/MSET.php:20
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Command\\Command' not found in wp-content/plugins/redis-cache/dependencies/predis/predis/src/Command/Redis/OBJECT_.php:20
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Pipeline\\Pipeline' not found in wp-content/plugins/redis-cache/dependencies/predis/predis/src/Pipeline/ConnectionErrorProof.php:26
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Command\\Command' not found in wp-content/plugins/redis-cache/dependencies/predis/predis/src/Command/Redis/SADD.php:20
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Command\\Command' not found in wp-content/plugins/redis-cache/dependencies/predis/predis/src/Command/Redis/LPUSHX.php:20
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Command\\Command' not found in wp-content/plugins/redis-cache/dependencies/predis/predis/src/Command/Redis/AbstractCommand/BZPOPBase.php:18
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Command\\Command' not found in wp-content/plugins/redis-cache/dependencies/predis/predis/src/Command/Redis/LMPOP.php:20
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Command\\Command' not found in wp-content/plugins/redis-cache/dependencies/predis/predis/src/Command/Redis/DECRBY.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Predis\\Connection\\Replication\\ReplicationInterface' not found in wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/Replication/MasterSlaveReplication.php:30
- > PHP Fatal error
Uncaught Error: Interface 'Predis\\ClientInterface' not found in wp-content/plugins/redis-cache/dependencies/predis/predis/src/Client.php:48
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: relay, phpredis, redis, caching performance, cache...
redis-cache/redis-cache.php Passed 13 tests
This is the main PHP file of "Redis Object Cache" version 2.5.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
132 characters long description:
A persistent object cache backend powered by Redis. Supports Predis, PhpRedis, Relay, replication, sentinels, clustering and WP-CLI.
Code Analysis 97% from 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
Everything looks great! No dangerous files found in this plugin18,428 lines of code in 398 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 382 | 4,771 | 12,356 | 16,574 |
Markdown | 3 | 302 | 0 | 1,059 |
JavaScript | 2 | 64 | 15 | 423 |
CSS | 1 | 37 | 0 | 159 |
Dockerfile | 6 | 30 | 12 | 107 |
JSON | 2 | 0 | 0 | 75 |
YAML | 1 | 6 | 0 | 26 |
Bourne Shell | 1 | 5 | 16 | 5 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 140)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 6.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 347.00 |
Average method complexity | 2.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 140.00 |
Code structure | ||
---|---|---|
Namespaces | 42 | |
Interfaces | 32 | |
Traits | 27 | |
Classes | 313 | |
▷ Abstract classes | 13 | 4.15% |
▷ Concrete classes | 300 | 95.85% |
▷ Final classes | 1 | 0.33% |
Methods | 1,311 | |
▷ Static methods | 44 | 3.36% |
▷ Public methods | 1,073 | 81.85% |
▷ Protected methods | 196 | 14.95% |
▷ Private methods | 42 | 3.20% |
Functions | 48 | |
▷ Named functions | 21 | 43.75% |
▷ Anonymous functions | 27 | 56.25% |
Constants | 60 | |
▷ Global constants | 21 | 35.00% |
▷ Class constants | 39 | 65.00% |
▷ Public constants | 30 | 76.92% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin