Cookies and Content Security Policy 1.93

Does "Cookies and Content Security Policy" work with WordPress 5.8.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: 4.57 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

Page speed impact: 0.040 seconds
The average page load time increased by this amount after activating the plugin.

Environment
WordPress version5.8.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=fa09d835bb
Aspect after-activation
HTTP status 200
Load time 0.347 s
Memory usage 3.05 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.164 s
Memory usage 3.3 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.310 s
Memory usage 3.11 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.164 s
Memory usage 3.1 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.178 s
Memory usage 3.1 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.196 s
Memory usage 3.11 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.172 s
Memory usage 3.09 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.171 s
Memory usage 3.04 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.293 s
Memory usage 2.92 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.362 s0.513 s+0.151 s3.08 MiB3.09 MiB+ 7.63 KiB
/wp-admin/edit.php0.191 s0.267 s+0.076 s3.11 MiB3.12 MiB+ 8.37 KiB
/wp-admin/post-new.php1.498 s1.532 s+0.034 s5.27 MiB5.29 MiB+ 20.91 KiB
/wp-admin/upload.php0.617 s0.613 s-0.004 s3.03 MiB3.04 MiB+ 6.5 KiB
/wp-admin/options-writing.php0.200 s0.183 s-0.017 s3.02 MiB3.02 MiB- 6.4 KiB
/wp-admin/media-new.php0.270 s0.228 s-0.042 s3.01 MiB3.02 MiB+ 8.23 KiB
/wp-admin/edit-tags.php?taxonomy=category0.199 s0.205 s+0.006 s3.04 MiB3.05 MiB+ 8.2 KiB
/wp-admin/post-new.php?post_type=page0.835 s0.999 s+0.164 s5.26 MiB5.28 MiB+ 20.49 KiB
/wp-admin/options-discussion.php0.239 s0.320 s+0.081 s3 MiB3.01 MiB+ 10.11 KiB
/wp-admin/edit-comments.php0.209 s0.245 s+0.036 s3.04 MiB3.05 MiB+ 6.48 KiB
/0.287 s0.240 s-0.047 s2.96 MiB2.92 MiB- 40.24 KiB
Average 0.446 s0.486 s+0.040 s3.44 MiB3.44 MiB+ 4.57 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
PHP63.6%2,4765214
Sass15.0%583144
PO File14.4%5602231
JavaScript6.3%246201
XML0.7%2601
Total 3,891 309 21

PHP Code Analysis | More results »

Lines of code 768
Total complexity 151
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 21

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