GDPR Cookie Consent 2.3.0

Does GDPR Cookie Consent work with WordPress 6.3.1 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
1PHP warnings
12PHP deprecation warnings
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 99.16 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

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

Environment
WordPress version6.3.1
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
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 6

Wizard ‹ Test site — WordPress

Page screenshot: Wizard ‹ Test site — WordPress
URL /wp-admin/admin.php?page=gdpr-cookie-consent-wizard
Requested URL /wp-admin/plugins.php?action=activate&plugin=gdpr-cookie-consent%2Fgdpr-cookie-consent.php&plugin_status=all&paged=1&s&_wpnonce=da9ca80e72
Aspect after-activation
HTTP status 200
Load time 1.447 s
Memory usage 3.75 MiB
JS errors None
Resource errors None

WP Cookie Consent

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

WP Cookie Consent → Wizard

Page screenshot: WP Cookie Consent → Wizard
URL /wp-admin/admin.php?page=gdpr-cookie-consent-wizard
Aspect menu-item
HTTP status 200
Load time 0.644 s
Memory usage 2.98 MiB
JS errors None
Resource errors None

WP Cookie Consent → Cookie Settings

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

WP Cookie Consent → Policy Data

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

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.353 s0.487 s+0.134 s2.82 MiB2.92 MiB+ 96.93 KiB
/wp-admin/edit.php0.207 s0.319 s+0.112 s2.85 MiB2.95 MiB+ 102.23 KiB
/wp-admin/post-new.php0.754 s0.902 s+0.148 s5.21 MiB5.33 MiB+ 114.84 KiB
/wp-admin/upload.php0.605 s0.547 s-0.058 s2.77 MiB2.83 MiB+ 66.8 KiB
/wp-admin/options-writing.php0.225 s0.380 s+0.155 s2.76 MiB2.84 MiB+ 80.77 KiB
/wp-admin/media-new.php0.362 s0.301 s-0.061 s2.74 MiB2.83 MiB+ 96.19 KiB
/wp-admin/edit-tags.php?taxonomy=category0.192 s0.283 s+0.091 s2.76 MiB2.86 MiB+ 105.91 KiB
/wp-admin/post-new.php?post_type=page0.600 s0.595 s-0.005 s5.21 MiB5.32 MiB+ 110.42 KiB
/wp-admin/options-discussion.php0.406 s0.321 s-0.085 s2.75 MiB2.84 MiB+ 91.7 KiB
/wp-admin/edit-comments.php0.251 s0.306 s+0.055 s2.78 MiB2.86 MiB+ 86.29 KiB
/0.267 s0.240 s-0.027 s3.13 MiB3.27 MiB+ 138.75 KiB
Average 0.384 s0.426 s+0.042 s3.25 MiB3.35 MiB+ 99.16 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
CSS
Language % Lines of code Comment lines Files
JavaScript42.7%18,1533,04516
PHP29.5%12,5211,61539
PO File15.7%6,6633,85010
CSS8.8%3,760555
Twig3.0%1,275011
XML0.3%12101
SVG0.0%702
Total 42,500 8,565 84

PHP Code Analysis | More results »

Lines of code 6,995
Total complexity 951
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 113
Functions 8

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 13 lines

[13-Sep-2023 13:34:25 UTC] PHP Warning:  Undefined variable $get_banner_img in /wp-content/plugins/gdpr-cookie-consent/admin/gdpr-cookie-consent-admin-settings.php on line 562
[13-Sep-2023 13:34:28 UTC] PHP Deprecated:  Return type of Timber\QueryIterator::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/gdpr-cookie-consent/vendor/timber/timber/lib/QueryIterator.php on line 137
[13-Sep-2023 13:34:28 UTC] PHP Deprecated:  Return type of Timber\QueryIterator::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/gdpr-cookie-consent/vendor/timber/timber/lib/QueryIterator.php on line 150
[13-Sep-2023 13:34:28 UTC] PHP Deprecated:  Return type of Timber\QueryIterator::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/gdpr-cookie-consent/vendor/timber/timber/lib/QueryIterator.php on line 156
[13-Sep-2023 13:34:28 UTC] PHP Deprecated:  Return type of Timber\QueryIterator::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/gdpr-cookie-consent/vendor/timber/timber/lib/QueryIterator.php on line 133
[13-Sep-2023 13:34:28 UTC] PHP Deprecated:  Return type of Timber\QueryIterator::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/gdpr-cookie-consent/vendor/timber/timber/lib/QueryIterator.php on line 152
[13-Sep-2023 13:34:28 UTC] PHP Deprecated:  Return type of Timber\QueryIterator::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/gdpr-cookie-consent/vendor/timber/timber/lib/QueryIterator.php on line 202
[13-Sep-2023 13:34:37 UTC] PHP Deprecated:  Return type of Timber\QueryIterator::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/gdpr-cookie-consent/vendor/timber/timber/lib/QueryIterator.php on line 137
[13-Sep-2023 13:34:37 UTC] PHP Deprecated:  Return type of Timber\QueryIterator::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/gdpr-cookie-consent/vendor/timber/timber/lib/QueryIterator.php on line 150
[13-Sep-2023 13:34:37 UTC] PHP Deprecated:  Return type of Timber\QueryIterator::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/gdpr-cookie-consent/vendor/timber/timber/lib/QueryIterator.php on line 156
[13-Sep-2023 13:34:37 UTC] PHP Deprecated:  Return type of Timber\QueryIterator::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/gdpr-cookie-consent/vendor/timber/timber/lib/QueryIterator.php on line 133
[13-Sep-2023 13:34:37 UTC] PHP Deprecated:  Return type of Timber\QueryIterator::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/gdpr-cookie-consent/vendor/timber/timber/lib/QueryIterator.php on line 152
[13-Sep-2023 13:34:37 UTC] PHP Deprecated:  Return type of Timber\QueryIterator::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/gdpr-cookie-consent/vendor/timber/timber/lib/QueryIterator.php on line 202
See also: All tests for this plugin, How to Hide WP Cookie Consent Admin Menus and Meta Boxes