WP Cookie Consent 2.5.0

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

Summary

Errors
2PHP warnings
13PHP deprecation warnings
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

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

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

Environment
WordPress version6.4.2
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 4

‹ Test site — WordPress

Page screenshot: ‹ Test site — WordPress
URL /wp-admin/admin.php?page=gdpr-cookie-consent#create_cookie_banner
Requested URL /wp-admin/plugins.php?action=activate&plugin=gdpr-cookie-consent%2Fgdpr-cookie-consent.php&plugin_status=all&paged=1&s&_wpnonce=9b701a6d0e
Aspect after-activation
HTTP status 200
Load time 4.025 s
Memory usage 4.38 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 2.553 s
Memory usage 3.61 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.360 s
Memory usage 3.46 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.494 s
Memory usage 3.98 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.368 s0.465 s+0.097 s3.38 MiB3.49 MiB+ 109.55 KiB
/wp-admin/edit.php0.225 s0.344 s+0.119 s3.41 MiB3.52 MiB+ 115.3 KiB
/wp-admin/post-new.php0.934 s1.006 s+0.072 s5.46 MiB5.57 MiB+ 113.86 KiB
/wp-admin/upload.php0.748 s0.366 s-0.382 s3.32 MiB3.4 MiB+ 80.19 KiB
/wp-admin/options-writing.php0.227 s0.523 s+0.296 s3.32 MiB3.41 MiB+ 94.38 KiB
/wp-admin/media-new.php0.331 s0.375 s+0.044 s3.29 MiB3.4 MiB+ 109.57 KiB
/wp-admin/edit-tags.php?taxonomy=category0.212 s0.301 s+0.089 s3.31 MiB3.44 MiB+ 127.93 KiB
/wp-admin/post-new.php?post_type=page0.638 s0.654 s+0.016 s5.45 MiB5.56 MiB+ 113.45 KiB
/wp-admin/options-discussion.php0.326 s0.322 s-0.004 s3.3 MiB3.4 MiB+ 104.68 KiB
/wp-admin/edit-comments.php0.262 s0.412 s+0.150 s3.33 MiB3.43 MiB+ 99.27 KiB
/0.308 s0.327 s+0.019 s3.36 MiB3.46 MiB+ 102.16 KiB
Average 0.416 s0.463 s+0.047 s3.72 MiB3.82 MiB+ 106.39 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
JavaScript41.3%21,2093,20017
PHP30.5%15,6521,90048
PO File13.0%6,6633,85010
CSS11.5%5,8831275
Twig2.5%1,275011
JSON0.9%48502
XML0.2%12401
SVG0.0%803
Total 51,299 9,077 97

PHP Code Analysis | More results »

Lines of code 7,808
Total complexity 1,083
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 124
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 6

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

[28-Dec-2023 12:10:24 UTC] PHP Warning:  Undefined array key "data_reqs_on" in /wp-content/plugins/gdpr-cookie-consent/admin/class-gdpr-cookie-consent-admin.php on line 2620
[28-Dec-2023 12:10:24 UTC] PHP Deprecated:  Automatic conversion of false to array is deprecated in /wp-content/plugins/gdpr-cookie-consent/admin/partials/gdpr-integration-tab-template.php on line 17
[28-Dec-2023 12:10:29 UTC] PHP Warning:  Undefined array key "data_reqs_on" in /wp-content/plugins/gdpr-cookie-consent/admin/class-gdpr-cookie-consent-admin.php on line 2620
[28-Dec-2023 12:10:34 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
[28-Dec-2023 12:10:34 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
[28-Dec-2023 12:10:34 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
[28-Dec-2023 12:10:34 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
[28-Dec-2023 12:10:34 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
[28-Dec-2023 12:10:34 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
[28-Dec-2023 12:10:44 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
[28-Dec-2023 12:10:44 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
[28-Dec-2023 12:10:44 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
[28-Dec-2023 12:10:44 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
[28-Dec-2023 12:10:44 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
[28-Dec-2023 12:10:44 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