Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.67ms] Passed 4 tests
Analyzing server-side resources used by WP Redis
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 38.40 ▼9.50 |
Dashboard /wp-admin | 3.32 ▼0.03 | 45.83 ▼19.68 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.51 ▼1.14 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 89.64 ▲0.60 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.74 ▼0.37 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by WP Redis
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲18 | 14.69 ▲0.51 | 2.08 ▲0.14 | 39.21 ▼4.83 |
Dashboard /wp-admin | 2,195 ▲17 | 5.61 ▼0.12 | 94.03 ▼8.84 | 42.95 ▼0.93 |
Posts /wp-admin/edit.php | 2,100 ▲21 | 1.97 ▼0.05 | 38.88 ▲4.77 | 36.13 ▲4.60 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.65 ▲0.49 | 677.45 ▲36.13 | 53.03 ▲1.41 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.19 ▼0.09 | 95.34 ▼1.66 | 43.12 ▼1.27 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI' not found in wp-content/plugins/wp-redis/cli.php:245
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: cache, redis, plugin
wp-redis/wp-redis.php Passed 13 tests
The primary PHP file in "WP Redis" version 1.4.4 is used by WordPress to initiate all plugin functionality
107 characters long description:
WordPress Object Cache using Redis. Requires the PhpRedis extension (https://github.com/phpredis/phpredis).
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
No dangerous file extensions were detected971 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 205 | 736 | 971 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 104.00 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 182.00 |
Average method complexity | 5.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 1 | 2.22% |
▷ Public methods | 30 | 66.67% |
▷ Protected methods | 12 | 26.67% |
▷ Private methods | 3 | 6.67% |
Functions | 22 | |
▷ Named functions | 21 | 95.45% |
▷ Anonymous functions | 1 | 4.55% |
Constants | 7 | |
▷ Global constants | 6 | 85.71% |
▷ Class constants | 1 | 14.29% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin