Cookies and Content Security Policy 2.24

Does "Cookies and Content Security Policy" work with WordPress 6.5.2 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: 7.51 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.5.2
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=37f9938db1
Aspect after-activation
HTTP status 200
Load time 0.319 s
Memory usage 3.39 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.175 s
Memory usage 3.73 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.192 s
Memory usage 3.45 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.176 s
Memory usage 3.44 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.181 s
Memory usage 3.46 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.203 s
Memory usage 3.48 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.419 s
Memory usage 3.43 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.382 s
Memory usage 3.38 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.218 s
Memory usage 3.38 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.390 s0.380 s-0.010 s3.44 MiB3.45 MiB+ 13.84 KiB
/wp-admin/edit.php0.287 s0.217 s-0.070 s3.46 MiB3.48 MiB+ 14.73 KiB
/wp-admin/post-new.php0.938 s0.644 s-0.294 s5.59 MiB5.61 MiB+ 22.25 KiB
/wp-admin/upload.php0.612 s0.426 s-0.186 s3.38 MiB3.38 MiB- 3.25 KiB
/wp-admin/options-writing.php0.256 s0.207 s-0.049 s3.37 MiB3.36 MiB- 10.66 KiB
/wp-admin/media-new.php0.317 s0.469 s+0.152 s3.35 MiB3.36 MiB+ 8.88 KiB
/wp-admin/edit-tags.php?taxonomy=category0.194 s0.206 s+0.012 s3.37 MiB3.38 MiB+ 14.11 KiB
/wp-admin/post-new.php?post_type=page0.625 s0.612 s-0.013 s5.59 MiB5.6 MiB+ 13.41 KiB
/wp-admin/options-discussion.php0.372 s0.292 s-0.080 s3.36 MiB3.36 MiB+ 320 bytes
/wp-admin/edit-comments.php0.272 s0.273 s+0.001 s3.39 MiB3.39 MiB- 3.42 KiB
/0.311 s0.213 s-0.098 s3.37 MiB3.38 MiB+ 12.41 KiB
Average 0.416 s0.358 s-0.058 s3.79 MiB3.8 MiB+ 7.51 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.1%3,0987317
PO File14.0%6642691
Sass12.9%615134
JavaScript7.5%355281
XML0.6%2701
Total 4,759 383 24

PHP Code Analysis | More results »

Lines of code 1,095
Total complexity 224
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 33

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 2

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