Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.51MB] [CPU: ▲4.44ms] Passed 4 tests
This is a short check of server-side resources used by EU Cookies Bar for WordPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.99 ▲0.52 | 44.54 ▲7.45 |
Dashboard /wp-admin | 3.83 ▲0.52 | 56.09 ▲5.55 |
Posts /wp-admin/edit.php | 3.91 ▲0.56 | 52.98 ▲5.34 |
Add New Post /wp-admin/post-new.php | 6.38 ▲0.49 | 89.54 ▼0.58 |
Media Library /wp-admin/upload.php | 3.72 ▲0.49 | 41.19 ▲10.07 |
Extensions /wp-admin/admin.php?page=eu-cookies-bar-extensions | 3.91 | 491.64 |
Cookies bar /wp-admin/admin.php?page=eu-cookies-bar | 3.79 | 46.17 |
Server storage [IO: ▲1.88MB] [DB: ▲0.02MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
eu-cookies-bar_start_use |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by EU Cookies Bar for WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,348 ▲587 | 13.90 ▼0.46 | 17.00 ▲15.38 | 44.54 ▲4.35 |
Dashboard /wp-admin | 2,314 ▲137 | 5.56 ▼0.11 | 84.42 ▼1.15 | 47.53 ▲7.67 |
Posts /wp-admin/edit.php | 2,178 ▲78 | 2.17 ▲0.19 | 34.94 ▼3.02 | 34.56 ▼3.04 |
Add New Post /wp-admin/post-new.php | 1,587 ▲49 | 23.05 ▼0.09 | 669.71 ▼52.02 | 50.63 ▼1.06 |
Media Library /wp-admin/upload.php | 1,474 ▲83 | 4.20 ▲0.03 | 110.40 ▲8.82 | 49.32 ▲5.46 |
Extensions /wp-admin/admin.php?page=eu-cookies-bar-extensions | 1,784 | 2.15 | 29.32 | 70.97 |
Cookies bar /wp-admin/admin.php?page=eu-cookies-bar | 3,699 | 10.53 | 231.97 | 164.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- eu-cookies-bar_start_use
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: cookies gdpr, cookie popup, cookie consent, for wordpress, cookie policy generator...
eu-cookies-bar/eu-cookies-bar.php Passed 13 tests
The primary PHP file in "EU Cookies Bar for WordPress" version 1.0.13 is used by WordPress to initiate all plugin functionality
114 characters long description:
Simple cookie bar to make your website GDPR(General Data Protection Regulation) compliant(EU Cookie Law) and more.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin4,483 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 200 | 127 | 2,473 |
CSS | 6 | 164 | 376 | 873 |
SVG | 2 | 0 | 3 | 629 |
JavaScript | 4 | 34 | 15 | 508 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 50.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 114.00 |
Average method complexity | 8.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 1 | 2.08% |
▷ Public methods | 44 | 91.67% |
▷ Protected methods | 2 | 4.17% |
▷ Private methods | 2 | 4.17% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin