Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/brozzme-cookie-notification/brozzme-cookie-notification.php+34
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.22MB] [CPU: ▼145.14ms] Passed 4 tests
Analyzing server-side resources used by Brozzme Cookie Notification
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.03 ▲0.19 | 36.47 ▲1.06 |
Dashboard /wp-admin | 3.34 ▲0.28 | 50.05 ▲4.63 |
Posts /wp-admin/edit.php | 3.38 ▲0.28 | 38.96 ▼6.02 |
Add New Post /wp-admin/post-new.php | 5.64 ▲0.20 | 89.86 ▼576.99 |
Media Library /wp-admin/upload.php | 3.22 ▲0.21 | 33.34 ▲1.40 |
Cookie notification /wp-admin/options-general.php?page=brozzme-cookie-notification | 3.17 | 29.13 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 5 new options
New WordPress options |
---|
b_cookie_general_settings |
b_cookie_notification_cookies_settings |
b_cookie_notification_policy_settings |
b_cookie_notification_display_settings |
b_cookie_notification_accept_settings |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Brozzme Cookie Notification
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,916 ▲344 | 16.80 ▲0.91 | 18.35 ▲6.57 | 51.22 ▲5.95 |
Dashboard /wp-admin | 3,004 ▲73 | 7.04 ▲1.07 | 145.60 ▼16.71 | 122.91 ▲14.16 |
Posts /wp-admin/edit.php | 2,785 ▲46 | 3.04 ▲0.32 | 71.45 ▲1.93 | 100.02 ▲15.24 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2,110 | 18.95 ▲3.98 | 397.95 ▼98.65 | 126.73 ▲20.51 |
Media Library /wp-admin/upload.php | 1,850 ▲43 | 5.45 ▲0.42 | 147.35 ▼9.25 | 119.82 ▲1.12 |
Cookie notification /wp-admin/options-general.php?page=brozzme-cookie-notification | 1,814 | 3.06 | 79.43 | 97.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 5 options in the database
- b_cookie_notification_display_settings
- b_cookie_general_settings
- b_cookie_notification_cookies_settings
- b_cookie_notification_policy_settings
- b_cookie_notification_accept_settings
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=brozzme-cookie-notification
- > Notice in wp-content/plugins/brozzme-cookie-notification/includes/bcn_options_settings.php+466
Undefined index: bcn_close_button
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/brozzme-cookie-notification/includes/bcn_options_settings.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: There are too many tags (11 tag instead of maximum 10)
brozzme-cookie-notification/brozzme-cookie-notification.php Passed 13 tests
The principal PHP file in "Brozzme Cookie Notification" v. 1.6.2 is loaded by WordPress automatically on each request
61 characters long description:
A simple implementation of the Law on Cookies for WordPress .
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin2,232 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 240 | 148 | 1,113 |
JavaScript | 5 | 118 | 129 | 621 |
CSS | 4 | 19 | 5 | 275 |
PO File | 1 | 93 | 107 | 223 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 63 | |
▷ Named functions | 63 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected