Cookies and Content Security Policy 2.16

Does "Cookies and Content Security Policy" work with WordPress 6.2.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: 9.44 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.2.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=a353b25367
Aspect after-activation
HTTP status 200
Load time 0.274 s
Memory usage 3.03 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.179 s
Memory usage 3.37 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.171 s
Memory usage 3.1 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.171 s
Memory usage 3.09 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 3.1 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 3.12 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.171 s
Memory usage 3.07 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.170 s
Memory usage 3.02 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.202 s
Memory usage 2.98 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.297 s0.258 s-0.039 s3.07 MiB3.09 MiB+ 17.39 KiB
/wp-admin/edit.php0.195 s0.280 s+0.085 s3.1 MiB3.12 MiB+ 17.91 KiB
/wp-admin/post-new.php0.772 s1.024 s+0.252 s5.02 MiB5.04 MiB+ 19.67 KiB
/wp-admin/upload.php0.560 s0.444 s-0.116 s3.02 MiB3.02 MiB- 16 bytes
/wp-admin/options-writing.php0.175 s0.155 s-0.020 s3.01 MiB3 MiB- 10.24 KiB
/wp-admin/media-new.php0.359 s0.211 s-0.148 s2.99 MiB3 MiB+ 12.12 KiB
/wp-admin/edit-tags.php?taxonomy=category0.191 s0.196 s+0.005 s3.01 MiB3.02 MiB+ 17.34 KiB
/wp-admin/post-new.php?post_type=page0.610 s0.636 s+0.026 s5.01 MiB5.03 MiB+ 15.27 KiB
/wp-admin/options-discussion.php0.210 s0.265 s+0.055 s3 MiB3 MiB+ 3.49 KiB
/wp-admin/edit-comments.php0.211 s0.204 s-0.007 s3.03 MiB3.03 MiB- 248 bytes
/0.312 s0.243 s-0.069 s2.97 MiB2.98 MiB+ 11.18 KiB
Average 0.354 s0.356 s+0.002 s3.38 MiB3.39 MiB+ 9.44 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%2,9805918
PO File14.0%6412581
Sass13.5%617134
JavaScript6.7%305241
XML0.6%2701
Total 4,570 354 25

PHP Code Analysis | More results »

Lines of code 980
Total complexity 206
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