Cookie Notice & Compliance for GDPR / CCPA 2.2.2

Does "Cookie Notice & Compliance for GDPR / CCPA" work with WordPress 5.9.1 and PHP 7.4.8? A smoke test was performed on .

Summary

Errors
4PHP notices
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 92.64 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.1
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
Plugin Info
Last updated
Active installs 1,000,000+
WordPress.org page https://wordpress.org/plugins/cookie-notice/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 5

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=cookie-notice%2Fcookie-notice.php&plugin_status=all&paged=1&s&_wpnonce=5676e5774a
Aspect after-activation
HTTP status 200
Load time 0.341 s
Memory usage 3.37 MiB
JS errors None
Resource errors None

Cookies

Page screenshot: Cookies
URL /wp-admin/admin.php?page=cookie-notice
Aspect menu-item
HTTP status 200
Load time 0.704 s
Memory usage 3.38 MiB
JS errors None
Resource errors None

Cookies → Body

Page screenshot: Cookies → Body
URL /wp-admin/admin.php?page=cookie-notice
Aspect menu-item-tab
HTTP status 200
Load time 0.326 s
Memory usage 3.38 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.283 s
Memory usage 3.41 MiB
JS errors None
Resource errors None

Dashboard ‹ Test site — WordPress

Page screenshot: Dashboard ‹ Test site — WordPress
URL /wp-admin/index.php
Aspect new-meta-boxes
HTTP status 200
Load time 0.303 s
Memory usage 3.47 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.334 s0.410 s+0.076 s3.37 MiB3.47 MiB+ 103.42 KiB
/wp-admin/edit.php0.174 s0.218 s+0.044 s3.4 MiB3.49 MiB+ 93.21 KiB
/wp-admin/post-new.php0.828 s0.957 s+0.129 s6.14 MiB6.23 MiB+ 92.38 KiB
/wp-admin/upload.php0.355 s0.345 s-0.010 s3.25 MiB3.35 MiB+ 99.69 KiB
/wp-admin/options-writing.php0.282 s0.162 s-0.120 s3.24 MiB3.32 MiB+ 82.82 KiB
/wp-admin/media-new.php0.303 s0.173 s-0.130 s3.23 MiB3.32 MiB+ 99.86 KiB
/wp-admin/edit-tags.php?taxonomy=category0.191 s0.196 s+0.005 s3.27 MiB3.36 MiB+ 92.77 KiB
/wp-admin/post-new.php?post_type=page0.665 s0.801 s+0.136 s6.14 MiB6.22 MiB+ 87.97 KiB
/wp-admin/options-discussion.php0.238 s0.339 s+0.101 s3.22 MiB3.32 MiB+ 99.77 KiB
/wp-admin/edit-comments.php0.210 s0.214 s+0.004 s3.27 MiB3.42 MiB+ 155.71 KiB
/0.273 s0.255 s-0.018 s3.4 MiB3.41 MiB+ 11.44 KiB
Average 0.350 s0.370 s+0.020 s3.81 MiB3.9 MiB+ 92.64 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
CSS
JavaScript
Language % Lines of code Comment lines Files
PHP39.5%3,85797910
CSS32.8%3,2051108
JavaScript22.7%2,2155278
Sass5.0%485261
SVG0.1%505
HTML0.0%011
Total 9,767 1,643 33

PHP Code Analysis | More results »

Lines of code 3,857
Total complexity 635
Median class complexity 54.0
Median method complexity 2.0
Most complex class Cookie_Notice_Welcome_API
Most complex function Cookie_Notice_Welcome_API::api_request()
Classes 8
Methods 120
Functions 3

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 2

Meta Boxes

{
    "dashboard": {
        "cn_dashboard_stats": {
            "title": "Cookie Compliance",
            "context": "normal"
        }
    }
}

PHP Error Log 4 lines

[23-Feb-2022 18:42:52 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/cookie-notice/includes/dashboard.php on line 126
[23-Feb-2022 18:42:56 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/cookie-notice/includes/dashboard.php on line 126
[23-Feb-2022 18:43:03 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/cookie-notice/includes/dashboard.php on line 126
[23-Feb-2022 18:43:04 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/cookie-notice/includes/dashboard.php on line 126
See also: All tests for this plugin, How to Hide Cookie Notice & Compliance for GDPR / CCPA Admin Menus and Widgets