Cookies and Content Security Policy 1.82

Does "Cookies and Content Security Policy" work with WordPress 5.7.1 and PHP 7.4.8? A smoke test was performed on .

Summary

Errors
No PHP errors, warnings or notices
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Looks good! No problems were detected.
Performance

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

Page speed impact: 0.031 seconds
The average page load time increased by this amount after activating the plugin.

Environment
WordPress version5.7.1
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
Plugin Info
Last updated
Active installs 10,000+
WordPress.org page https://wordpress.org/plugins/cookies-and-content-security-policy/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 9

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=cookies-and-content-security-policy%2Fcookies-and-content-security-policy.php&plugin_status=all&paged=1&s&_wpnonce=380434446b
Aspect after-activation
HTTP status 200
Load time 0.292 s
Memory usage 2.72 MiB
JS errors None
Resource errors None

Settings → Cookies and Content Security Policy

Page screenshot: Settings → Cookies and Content Security Policy
URL /wp-admin/options-general.php?page=cacsp_settings
Aspect menu-item
HTTP status 200
Load time 0.173 s
Memory usage 2.98 MiB
JS errors None
Resource errors None

Settings → Cookies and Content Security Policy → Quickstart

Page screenshot: Settings → Cookies and Content Security Policy → Quickstart
URL /wp-admin/options-general.php?page=cacsp_settings&tab=quickstart
Aspect menu-item-tab
HTTP status 200
Load time 0.177 s
Memory usage 2.79 MiB
JS errors None
Resource errors None

Settings → Cookies and Content Security Policy → Domains

Page screenshot: Settings → Cookies and Content Security Policy → Domains
URL /wp-admin/options-general.php?page=cacsp_settings&tab=domains
Aspect menu-item-tab
HTTP status 200
Load time 0.178 s
Memory usage 2.79 MiB
JS errors None
Resource errors None

Settings → Cookies and Content Security Policy → Texts

Page screenshot: Settings → Cookies and Content Security Policy → Texts
URL /wp-admin/options-general.php?page=cacsp_settings&tab=texts
Aspect menu-item-tab
HTTP status 200
Load time 0.167 s
Memory usage 2.79 MiB
JS errors None
Resource errors None

Settings → Cookies and Content Security Policy → Settings

Page screenshot: Settings → Cookies and Content Security Policy → Settings
URL /wp-admin/options-general.php?page=cacsp_settings&tab=settings
Aspect menu-item-tab
HTTP status 200
Load time 0.186 s
Memory usage 2.79 MiB
JS errors None
Resource errors None

Settings → Cookies and Content Security Policy → Colors

Page screenshot: Settings → Cookies and Content Security Policy → Colors
URL /wp-admin/options-general.php?page=cacsp_settings&tab=colors
Aspect menu-item-tab
HTTP status 200
Load time 0.336 s
Memory usage 2.78 MiB
JS errors None
Resource errors None

Settings → Cookies and Content Security Policy → Support

Page screenshot: Settings → Cookies and Content Security Policy → Support
URL /wp-admin/options-general.php?page=cacsp_settings&tab=support
Aspect menu-item-tab
HTTP status 200
Load time 0.175 s
Memory usage 2.73 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.209 s
Memory usage 2.66 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.258 s0.373 s+0.115 s2.82 MiB2.83 MiB+ 12.34 KiB
/wp-admin/edit.php0.172 s0.201 s+0.029 s2.86 MiB2.87 MiB+ 11.97 KiB
/wp-admin/post-new.php0.880 s1.099 s+0.219 s5.02 MiB5.06 MiB+ 38.84 KiB
/wp-admin/upload.php0.489 s0.448 s-0.041 s2.7 MiB2.71 MiB+ 10.84 KiB
/wp-admin/options-writing.php0.143 s0.153 s+0.010 s2.71 MiB2.69 MiB- 17.7 KiB
/wp-admin/media-new.php0.227 s0.203 s-0.024 s2.67 MiB2.69 MiB+ 13.25 KiB
/wp-admin/edit-tags.php?taxonomy=category0.176 s0.372 s+0.196 s2.77 MiB2.78 MiB+ 14.16 KiB
/wp-admin/post-new.php?post_type=page1.165 s1.051 s-0.114 s5.01 MiB5.04 MiB+ 34.43 KiB
/wp-admin/options-discussion.php0.283 s0.283 s+0.000 s2.68 MiB2.69 MiB+ 14.81 KiB
/wp-admin/edit-comments.php0.232 s0.241 s+0.009 s2.78 MiB2.79 MiB+ 11.81 KiB
/0.281 s0.228 s-0.053 s2.71 MiB2.66 MiB- 43.77 KiB
Average 0.391 s0.423 s+0.031 s3.16 MiB3.17 MiB+ 9.18 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
Sass
PO File
Language % Lines of code Comment lines Files
PHP62.5%2,2734813
Sass16.0%583144
PO File14.1%5112061
JavaScript6.7%242191
XML0.7%2601
Total 3,635 287 20

PHP Code Analysis | More results »

Lines of code 728
Total complexity 148
Median class complexity 0.0
Median method complexity 0.0
Most complex class
Most complex function set_content_security_policy()
Classes 0
Methods 0
Functions 20

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.

Options wp_options 1

PHP Error Log

The log file is empty.

See also: All tests for this plugin, How to Hide the "Cookies and Content Security Policy" Admin Menu