EU Cookie Law 3.1.6

Does EU Cookie Law work with WordPress 6.8.1 and PHP 8.1.12? A smoke test was performed on .

Summary

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

Memory usage: 6.93 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.8.1
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 100,000+
WordPress.org page https://wordpress.org/plugins/eu-cookie-law/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 3

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=eu-cookie-law%2Feu-cookie-law.php&plugin_status=all&paged=1&s&_wpnonce=caea66ceb4
Aspect after-activation
HTTP status 200
Load time 0.301 s
Memory usage 3.54 MiB
JS errors None
Resource errors None

Settings → EU Cookie Law

Page screenshot: Settings → EU Cookie Law
URL /wp-admin/options-general.php?page=peadig_eucookie
Aspect menu-item
HTTP status 200
Load time 0.356 s
Memory usage 3.52 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.200 s
Memory usage 3.47 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.361 s0.300 s-0.061 s3.51 MiB3.52 MiB+ 9.46 KiB
/wp-admin/edit.php0.206 s0.187 s-0.019 s3.57 MiB3.58 MiB+ 10.29 KiB
/wp-admin/post-new.php0.824 s0.638 s-0.186 s6.06 MiB6.07 MiB+ 13.09 KiB
/wp-admin/upload.php0.794 s0.587 s-0.207 s3.52 MiB3.52 MiB- 7.12 KiB
/wp-admin/options-writing.php0.232 s0.213 s-0.019 s3.5 MiB3.5 MiB- 3.13 KiB
/wp-admin/media-new.php0.277 s0.247 s-0.030 s3.49 MiB3.5 MiB+ 5.07 KiB
/wp-admin/edit-tags.php?taxonomy=category0.198 s0.220 s+0.022 s3.5 MiB3.52 MiB+ 15.74 KiB
/wp-admin/post-new.php?post_type=page0.622 s0.619 s-0.003 s6.05 MiB6.06 MiB+ 8.62 KiB
/wp-admin/options-discussion.php0.485 s0.429 s-0.056 s3.5 MiB3.5 MiB- 6.63 KiB
/wp-admin/edit-comments.php0.288 s0.204 s-0.084 s3.52 MiB3.52 MiB- 7.13 KiB
/0.311 s0.431 s+0.120 s3.43 MiB3.47 MiB+ 37.95 KiB
Average 0.418 s0.370 s-0.048 s3.97 MiB3.98 MiB+ 6.93 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
Language % Lines of code Comment lines Files
PHP62.9%562165
JavaScript18.0%16183
CSS17.3%15521
XML1.8%1601
Total 894 26 10

PHP Code Analysis | More results »

Lines of code 574
Total complexity 68
Median class complexity 0.0
Median method complexity 0.0
Most complex class
Most complex function peadig_eucookie_options()
Classes 0
Methods 0
Functions 25

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.

Options wp_options 2

PHP Error Log 30 lines

