Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▲1.31ms] Passed 4 tests
An overview of server-side resources used by WP REST Cache
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 43.79 ▲0.75 |
Dashboard /wp-admin | 3.40 ▲0.09 | 50.59 ▲2.78 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 51.91 ▼1.91 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 111.56 ▲15.17 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 39.56 ▲3.60 |
WP REST Cache /wp-admin/options-general.php?page=wp-rest-cache | 3.37 | 38.44 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Just a few items left to fix
- Illegal file modification found: 1 file (1.07KB) outside of "wp-content/plugins/wp-rest-cache/" and "wp-content/uploads/"
- (new file) wp-content/mu-plugins/wp-rest-cache.php
Filesystem: 31 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_wrc_relations |
wp_wrc_caches |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
WP REST Cache: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲101 | 13.26 ▼1.30 | 1.70 ▼0.10 | 40.95 ▼2.13 |
Dashboard /wp-admin | 2,226 ▲35 | 5.83 ▲0.73 | 108.79 ▲0.39 | 44.94 ▼2.99 |
Posts /wp-admin/edit.php | 2,106 ▲17 | 2.03 ▲0.01 | 39.59 ▲3.81 | 35.76 ▼0.15 |
Add New Post /wp-admin/post-new.php | 1,538 ▲10 | 23.13 ▼0.04 | 589.14 ▲4.34 | 58.69 ▲6.39 |
Media Library /wp-admin/upload.php | 1,402 ▲14 | 4.20 ▼0.05 | 100.47 ▲3.48 | 43.75 ▼1.76 |
WP REST Cache /wp-admin/options-general.php?page=wp-rest-cache | 1,025 | 2.06 | 21.65 | 27.18 |
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
It is recommended to fix the following
- Zombie tables were found after uninstall: 2 tables
- wp_wrc_relations
- wp_wrc_caches
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 15× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Terms_Controller' not found in wp-content/plugins/wp-rest-cache/includes/controller/class-term-controller.php:21
- > PHP Warning
include_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/wp-rest-cache/admin/includes/class-api-caches-table.php on line 15
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-rest-cache/sources/wp-rest-cache.php on line 23
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/wp-rest-cache/sources/wp-rest-cache.php on line 23
- > PHP Fatal error
Uncaught Error: Class 'WP_Rest_Cache_Plugin\\Admin\\Includes\\API_Caches_Table' not found in wp-content/plugins/wp-rest-cache/admin/partials/sub-endpoint-api.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/wp-rest-cache/includes/cli/class-flush-command.php:23
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Attachments_Controller' not found in wp-content/plugins/wp-rest-cache/includes/controller/class-attachment-controller.php:21
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/wp-rest-cache/admin/includes/class-api-caches-table.php:26
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-rest-cache/sources/wp-rest-cache.php on line 23
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-rest-cache/admin/partials/sub-clear-cache.php:45
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: api, cache, rest cache, rest api cache, rest...
wp-rest-cache/wp-rest-cache.php Passed 13 tests
"WP REST Cache" version 2023.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
31 characters long description:
Adds caching to the WP REST API
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 detected3,310 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 450 | 1,732 | 2,164 |
CSS | 2 | 33 | 50 | 1,146 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 17.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 109.00 |
Average method complexity | 3.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 124 | |
▷ Static methods | 9 | 7.26% |
▷ Public methods | 96 | 77.42% |
▷ Protected methods | 2 | 1.61% |
▷ Private methods | 26 | 20.97% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 7 | 100.00% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin