Cookies and Content Security Policy 2.23

Does "Cookies and Content Security Policy" work with WordPress 6.4.3 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: 3.58 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.4.3
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=bb88820653
Aspect after-activation
HTTP status 200
Load time 0.280 s
Memory usage 3.33 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.177 s
Memory usage 3.67 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.175 s
Memory usage 3.4 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.172 s
Memory usage 3.39 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.191 s
Memory usage 3.4 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.200 s
Memory usage 3.42 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.412 s
Memory usage 3.37 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.32 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.304 s
Memory usage 3.32 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.366 s0.439 s+0.073 s3.38 MiB3.4 MiB+ 13.78 KiB
/wp-admin/edit.php0.213 s0.212 s-0.001 s3.41 MiB3.42 MiB+ 14.67 KiB
/wp-admin/post-new.php0.986 s0.912 s-0.074 s5.46 MiB5.48 MiB+ 22.19 KiB
/wp-admin/upload.php0.694 s0.413 s-0.281 s3.33 MiB3.32 MiB- 3.26 KiB
/wp-admin/options-writing.php0.222 s0.213 s-0.009 s3.32 MiB3.31 MiB- 10.05 KiB
/wp-admin/media-new.php0.303 s0.262 s-0.041 s3.3 MiB3.31 MiB+ 8.88 KiB
/wp-admin/edit-tags.php?taxonomy=category0.212 s0.347 s+0.135 s3.31 MiB3.33 MiB+ 14.1 KiB
/wp-admin/post-new.php?post_type=page0.594 s0.634 s+0.040 s5.45 MiB5.47 MiB+ 21.77 KiB
/wp-admin/options-discussion.php0.232 s0.286 s+0.054 s3.3 MiB3.3 MiB+ 256 bytes
/wp-admin/edit-comments.php0.466 s0.233 s-0.233 s3.34 MiB3.33 MiB- 3.48 KiB
/0.288 s0.189 s-0.099 s3.36 MiB3.32 MiB- 39.5 KiB
Average 0.416 s0.376 s-0.040 s3.72 MiB3.73 MiB+ 3.58 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.2%3,0506817
PO File14.2%6642691
Sass13.1%615134
JavaScript6.9%325281
XML0.6%2701
Total 4,681 378 24

PHP Code Analysis | More results »

Lines of code 1,082
Total complexity 220
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 32

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