Cookies and Content Security Policy 2.09

Does "Cookies and Content Security Policy" work with WordPress 6.1 and PHP 7.4.8? 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.46 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.1
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
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=d4afe24191
Aspect after-activation
HTTP status 200
Load time 0.466 s
Memory usage 3.52 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.162 s
Memory usage 3.82 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.180 s
Memory usage 3.58 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.169 s
Memory usage 3.56 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.172 s
Memory usage 3.59 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.173 s
Memory usage 3.58 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.178 s
Memory usage 3.56 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.182 s
Memory usage 3.5 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.43 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.277 s0.276 s-0.001 s3.55 MiB3.56 MiB+ 10.25 KiB
/wp-admin/edit.php0.196 s0.203 s+0.007 s3.59 MiB3.6 MiB+ 11.14 KiB
/wp-admin/post-new.php1.953 s1.002 s-0.951 s5.48 MiB5.5 MiB+ 22.39 KiB
/wp-admin/upload.php0.589 s0.296 s-0.293 s3.49 MiB3.5 MiB+ 9.45 KiB
/wp-admin/options-writing.php0.170 s0.156 s-0.014 s3.49 MiB3.48 MiB- 6.3 KiB
/wp-admin/media-new.php0.261 s0.227 s-0.034 s3.47 MiB3.48 MiB+ 11.19 KiB
/wp-admin/edit-tags.php?taxonomy=category0.196 s0.205 s+0.009 s3.5 MiB3.53 MiB+ 26.7 KiB
/wp-admin/post-new.php?post_type=page0.595 s0.601 s+0.006 s5.47 MiB5.49 MiB+ 13.95 KiB
/wp-admin/options-discussion.php0.205 s0.246 s+0.041 s3.47 MiB3.48 MiB+ 13.06 KiB
/wp-admin/edit-comments.php0.206 s0.208 s+0.002 s3.5 MiB3.51 MiB+ 13.07 KiB
/0.312 s0.191 s-0.121 s3.47 MiB3.43 MiB- 42.8 KiB
Average 0.451 s0.328 s-0.123 s3.86 MiB3.87 MiB+ 7.46 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
PHP64.3%2,7575816
PO File14.3%6122381
Sass14.3%611134
JavaScript6.5%278241
XML0.6%2701
Total 4,285 333 23

PHP Code Analysis | More results »

Lines of code 815
Total complexity 169
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 25

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

User Metadata wp_usermeta 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