WP Cookie Consent 3.2.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: 305.2 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

Page speed impact: 0.198 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=7f5d725e94
Aspect after-activation
HTTP status 200
Load time 7.851 s
Memory usage 4.74 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 5.434 s
Memory usage 3.95 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.675 s
Memory usage 4.11 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.579 s+0.211 s3.44 MiB3.74 MiB+ 310.78 KiB
/wp-admin/edit.php0.207 s0.440 s+0.233 s3.46 MiB3.83 MiB+ 374.64 KiB
/wp-admin/post-new.php0.935 s1.567 s+0.632 s5.59 MiB5.9 MiB+ 320.62 KiB
/wp-admin/upload.php0.583 s0.515 s-0.068 s3.38 MiB3.65 MiB+ 274.91 KiB
/wp-admin/options-writing.php0.231 s0.425 s+0.194 s3.37 MiB3.68 MiB+ 309.63 KiB
/wp-admin/media-new.php0.312 s0.492 s+0.180 s3.35 MiB3.65 MiB+ 304.75 KiB
/wp-admin/edit-tags.php?taxonomy=category0.208 s0.404 s+0.196 s3.37 MiB3.69 MiB+ 333.56 KiB
/wp-admin/post-new.php?post_type=page0.536 s0.819 s+0.283 s5.59 MiB5.9 MiB+ 320.55 KiB
/wp-admin/options-discussion.php0.286 s0.427 s+0.141 s3.36 MiB3.67 MiB+ 320.55 KiB
/wp-admin/edit-comments.php0.245 s0.420 s+0.175 s3.39 MiB3.7 MiB+ 314.58 KiB
/0.325 s0.322 s-0.003 s3.42 MiB3.59 MiB+ 172.59 KiB
Average 0.385 s0.583 s+0.198 s3.79 MiB4.09 MiB+ 305.2 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.4%27,7784,26078
JavaScript34.1%23,4693,52424
CSS12.6%8,66216210
PO File9.7%6,6633,85010
Twig1.9%1,275011
JSON0.9%59602
SVG0.2%162029
XML0.2%12701
Total 68,732 11,796 165

PHP Code Analysis | More results »

Lines of code 18,385
Total complexity 2,826
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 345
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 13

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

[30-Apr-2024 12:41:30 UTC] PHP Warning:  Undefined variable $api_gdpr_dashboard in /wp-content/plugins/gdpr-cookie-consent/admin/views/gdpr-dashboard-page.php on line 319
[30-Apr-2024 12:41:39 UTC] PHP Warning:  Undefined variable $api_gdpr_dashboard in /wp-content/plugins/gdpr-cookie-consent/admin/views/gdpr-dashboard-page.php on line 319
[30-Apr-2024 12:41:46 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
[30-Apr-2024 12:41:46 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
[30-Apr-2024 12:41:46 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
[30-Apr-2024 12:41:46 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
[30-Apr-2024 12:41:46 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
[30-Apr-2024 12:41:46 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
[30-Apr-2024 12:41:58 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
[30-Apr-2024 12:41:58 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
[30-Apr-2024 12:41:58 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
[30-Apr-2024 12:41:58 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
[30-Apr-2024 12:41:58 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
[30-Apr-2024 12:41:58 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