Cookies and Content Security Policy 2.25

Does "Cookies and Content Security Policy" work with WordPress 6.6.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: 21.48 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.6.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=d41c723220
Aspect after-activation
HTTP status 200
Load time 0.322 s
Memory usage 3.5 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.213 s
Memory usage 3.77 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.191 s
Memory usage 3.49 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.170 s
Memory usage 3.48 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.198 s
Memory usage 3.49 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.212 s
Memory usage 3.52 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.366 s
Memory usage 3.47 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.47 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.205 s
Memory usage 3.41 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.346 s0.333 s-0.013 s3.47 MiB3.49 MiB+ 14.16 KiB
/wp-admin/edit.php0.220 s0.229 s+0.009 s3.54 MiB3.55 MiB+ 13.95 KiB
/wp-admin/post-new.php0.838 s0.731 s-0.107 s5.75 MiB5.77 MiB+ 22.56 KiB
/wp-admin/upload.php0.659 s0.482 s-0.177 s3.49 MiB3.49 MiB- 3.25 KiB
/wp-admin/options-writing.php0.209 s0.221 s+0.012 s3.41 MiB3.47 MiB+ 59.55 KiB
/wp-admin/media-new.php0.262 s0.280 s+0.018 s3.4 MiB3.47 MiB+ 72.94 KiB
/wp-admin/edit-tags.php?taxonomy=category0.198 s0.224 s+0.026 s3.47 MiB3.49 MiB+ 19.61 KiB
/wp-admin/post-new.php?post_type=page0.628 s0.612 s-0.016 s5.75 MiB5.77 MiB+ 18.15 KiB
/wp-admin/options-discussion.php0.237 s0.424 s+0.187 s3.41 MiB3.47 MiB+ 61.87 KiB
/wp-admin/edit-comments.php0.234 s0.250 s+0.016 s3.49 MiB3.49 MiB- 3.26 KiB
/0.328 s0.217 s-0.111 s3.45 MiB3.42 MiB- 40.04 KiB
Average 0.378 s0.364 s-0.014 s3.88 MiB3.9 MiB+ 21.48 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%3,1167317
PO File14.0%6632691
Sass13.0%615134
JavaScript6.8%321271
XML0.6%2701
Total 4,742 382 24

PHP Code Analysis | More results »

Lines of code 1,113
Total complexity 225
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