WP Cookie Consent 3.1.0

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

Summary

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

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

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

Environment
WordPress version6.5.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 3

WP Cookie Consent ‹ Test site — WordPress

Page screenshot: WP Cookie Consent ‹ 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=5c8a99aeae
Aspect after-activation
HTTP status 200
Load time 8.637 s
Memory usage 4.73 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 6.001 s
Memory usage 3.94 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.596 s
Memory usage 4.1 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.372 s0.546 s+0.174 s3.44 MiB3.74 MiB+ 310.41 KiB
/wp-admin/edit.php0.232 s0.429 s+0.197 s3.46 MiB3.83 MiB+ 374.27 KiB
/wp-admin/post-new.php0.922 s1.068 s+0.146 s5.59 MiB5.9 MiB+ 320.25 KiB
/wp-admin/upload.php0.606 s0.434 s-0.172 s3.38 MiB3.65 MiB+ 274.54 KiB
/wp-admin/options-writing.php0.228 s0.447 s+0.219 s3.37 MiB3.67 MiB+ 309.27 KiB
/wp-admin/media-new.php0.323 s0.389 s+0.066 s3.35 MiB3.65 MiB+ 304.38 KiB
/wp-admin/edit-tags.php?taxonomy=category0.217 s0.678 s+0.461 s3.37 MiB3.69 MiB+ 333.2 KiB
/wp-admin/post-new.php?post_type=page0.570 s0.724 s+0.154 s5.59 MiB5.9 MiB+ 320.18 KiB
/wp-admin/options-discussion.php0.558 s0.418 s-0.140 s3.36 MiB3.67 MiB+ 320.19 KiB
/wp-admin/edit-comments.php0.253 s0.366 s+0.113 s3.39 MiB3.7 MiB+ 314.21 KiB
/0.331 s0.285 s-0.046 s3.37 MiB3.58 MiB+ 217.75 KiB
Average 0.419 s0.526 s+0.107 s3.79 MiB4.09 MiB+ 308.97 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
JavaScript
CSS
PO File
Language % Lines of code Comment lines Files
PHP40.1%26,1544,17270
JavaScript35.3%23,0153,51224
CSS11.3%7,37114710
PO File10.2%6,6633,85010
Twig2.0%1,275011
JSON0.9%59602
XML0.2%12501
SVG0.1%88013
Total 65,287 11,681 141

PHP Code Analysis | More results »

Lines of code 18,195
Total complexity 2,802
Median class complexity 48.5
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 26
Methods 343
Functions 18

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 7

Options wp_options 12

Custom Post Types 2

ID Name
wplconsentlogsConsent Logs
gdprpoliciesPolicy Data

Meta Boxes

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

PHP Error Log 14 lines

[16-Apr-2024 06:31:10 UTC] PHP Warning:  Undefined variable $api_gdpr_dashboard in /wp-content/plugins/gdpr-cookie-consent/admin/views/gdpr-dashboard-page.php on line 319
[16-Apr-2024 06:31:20 UTC] PHP Warning:  Undefined variable $api_gdpr_dashboard in /wp-content/plugins/gdpr-cookie-consent/admin/views/gdpr-dashboard-page.php on line 319
[16-Apr-2024 06:31:27 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
[16-Apr-2024 06:31:27 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
[16-Apr-2024 06:31:27 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
[16-Apr-2024 06:31:27 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
[16-Apr-2024 06:31:27 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
[16-Apr-2024 06:31:27 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
[16-Apr-2024 06:31:39 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
[16-Apr-2024 06:31:39 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
[16-Apr-2024 06:31:39 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
[16-Apr-2024 06:31:39 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
[16-Apr-2024 06:31:39 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
[16-Apr-2024 06:31:39 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