GDPR Cookie Consent 2.2.2

Does GDPR Cookie Consent work with WordPress 6.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: 109.49 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
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
Plugin Info
Last updated
Active installs 9,000+
WordPress.org page https://wordpress.org/plugins/gdpr-cookie-consent/
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=gdpr-cookie-consent%2Fgdpr-cookie-consent.php&plugin_status=all&paged=1&s&_wpnonce=360b6932bd
Aspect after-activation
HTTP status 200
Load time 0.770 s
Memory usage 3.61 MiB
JS errors None
Resource errors None

GDPR Cookie Consent

Page screenshot: GDPR Cookie Consent
URL /wp-admin/admin.php?page=gdpr-cookie-consent
Aspect menu-item
HTTP status 200
Load time 1.099 s
Memory usage 3.66 MiB
JS errors None
Resource errors None

GDPR Cookie Consent → Cookie Settings

Page screenshot: GDPR Cookie Consent → Cookie Settings
URL /wp-admin/admin.php?page=gdpr-cookie-consent-settings
Aspect menu-item
HTTP status 200
Load time 2.013 s
Memory usage 3.96 MiB
JS errors None
Resource errors None

GDPR Cookie Consent → Policy Data

Page screenshot: GDPR Cookie Consent → Policy Data
URL /wp-admin/edit.php?post_type=gdprpolicies
Aspect menu-item
HTTP status 200
Load time 0.186 s
Memory usage 3.62 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.432 s
Memory usage 4.12 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.284 s0.268 s-0.016 s3.55 MiB3.64 MiB+ 90.5 KiB
/wp-admin/edit.php0.188 s0.205 s+0.017 s3.59 MiB3.67 MiB+ 90.09 KiB
/wp-admin/post-new.php0.839 s1.164 s+0.325 s5.48 MiB5.57 MiB+ 97.66 KiB
/wp-admin/upload.php0.706 s0.456 s-0.250 s3.49 MiB3.58 MiB+ 89.71 KiB
/wp-admin/options-writing.php0.476 s0.177 s-0.299 s3.49 MiB3.56 MiB+ 70.84 KiB
/wp-admin/media-new.php0.285 s0.212 s-0.073 s3.47 MiB3.56 MiB+ 89.88 KiB
/wp-admin/edit-tags.php?taxonomy=category0.191 s0.189 s-0.002 s3.5 MiB3.61 MiB+ 106.33 KiB
/wp-admin/post-new.php?post_type=page0.627 s0.643 s+0.016 s5.47 MiB5.56 MiB+ 89.24 KiB
/wp-admin/options-discussion.php0.234 s0.220 s-0.014 s3.47 MiB3.58 MiB+ 110.2 KiB
/wp-admin/edit-comments.php0.215 s0.222 s+0.007 s3.5 MiB3.61 MiB+ 109.74 KiB
/0.300 s0.283 s-0.017 s3.47 MiB3.73 MiB+ 260.16 KiB
Average 0.395 s0.367 s-0.028 s3.86 MiB3.97 MiB+ 109.49 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.

JavaScript
PHP
PO File
Language % Lines of code Comment lines Files
JavaScript48.3%18,7593,48116
PHP23.3%9,0341,53938
PO File17.2%6,6633,85010
CSS7.7%2,987324
Twig3.3%1,275011
XML0.3%12101
SVG0.0%702
Total 38,846 8,902 82

PHP Code Analysis | More results »

Lines of code 3,701
Total complexity 837
Median class complexity 35.0
Median method complexity 2.0
Most complex class Gdpr_Cookie_Consent_Admin
Most complex function Gdpr_Cookie_Consent_Admin::gdpr_cookie_consent_ajax_save_settings()
Classes 12
Methods 111
Functions 5

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.

Database Tables 2

Options wp_options 5

Custom Post Types 1

ID Name
gdprpoliciesPolicy Data

Meta Boxes

{
    "gdprpolicies": {
        "_gdpr_policies_domain": {
            "title": "Domain",
            "context": "normal"
        },
        "_gdpr_policies_links": {
            "title": "Links",
            "context": "normal"
        }
    }
}

PHP Error Log

The log file is empty.

See also: All tests for this plugin, How to Hide WP Cookie Consent Admin Menus and Meta Boxes