Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- The plugin cannot be installed
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'WPRestApiExtensions' not found
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.77ms] Passed 4 tests
Analyzing server-side resources used by WPRestCache
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.55 ▼5.28 |
Dashboard /wp-admin | 3.34 ▼0.01 | 49.63 ▼15.04 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 50.55 ▲0.32 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 92.57 ▲0.91 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.73 ▲1.55 |
WPRestCache /wp-admin/tools.php?page=WPRestCacheAdmin | 3.21 | 32.85 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
WPRestCache_MESSAGES |
widget_recent-comments |
Browser metrics Passed 4 tests
WPRestCache: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲36 | 14.24 ▲0.05 | 1.75 ▼0.21 | 45.87 ▲6.93 |
Dashboard /wp-admin | 2,202 ▲27 | 5.63 ▲0.03 | 80.94 ▼24.91 | 38.18 ▼6.01 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▼0.05 | 36.15 ▼2.53 | 34.49 ▲1.47 |
Add New Post /wp-admin/post-new.php | 1,540 ▲6 | 18.27 ▼4.76 | 621.69 ▼63.63 | 71.96 ▲13.93 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.23 ▲0.04 | 103.88 ▼0.67 | 47.63 ▲2.97 |
WPRestCache /wp-admin/tools.php?page=WPRestCacheAdmin | 835 | 2.01 | 28.20 | 33.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The plugin did not uninstall gracefully
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'WPRestApiExtensions' not found
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- WPRestCache_MESSAGES
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Please fix the following items
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WPRestCache' not found in wp-content/plugins/wprestcache/includes/admin.php:3
- > PHP Warning
Use of undefined constant PATH_TO_WP - assumed 'PATH_TO_WP' (this will throw an Error in a future version of PHP) in wp-content/plugins/wprestcache/includes/rest-api/index.php on line 46
- > PHP Warning
Use of undefined constant PATH_TO_WP - assumed 'PATH_TO_WP' (this will throw an Error in a future version of PHP) in wp-content/plugins/wprestcache/includes/rest-api/index.php on line 46
- > PHP Warning
Use of undefined constant PATH_TO_WP - assumed 'PATH_TO_WP' (this will throw an Error in a future version of PHP) in wp-content/plugins/wprestcache/includes/rest-api/index.php on line 46
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wprestcache/includes/main.php:146
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wprestcache/includes/main.php:146
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 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
1 plugin tags: toggle
wprestcache/WPRestCache.php 92% from 13 tests
The entry point to "WPRestCache" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wprestcache.php" instead of "WPRestCache.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected262 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 100 | 87 | 235 |
Markdown | 1 | 10 | 0 | 27 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 12 | 100.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin