Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Compile error in wp-content/plugins/redis-object-cache/object-cache.php+23
Cannot redeclare wp_cache_add() (previously declared in wp-includes/cache.php:41)
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.91ms] Passed 4 tests
This is a short check of server-side resources used by Redis Object Cache
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.49 ▼3.14 |
Dashboard /wp-admin | 3.31 ▼0.04 | 49.76 ▼16.40 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.42 ▲0.69 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.18 ▼10.22 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.81 ▼1.89 |
Server storage [IO: ▲1.33MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 491 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Redis Object Cache
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.32 ▼1.24 | 4.27 ▲2.58 | 40.11 ▼5.04 |
Dashboard /wp-admin | 2,206 ▲15 | 5.90 ▲0.01 | 106.89 ▲4.07 | 38.09 ▼1.85 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.02 | 38.45 ▲5.40 | 36.35 ▲1.56 |
Add New Post /wp-admin/post-new.php | 1,419 ▼95 | 21.38 ▲3.78 | 625.16 ▼156.44 | 58.64 ▲6.31 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.19 ▼0.02 | 92.33 ▼19.16 | 40.40 ▼10.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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 fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/redis-object-cache/predis/bin/create-single-file.php
- 448× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Command\\PrefixableCommand' not found in wp-content/plugins/redis-object-cache/predis/lib/Predis/Command/StringIncrementBy.php:18
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Command\\AbstractCommand' not found in wp-content/plugins/redis-object-cache/predis/lib/Predis/Command/PubSubUnsubscribe.php:18
- > PHP Fatal error
Uncaught Error: Interface 'Predis\\Protocol\\ResponseReaderInterface' not found in wp-content/plugins/redis-object-cache/predis/lib/Predis/Protocol/Text/TextResponseReader.php:27
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Command\\CommandTestCase' not found in wp-content/plugins/redis-object-cache/predis/tests/Predis/Command/StringGetRangeTest.php:20
- > PHP Fatal error
Uncaught Predis\\Connection\\ConnectionException: Connection refused in wp-content/plugins/redis-object-cache/predis/lib/Predis/Connection/AbstractConnection.php:139
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Command\\CommandTestCase' not found in wp-content/plugins/redis-object-cache/predis/tests/Predis/Command/ZSetRangeByScoreTest.php:20
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/redis-object-cache/predis/tests/PHPUnit/DistributionStrategyTestCase.php:19
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/redis-object-cache/predis/tests/Predis/ResponseErrorTest.php:19
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Command\\CommandTestCase' not found in wp-content/plugins/redis-object-cache/predis/tests/Predis/Command/ListPopLastTest.php:20
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Option\\AbstractOption' not found in wp-content/plugins/redis-object-cache/predis/lib/Predis/Option/ClientPrefix.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: redis, object cache, cache
redis-object-cache/object-cache.php 92% from 13 tests
"Redis Object Cache" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("redis-object-cache.php" instead of "object-cache.php")
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
Good job! No executable or dangerous file extensions detected26,262 lines of code in 488 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 477 | 7,871 | 16,130 | 25,286 |
Markdown | 6 | 311 | 0 | 856 |
XML | 2 | 11 | 12 | 59 |
JSON | 1 | 0 | 0 | 25 |
INI | 1 | 6 | 6 | 23 |
YAML | 1 | 0 | 0 | 13 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 2.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 1.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 18 | |
Interfaces | 30 | |
Traits | 0 | |
Classes | 438 | |
▷ Abstract classes | 14 | 3.20% |
▷ Concrete classes | 424 | 96.80% |
▷ Final classes | 0 | 0.00% |
Methods | 2,683 | |
▷ Static methods | 27 | 1.01% |
▷ Public methods | 2,159 | 80.47% |
▷ Protected methods | 475 | 17.70% |
▷ Private methods | 49 | 1.83% |
Functions | 98 | |
▷ Named functions | 17 | 17.35% |
▷ Anonymous functions | 81 | 82.65% |
Constants | 52 | |
▷ Global constants | 11 | 21.15% |
▷ Class constants | 41 | 78.85% |
▷ Public constants | 41 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin