Cookies and Content Security Policy 2.01

Does "Cookies and Content Security Policy" work with WordPress 5.9 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: 8.65 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 version5.9
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=fc6f0527b2
Aspect after-activation
HTTP status 200
Load time 0.316 s
Memory usage 3.27 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.158 s
Memory usage 3.52 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.295 s
Memory usage 3.32 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.161 s
Memory usage 3.31 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.171 s
Memory usage 3.31 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.175 s
Memory usage 3.32 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.165 s
Memory usage 3.3 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.166 s
Memory usage 3.25 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.197 s
Memory usage 3.36 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.360 s0.396 s+0.036 s3.36 MiB3.37 MiB+ 8 KiB
/wp-admin/edit.php0.188 s0.195 s+0.007 s3.4 MiB3.4 MiB+ 8.73 KiB
/wp-admin/post-new.php0.762 s0.892 s+0.130 s6.15 MiB6.16 MiB+ 15.77 KiB
/wp-admin/upload.php0.375 s0.425 s+0.050 s3.24 MiB3.25 MiB+ 6.87 KiB
/wp-admin/options-writing.php0.274 s0.203 s-0.071 s3.24 MiB3.23 MiB- 6.16 KiB
/wp-admin/media-new.php0.365 s0.204 s-0.161 s3.22 MiB3.23 MiB+ 8.6 KiB
/wp-admin/edit-tags.php?taxonomy=category0.182 s0.179 s-0.003 s3.25 MiB3.27 MiB+ 16.57 KiB
/wp-admin/post-new.php?post_type=page0.626 s0.669 s+0.043 s6.14 MiB6.15 MiB+ 11.36 KiB
/wp-admin/options-discussion.php0.232 s0.249 s+0.017 s3.22 MiB3.23 MiB+ 10.48 KiB
/wp-admin/edit-comments.php0.197 s0.201 s+0.004 s3.26 MiB3.27 MiB+ 6.85 KiB
/0.254 s0.175 s-0.079 s3.35 MiB3.36 MiB+ 8.1 KiB
Average 0.347 s0.344 s-0.002 s3.8 MiB3.81 MiB+ 8.65 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
PHP63.6%2,4995215
Sass14.9%585144
PO File14.3%5602231
JavaScript6.6%258201
XML0.7%2601
Total 3,928 309 22

PHP Code Analysis | More results »

Lines of code 772
Total complexity 152
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 22

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