Cookies and Content Security Policy 2.29

Does "Cookies and Content Security Policy" work with WordPress 6.8.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: 17.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.8.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=e7c3d14a48
Aspect after-activation
HTTP status 200
Load time 0.298 s
Memory usage 3.54 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.169 s
Memory usage 3.81 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.165 s
Memory usage 3.53 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.166 s
Memory usage 3.52 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.169 s
Memory usage 3.53 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.62 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.337 s
Memory usage 3.51 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.160 s
Memory usage 3.51 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.168 s
Memory usage 3.45 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.332 s0.637 s+0.305 s3.51 MiB3.53 MiB+ 20.58 KiB
/wp-admin/edit.php0.218 s0.321 s+0.103 s3.57 MiB3.59 MiB+ 20 KiB
/wp-admin/post-new.php0.823 s0.961 s+0.138 s6.06 MiB6.1 MiB+ 37.79 KiB
/wp-admin/upload.php0.758 s0.338 s-0.420 s3.52 MiB3.53 MiB+ 2.8 KiB
/wp-admin/options-writing.php0.226 s0.215 s-0.011 s3.5 MiB3.51 MiB+ 6.8 KiB
/wp-admin/media-new.php0.268 s0.242 s-0.026 s3.49 MiB3.51 MiB+ 14.99 KiB
/wp-admin/edit-tags.php?taxonomy=category0.198 s0.192 s-0.006 s3.51 MiB3.53 MiB+ 25.66 KiB
/wp-admin/post-new.php?post_type=page0.601 s0.796 s+0.195 s6.05 MiB6.08 MiB+ 33.31 KiB
/wp-admin/options-discussion.php0.446 s0.331 s-0.115 s3.5 MiB3.51 MiB+ 3.92 KiB
/wp-admin/edit-comments.php0.286 s0.222 s-0.064 s3.52 MiB3.53 MiB+ 2.8 KiB
/0.296 s0.231 s-0.065 s3.43 MiB3.45 MiB+ 20.52 KiB
Average 0.405 s0.408 s+0.003 s3.97 MiB3.99 MiB+ 17.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
PHP66.6%3,28613618
PO File13.4%6632691
Sass12.5%615134
JavaScript6.9%340261
XML0.5%2701
Total 4,931 444 25

PHP Code Analysis | More results »

Lines of code 1,887
Total complexity 251
Median class complexity 18.0
Median method complexity 2.5
Most complex class Cacsp_Consent_Table
Most complex function set_content_security_policy()
Classes 1
Methods 6
Functions 36

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