10% brozzme-cookie-notification

Code Review | Brozzme Cookie Notification

WordPress plugin Brozzme Cookie Notification scored 10% from 54 tests.

About plugin

  • Plugin page: brozzme-cookie-no...
  • Plugin version: 1.6.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.8
  • WordPress version: 5.8.1
  • First release: Apr 4, 2015
  • Latest release: Oct 28, 2021
  • Number of updates: 109
  • Update frequency: every 22.0 days
  • Top authors: Benoti (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active / 3,201 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /3.03 ▲0.1936.47 ▲1.06
Dashboard /wp-admin3.34 ▲0.2850.05 ▲4.63
Posts /wp-admin/edit.php3.38 ▲0.2838.96 ▼6.02
Add New Post /wp-admin/post-new.php5.64 ▲0.2089.86 ▼576.99
Media Library /wp-admin/upload.php3.22 ▲0.2133.34 ▲1.40
Cookie notification /wp-admin/options-general.php?page=brozzme-cookie-notification3.1729.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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Brozzme Cookie Notification
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,916 ▲34416.80 ▲0.9118.35 ▲6.5751.22 ▲5.95
Dashboard /wp-admin3,004 ▲737.04 ▲1.07145.60 ▼16.71122.91 ▲14.16
Posts /wp-admin/edit.php2,785 ▲463.04 ▲0.3271.45 ▲1.93100.02 ▲15.24
Add New Post /wp-admin/post-new.php1,526 ▼2,11018.95 ▲3.98397.95 ▼98.65126.73 ▲20.51
Media Library /wp-admin/upload.php1,850 ▲435.45 ▲0.42147.35 ▼9.25119.82 ▲1.12
Cookie notification /wp-admin/options-general.php?page=brozzme-cookie-notification1,8143.0679.4397.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

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


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)
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PO File193107223

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 code0.21
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions63100.00%
▷ Anonymous functions00.00%
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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