[30-Apr-2025 20:09:02 UTC] PHP Warning:  Undefined array key "port" in /wp-content/plugins/eu-cookie-law/defaults.php on line 52
[30-Apr-2025 20:09:02 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/eu-cookie-law/defaults.php on line 33
[30-Apr-2025 20:09:02 UTC] PHP Deprecated:  Automatic conversion of false to array is deprecated in /wp-content/plugins/eu-cookie-law/defaults.php on line 34
[30-Apr-2025 20:09:02 UTC] PHP Warning:  Undefined array key "length" in /wp-content/plugins/eu-cookie-law/defaults.php on line 33
[30-Apr-2025 20:09:02 UTC] PHP Warning:  Undefined array key "position" in /wp-content/plugins/eu-cookie-law/defaults.php on line 33
[30-Apr-2025 20:09:02 UTC] PHP Warning:  Undefined array key "barmessage" in /wp-content/plugins/eu-cookie-law/defaults.php on line 33
[30-Apr-2025 20:09:02 UTC] PHP Warning:  Undefined array key "barlink" in /wp-content/plugins/eu-cookie-law/defaults.php on line 33
[30-Apr-2025 20:09:02 UTC] PHP Warning:  Undefined array key "barbutton" in /wp-content/plugins/eu-cookie-law/defaults.php on line 33
[30-Apr-2025 20:09:02 UTC] PHP Warning:  Undefined array key "closelink" in /wp-content/plugins/eu-cookie-law/defaults.php on line 33
[30-Apr-2025 20:09:02 UTC] PHP Warning:  Undefined array key "boxcontent" in /wp-content/plugins/eu-cookie-law/defaults.php on line 33
[30-Apr-2025 20:09:02 UTC] PHP Warning:  Undefined array key "bhtmlcontent" in /wp-content/plugins/eu-cookie-law/defaults.php on line 33
[30-Apr-2025 20:09:02 UTC] PHP Warning:  Undefined array key "backgroundcolor" in /wp-content/plugins/eu-cookie-law/defaults.php on line 33
[30-Apr-2025 20:09:02 UTC] PHP Warning:  Undefined array key "fontcolor" in /wp-content/plugins/eu-cookie-law/defaults.php on line 33
[30-Apr-2025 20:09:02 UTC] PHP Warning:  Undefined array key "autoblock" in /wp-content/plugins/eu-cookie-law/defaults.php on line 33
[30-Apr-2025 20:09:02 UTC] PHP Warning:  Undefined array key "boxlinkblank" in /wp-content/plugins/eu-cookie-law/defaults.php on line 33
[30-Apr-2025 20:09:02 UTC] PHP Warning:  Undefined array key "tinymcebutton" in /wp-content/plugins/eu-cookie-law/defaults.php on line 33
[30-Apr-2025 20:09:02 UTC] PHP Warning:  Undefined array key "scrollconsent" in /wp-content/plugins/eu-cookie-law/defaults.php on line 33
[30-Apr-2025 20:09:02 UTC] PHP Warning:  Undefined array key "navigationconsent" in /wp-content/plugins/eu-cookie-law/defaults.php on line 33
[30-Apr-2025 20:09:02 UTC] PHP Warning:  Undefined array key "networkshare" in /wp-content/plugins/eu-cookie-law/defaults.php on line 33
[30-Apr-2025 20:09:02 UTC] PHP Warning:  Undefined array key "onlyeuropean" in /wp-content/plugins/eu-cookie-law/defaults.php on line 33
[30-Apr-2025 20:09:02 UTC] PHP Warning:  Undefined array key "customurl" in /wp-content/plugins/eu-cookie-law/defaults.php on line 33
[30-Apr-2025 20:09:02 UTC] PHP Warning:  Undefined array key "cc-disablecookie" in /wp-content/plugins/eu-cookie-law/defaults.php on line 33
[30-Apr-2025 20:09:02 UTC] PHP Warning:  Undefined array key "cc-cookieenabled" in /wp-content/plugins/eu-cookie-law/defaults.php on line 33
[30-Apr-2025 20:09:02 UTC] PHP Warning:  Undefined array key "cc-cookiedisabled" in /wp-content/plugins/eu-cookie-law/defaults.php on line 33
[30-Apr-2025 20:09:02 UTC] PHP Warning:  Undefined array key "networkshareurl" in /wp-content/plugins/eu-cookie-law/defaults.php on line 33
[30-Apr-2025 20:09:02 UTC] PHP Warning:  Undefined array key "exclude_script" in /wp-content/plugins/eu-cookie-law/defaults.php on line 33
[30-Apr-2025 20:09:03 UTC] PHP Warning:  Undefined array key "port" in /wp-content/plugins/eu-cookie-law/defaults.php on line 52
[30-Apr-2025 20:09:03 UTC] PHP Warning:  Undefined array key "lengthnum" in /wp-content/plugins/eu-cookie-law/class-admin.php on line 96
[30-Apr-2025 20:09:03 UTC] PHP Warning:  Undefined array key "boxlinkid" in /wp-content/plugins/eu-cookie-law/class-admin.php on line 178
[30-Apr-2025 20:09:03 UTC] PHP Warning:  Undefined array key "boxlinkid" in /wp-content/plugins/eu-cookie-law/class-admin.php on line 190
See also: All tests for this plugin, How to Hide the "EU Cookie Law" Admin Menu