Cookies and Content Security Policy 2.06

Does "Cookies and Content Security Policy" work with WordPress 5.9.3 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.85 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 version5.9.3
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=9c5ad1d4e2
Aspect after-activation
HTTP status 200
Load time 0.485 s
Memory usage 3.28 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.173 s
Memory usage 3.58 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.181 s
Memory usage 3.34 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.177 s
Memory usage 3.33 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.187 s
Memory usage 3.36 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.193 s
Memory usage 3.34 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.176 s
Memory usage 3.32 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.157 s
Memory usage 3.27 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.250 s
Memory usage 3.36 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.360 s0.297 s-0.063 s3.37 MiB3.38 MiB+ 9.23 KiB
/wp-admin/edit.php0.184 s0.230 s+0.046 s3.4 MiB3.41 MiB+ 10.7 KiB
/wp-admin/post-new.php1.026 s1.228 s+0.202 s5.68 MiB5.7 MiB+ 17 KiB
/wp-admin/upload.php0.415 s0.506 s+0.091 s3.25 MiB3.26 MiB+ 16.09 KiB
/wp-admin/options-writing.php0.275 s0.161 s-0.114 s3.24 MiB3.25 MiB+ 3.07 KiB
/wp-admin/media-new.php0.296 s0.225 s-0.071 s3.23 MiB3.24 MiB+ 17.83 KiB
/wp-admin/edit-tags.php?taxonomy=category0.206 s0.205 s-0.001 s3.27 MiB3.28 MiB+ 9.8 KiB
/wp-admin/post-new.php?post_type=page0.826 s0.877 s+0.051 s5.68 MiB5.69 MiB+ 12.59 KiB
/wp-admin/options-discussion.php0.246 s0.266 s+0.020 s3.22 MiB3.24 MiB+ 19.7 KiB
/wp-admin/edit-comments.php0.217 s0.227 s+0.010 s3.27 MiB3.28 MiB+ 8.08 KiB
/0.346 s0.223 s-0.123 s3.4 MiB3.36 MiB- 37.75 KiB
Average 0.400 s0.404 s+0.004 s3.73 MiB3.74 MiB+ 7.85 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.2%2,7045816
Sass14.5%610134
PO File14.1%5942331
JavaScript6.6%278241
XML0.6%2701
Total 4,213 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