WP REST Cache 2023.1.0

Does WP REST Cache work with WordPress 6.1.1 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
23PHP warnings
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 82.75 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

Page speed impact: insignificant.
The plugin didn't make the site noticeably slower.

Environment
WordPress version6.1.1
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 10,000+
WordPress.org page https://wordpress.org/plugins/wp-rest-cache/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 5

Plugins ‹ Test site — WordPress

Page screenshot: Plugins ‹ Test site — WordPress
URL /wp-admin/plugins.php?plugin_status=all&paged=1&s
Requested URL /wp-admin/plugins.php?action=activate&plugin=wp-rest-cache%2Fwp-rest-cache.php&plugin_status=all&paged=1&s&_wpnonce=c46e05092e
Aspect after-activation
HTTP status 200
Load time 0.542 s
Memory usage 3.41 MiB
JS errors None
Resource errors None

Settings → WP REST Cache

Page screenshot: Settings → WP REST Cache
URL /wp-admin/options-general.php?page=wp-rest-cache
Aspect menu-item
HTTP status 200
Load time 0.157 s
Memory usage 3.12 MiB
JS errors None
Resource errors None

Settings → WP REST Cache → Endpoint API Caches

Page screenshot: Settings → WP REST Cache → Endpoint API Caches
URL /wp-admin/options-general.php?page=wp-rest-cache&sub=endpoint-api
Aspect menu-item-tab
HTTP status 200
Load time 0.152 s
Memory usage 3.07 MiB
JS errors None
Resource errors None

Settings → WP REST Cache → Clear Caches

Page screenshot: Settings → WP REST Cache → Clear Caches
URL /wp-admin/options-general.php?page=wp-rest-cache&sub=clear-cache
Aspect menu-item-tab
HTTP status 200
Load time 0.163 s
Memory usage 3.09 MiB
JS errors None
Resource errors None

Test site – Just another WordPress site

Page screenshot: Test site – Just another WordPress site
URL /
Aspect front-page
HTTP status 200
Load time 0.213 s
Memory usage 3.02 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.680 s0.260 s-0.420 s3.05 MiB3.13 MiB+ 89.86 KiB
/wp-admin/edit.php0.222 s0.188 s-0.034 s3.07 MiB3.16 MiB+ 88.84 KiB
/wp-admin/post-new.php0.806 s0.964 s+0.158 s4.97 MiB5.06 MiB+ 93.62 KiB
/wp-admin/upload.php0.567 s0.258 s-0.309 s2.99 MiB3.06 MiB+ 67.88 KiB
/wp-admin/options-writing.php0.174 s0.345 s+0.171 s2.99 MiB3.05 MiB+ 59.87 KiB
/wp-admin/media-new.php0.278 s0.236 s-0.042 s2.97 MiB3.05 MiB+ 85.39 KiB
/wp-admin/edit-tags.php?taxonomy=category0.181 s0.202 s+0.021 s2.98 MiB3.09 MiB+ 110.56 KiB
/wp-admin/post-new.php?post_type=page0.596 s0.647 s+0.051 s4.96 MiB5.05 MiB+ 91.95 KiB
/wp-admin/options-discussion.php0.213 s0.201 s-0.012 s2.98 MiB3.05 MiB+ 73.71 KiB
/wp-admin/edit-comments.php0.208 s0.206 s-0.002 s3 MiB3.07 MiB+ 72.45 KiB
/0.287 s0.192 s-0.095 s2.94 MiB3.02 MiB+ 76.11 KiB
Average 0.383 s0.336 s-0.047 s3.35 MiB3.44 MiB+ 82.75 KiB

Code Statistics

Note: Third-party libraries and minified JS/CSS files are excluded from these statistics where possible, so the numbers you see here may be lower than those reported by other tools.

PHP
Language % Lines of code Comment lines Files
PHP99.8%2,1501,71226
CSS0.2%401
Total 2,154 1,712 27

PHP Code Analysis | More results »

Lines of code 1,778
Total complexity 395
Median class complexity 7.5
Median method complexity 2.0
Most complex class WP_Rest_Cache_Plugin\Includes\Caching\Caching
Most complex function WP_Rest_Cache_Plugin\Includes\API\Endpoint_Api::skip_caching()
Classes 16
Methods 123
Functions 0

Additions

Things that the plugin adds to the site. This section is not intended to be comprehensive. The test tool only looks for a few specific types of added content.

Database Tables 2

Options wp_options 8

PHP Error Log 23 lines

