89% bb-bootstrap-alerts

Code Review | Alerts for Beaver Builder

WordPress plugin Alerts for Beaver Builder scored 89% from 54 tests.

About plugin

  • Plugin page: bb-bootstrap-alerts
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.8
  • WordPress version: 5.8.1
  • First release: Nov 15, 2016
  • Latest release: Jul 12, 2021
  • Number of updates: 28
  • Update frequency: every 60.6 days
  • Top authors: Nikschavan (60.71%)brainstormworg (39.29%)patilvikasj (7.14%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active / 8,870 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼140.94ms] Passed 4 tests

A check of server-side resources used by Alerts for Beaver Builder
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1231.21 ▲9.86
Dashboard /wp-admin3.06 ▲0.0148.88 ▲2.82
Posts /wp-admin/edit.php3.12 ▲0.0148.05 ▲3.53
Add New Post /wp-admin/post-new.php5.42 ▼0.0187.28 ▼569.18
Media Library /wp-admin/upload.php3.01 ▲0.0129.16 ▼0.94

Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Alerts for Beaver Builder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,694 ▲9816.09 ▲0.507.19 ▼1.1046.92 ▲4.94
Dashboard /wp-admin2,988 ▲515.87 ▼0.09130.43 ▼10.13102.57 ▼11.32
Posts /wp-admin/edit.php2,754 ▲152.69 ▲0.0161.81 ▼2.4191.47 ▲5.41
Add New Post /wp-admin/post-new.php1,508 ▼17518.81 ▲0.25380.44 ▲14.26105.93 ▼3.92
Media Library /wp-admin/upload.php1,825 ▲125.02 ▲0.00135.80 ▼2.05115.85 ▲1.17

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% from 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
Please fix the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/bb-bootstrap-alerts/bb-bootstrap-alerts-module/includes/frontend.css.php
    • > /wp-content/plugins/bb-bootstrap-alerts/bb-bootstrap-alerts-module/includes/frontend.js.php
  • 54× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/bb-bootstrap-alerts/bb-bootstrap-alerts-module/includes/frontend.css.php on line 16
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/bb-bootstrap-alerts/bb-bootstrap-alerts-module/includes/frontend.css.php on line 13
    • > PHP Notice
      Trying to get property 'bbn_border_style' of non-object in wp-content/plugins/bb-bootstrap-alerts/bb-bootstrap-alerts-module/includes/frontend.css.php on line 26
    • > PHP Fatal error
      Uncaught Error: Class 'FLBuilderModule' not found in wp-content/plugins/bb-bootstrap-alerts/bb-bootstrap-alerts-module/bb-bootstrap-alerts-module.php:3
    • > PHP Notice
      Trying to get property 'node' of non-object in wp-content/plugins/bb-bootstrap-alerts/bb-bootstrap-alerts-module/includes/frontend.php on line 2
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/bb-bootstrap-alerts/bb-bootstrap-alerts-module/includes/frontend.css.php on line 31
    • > PHP Notice
      Trying to get property 'bbn_border_size' of non-object in wp-content/plugins/bb-bootstrap-alerts/bb-bootstrap-alerts-module/includes/frontend.css.php on line 25
    • > PHP Notice
      Trying to get property 'bbn_icon_color' of non-object in wp-content/plugins/bb-bootstrap-alerts/bb-bootstrap-alerts-module/includes/frontend.css.php on line 36
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/bb-bootstrap-alerts/bb-bootstrap-alerts-module/includes/frontend.css.php on line 41
    • > PHP Notice
      Trying to get property 'bbn_border_color' of non-object in wp-content/plugins/bb-bootstrap-alerts/bb-bootstrap-alerts-module/includes/frontend.css.php on line 24

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 Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: bb notification, bb alerts, page builder plugin, notification, drag and drop alerts...

bb-bootstrap-alerts/bb-bootstrap-alerts.php Passed 13 tests

Analyzing the main PHP file in "Alerts for Beaver Builder" version 1.2.2
55 characters long description:
This is the plugin to create predefined alert messages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected936 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP55350464
JavaScript310154419
CSS10053

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity2.50
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin