Cookies and Content Security Policy 2.11

Does "Cookies and Content Security Policy" work with WordPress 6.1.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: 6.71 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.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=b8fd00bd2c
Aspect after-activation
HTTP status 200
Load time 0.310 s
Memory usage 3.44 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.167 s
Memory usage 3.74 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.149 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.166 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.187 s
Memory usage 3.51 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.174 s
Memory usage 3.49 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.166 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.146 s
Memory usage 3.42 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.193 s
Memory usage 3.42 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.324 s0.261 s-0.063 s3.54 MiB3.55 MiB+ 11.45 KiB
/wp-admin/edit.php0.170 s0.216 s+0.046 s3.57 MiB3.58 MiB+ 12.34 KiB
/wp-admin/post-new.php0.753 s1.069 s+0.316 s5.46 MiB5.48 MiB+ 19.59 KiB
/wp-admin/upload.php0.496 s0.396 s-0.100 s3.41 MiB3.42 MiB+ 10.65 KiB
/wp-admin/options-writing.php0.162 s0.153 s-0.009 s3.4 MiB3.4 MiB- 3.76 KiB
/wp-admin/media-new.php0.237 s0.200 s-0.037 s3.39 MiB3.4 MiB+ 12.38 KiB
/wp-admin/edit-tags.php?taxonomy=category0.191 s0.196 s+0.005 s3.48 MiB3.49 MiB+ 12.35 KiB
/wp-admin/post-new.php?post_type=page0.841 s0.630 s-0.211 s5.46 MiB5.47 MiB+ 15.14 KiB
/wp-admin/options-discussion.php0.187 s0.227 s+0.040 s3.39 MiB3.4 MiB+ 14.26 KiB
/wp-admin/edit-comments.php0.204 s0.219 s+0.015 s3.48 MiB3.49 MiB+ 11 KiB
/0.257 s0.196 s-0.061 s3.47 MiB3.43 MiB- 41.57 KiB
Average 0.347 s0.342 s-0.005 s3.82 MiB3.83 MiB+ 6.71 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.4%2,9275918
PO File14.1%6332491
Sass13.7%612134
JavaScript6.2%278241
XML0.6%2701
Total 4,477 345 25

PHP Code Analysis | More results »

Lines of code 966
Total complexity 202
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 29

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