[06-Feb-2023 23:30:16 UTC] PHP Warning:  copy(/wp-content/mu-plugins/wp-rest-cache.php): Failed to open stream: Permission denied in /wp-admin/includes/class-wp-filesystem-direct.php on line 309
[06-Feb-2023 23:30:16 UTC] PHP Warning:  copy(/wp-content/mu-plugins/wp-rest-cache.php): Failed to open stream: Permission denied in /wp-admin/includes/class-wp-filesystem-direct.php on line 309
[06-Feb-2023 23:30:17 UTC] PHP Warning:  copy(/wp-content/mu-plugins/wp-rest-cache.php): Failed to open stream: Permission denied in /wp-admin/includes/class-wp-filesystem-direct.php on line 309
[06-Feb-2023 23:30:18 UTC] PHP Warning:  copy(/wp-content/mu-plugins/wp-rest-cache.php): Failed to open stream: Permission denied in /wp-admin/includes/class-wp-filesystem-direct.php on line 309
[06-Feb-2023 23:30:18 UTC] PHP Warning:  copy(/wp-content/mu-plugins/wp-rest-cache.php): Failed to open stream: Permission denied in /wp-admin/includes/class-wp-filesystem-direct.php on line 309
[06-Feb-2023 23:30:19 UTC] PHP Warning:  copy(/wp-content/mu-plugins/wp-rest-cache.php): Failed to open stream: Permission denied in /wp-admin/includes/class-wp-filesystem-direct.php on line 309
[06-Feb-2023 23:30:21 UTC] PHP Warning:  copy(/wp-content/mu-plugins/wp-rest-cache.php): Failed to open stream: Permission denied in /wp-admin/includes/class-wp-filesystem-direct.php on line 309
[06-Feb-2023 23:30:21 UTC] PHP Warning:  copy(/wp-content/mu-plugins/wp-rest-cache.php): Failed to open stream: Permission denied in /wp-admin/includes/class-wp-filesystem-direct.php on line 309
[06-Feb-2023 23:30:22 UTC] PHP Warning:  copy(/wp-content/mu-plugins/wp-rest-cache.php): Failed to open stream: Permission denied in /wp-admin/includes/class-wp-filesystem-direct.php on line 309
[06-Feb-2023 23:30:22 UTC] PHP Warning:  copy(/wp-content/mu-plugins/wp-rest-cache.php): Failed to open stream: Permission denied in /wp-admin/includes/class-wp-filesystem-direct.php on line 309
[06-Feb-2023 23:30:24 UTC] PHP Warning:  copy(/wp-content/mu-plugins/wp-rest-cache.php): Failed to open stream: Permission denied in /wp-admin/includes/class-wp-filesystem-direct.php on line 309
[06-Feb-2023 23:30:24 UTC] PHP Warning:  copy(/wp-content/mu-plugins/wp-rest-cache.php): Failed to open stream: Permission denied in /wp-admin/includes/class-wp-filesystem-direct.php on line 309
[06-Feb-2023 23:30:24 UTC] PHP Warning:  copy(/wp-content/mu-plugins/wp-rest-cache.php): Failed to open stream: Permission denied in /wp-admin/includes/class-wp-filesystem-direct.php on line 309
[06-Feb-2023 23:30:24 UTC] PHP Warning:  copy(/wp-content/mu-plugins/wp-rest-cache.php): Failed to open stream: Permission denied in /wp-admin/includes/class-wp-filesystem-direct.php on line 309
[06-Feb-2023 23:30:25 UTC] PHP Warning:  copy(/wp-content/mu-plugins/wp-rest-cache.php): Failed to open stream: Permission denied in /wp-admin/includes/class-wp-filesystem-direct.php on line 309
[06-Feb-2023 23:30:25 UTC] PHP Warning:  copy(/wp-content/mu-plugins/wp-rest-cache.php): Failed to open stream: Permission denied in /wp-admin/includes/class-wp-filesystem-direct.php on line 309
[06-Feb-2023 23:30:25 UTC] PHP Warning:  copy(/wp-content/mu-plugins/wp-rest-cache.php): Failed to open stream: Permission denied in /wp-admin/includes/class-wp-filesystem-direct.php on line 309
[06-Feb-2023 23:30:27 UTC] PHP Warning:  copy(/wp-content/mu-plugins/wp-rest-cache.php): Failed to open stream: Permission denied in /wp-admin/includes/class-wp-filesystem-direct.php on line 309
[06-Feb-2023 23:30:27 UTC] PHP Warning:  copy(/wp-content/mu-plugins/wp-rest-cache.php): Failed to open stream: Permission denied in /wp-admin/includes/class-wp-filesystem-direct.php on line 309
[06-Feb-2023 23:30:27 UTC] PHP Warning:  copy(/wp-content/mu-plugins/wp-rest-cache.php): Failed to open stream: Permission denied in /wp-admin/includes/class-wp-filesystem-direct.php on line 309
[06-Feb-2023 23:30:28 UTC] PHP Warning:  copy(/wp-content/mu-plugins/wp-rest-cache.php): Failed to open stream: Permission denied in /wp-admin/includes/class-wp-filesystem-direct.php on line 309
[06-Feb-2023 23:30:28 UTC] PHP Warning:  copy(/wp-content/mu-plugins/wp-rest-cache.php): Failed to open stream: Permission denied in /wp-admin/includes/class-wp-filesystem-direct.php on line 309
[06-Feb-2023 23:30:28 UTC] PHP Warning:  copy(/wp-content/mu-plugins/wp-rest-cache.php): Failed to open stream: Permission denied in /wp-admin/includes/class-wp-filesystem-direct.php on line 309
See also: All tests for this plugin, How to Hide the "WP REST Cache" Admin Menu