Cookies and Content Security Policy 2.07

Does "Cookies and Content Security Policy" work with WordPress 6.0 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: 10.01 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.0
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=2d90261435
Aspect after-activation
HTTP status 200
Load time 0.484 s
Memory usage 3.7 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.172 s
Memory usage 3.94 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.178 s
Memory usage 3.7 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.173 s
Memory usage 3.69 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.192 s
Memory usage 3.72 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.205 s
Memory usage 3.7 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.182 s
Memory usage 3.68 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.168 s
Memory usage 3.63 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.224 s
Memory usage 3.56 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.408 s0.313 s-0.095 s3.72 MiB3.73 MiB+ 9.59 KiB
/wp-admin/edit.php0.207 s0.235 s+0.028 s3.75 MiB3.76 MiB+ 9.59 KiB
/wp-admin/post-new.php1.027 s1.409 s+0.382 s5.53 MiB5.55 MiB+ 21 KiB
/wp-admin/upload.php0.737 s0.550 s-0.187 s3.68 MiB3.69 MiB+ 8.09 KiB
/wp-admin/options-writing.php0.312 s0.176 s-0.136 s3.61 MiB3.61 MiB- 8.47 KiB
/wp-admin/media-new.php0.317 s0.233 s-0.084 s3.66 MiB3.67 MiB+ 9.83 KiB
/wp-admin/edit-tags.php?taxonomy=category0.210 s0.207 s-0.003 s3.69 MiB3.69 MiB+ 9.8 KiB
/wp-admin/post-new.php?post_type=page1.079 s0.966 s-0.113 s5.53 MiB5.54 MiB+ 12.59 KiB
/wp-admin/options-discussion.php0.256 s0.276 s+0.020 s3.59 MiB3.6 MiB+ 11.7 KiB
/wp-admin/edit-comments.php0.230 s0.249 s+0.019 s3.69 MiB3.7 MiB+ 8.45 KiB
/0.283 s0.221 s-0.062 s3.55 MiB3.56 MiB+ 17.92 KiB
Average 0.461 s0.440 s-0.021 s4 MiB4.01 MiB+ 10.01 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
Sass
PO File
Language % Lines of code Comment lines Files
PHP64.4%2,7355816
Sass14.4%611134
PO File14.0%5942331
JavaScript6.5%278241
XML0.6%2701
Total 4,245 328 23

PHP Code Analysis | More results »

Lines of code 814
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

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