Cookies and Content Security Policy 2.12

Does "Cookies and Content Security Policy" work with WordPress 6.1.1 and PHP 8.1.12? 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: 5.2 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/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=a07ade4ea0
Aspect after-activation
HTTP status 200
Load time 0.230 s
Memory usage 3 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.132 s
Memory usage 3.33 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.150 s
Memory usage 3.07 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.137 s
Memory usage 3.06 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.142 s
Memory usage 3.07 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.145 s
Memory usage 3.09 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.138 s
Memory usage 3.04 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.128 s
Memory usage 2.99 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.154 s
Memory usage 2.96 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.236 s0.231 s-0.005 s3.05 MiB3.06 MiB+ 11.13 KiB
/wp-admin/edit.php0.140 s0.268 s+0.128 s3.08 MiB3.09 MiB+ 12.02 KiB
/wp-admin/post-new.php0.642 s0.796 s+0.154 s4.97 MiB4.99 MiB+ 19.27 KiB
/wp-admin/upload.php0.458 s0.249 s-0.209 s2.99 MiB2.99 MiB- 5.91 KiB
/wp-admin/options-writing.php0.141 s0.122 s-0.019 s2.99 MiB2.97 MiB- 16.14 KiB
/wp-admin/media-new.php0.214 s0.161 s-0.053 s2.97 MiB2.97 MiB+ 6.22 KiB
/wp-admin/edit-tags.php?taxonomy=category0.140 s0.154 s+0.014 s2.98 MiB2.99 MiB+ 12.07 KiB
/wp-admin/post-new.php?post_type=page0.734 s0.527 s-0.207 s4.96 MiB4.98 MiB+ 14.86 KiB
/wp-admin/options-discussion.php0.154 s0.246 s+0.092 s2.98 MiB2.97 MiB- 2.3 KiB
/wp-admin/edit-comments.php0.193 s0.192 s-0.001 s3 MiB3 MiB- 5.55 KiB
/0.246 s0.172 s-0.074 s2.94 MiB2.96 MiB+ 11.49 KiB
Average 0.300 s0.283 s-0.016 s3.35 MiB3.36 MiB+ 5.2 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
PO File
Sass
Language % Lines of code Comment lines Files
PHP65.7%2,9685918
PO File14.0%6332491
Sass13.5%612134
JavaScript6.2%280241
XML0.6%2701
Total 4,520 345 25

PHP Code Analysis | More results »

Lines of code 981
Total complexity 205
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 29

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