79% bb-bootstrap-alerts

Code Review | Alerts for Beaver Builder

WordPress plugin Alerts for Beaver Builder scored79%from 54 tests.

About plugin

  • Plugin page: bb-bootstrap-alerts
  • Plugin version: 1.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Nov 15, 2016
  • Latest release: Aug 17, 2023
  • Number of updates: 33
  • Update frequency: every 74.6 days
  • Top authors: Nikschavan (51.52%)brainstormworg (48.48%)patilvikasj (6.06%)

Code review

54 tests

User reviews

3 reviews

Install metrics

800+ active /14,920 total downloads

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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼11.60ms] 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 /3.47 ▲0.0134.93 ▼3.38
Dashboard /wp-admin3.31 ▼0.0341.27 ▼19.42
Posts /wp-admin/edit.php3.36 ▲0.0148.22 ▼0.42
Add New Post /wp-admin/post-new.php5.89 ▲0.0178.17 ▼23.16
Media Library /wp-admin/upload.php3.23 ▲0.0134.31 ▲3.26

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, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts

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 /2,824 ▲6314.25 ▼0.311.66 ▲0.1039.75 ▲1.48
Dashboard /wp-admin2,208 ▲285.59 ▼0.0296.45 ▲10.2243.66 ▲1.16
Posts /wp-admin/edit.php2,110 ▲102.04 ▲0.0339.02 ▲1.2637.99 ▲6.08
Add New Post /wp-admin/post-new.php1,541 ▲1523.20 ▲0.22657.38 ▼8.0851.26 ▼6.95
Media Library /wp-admin/upload.php1,410 ▲74.29 ▲0.1198.17 ▼2.9540.79 ▼2.00

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

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 25
    • > PHP Notice
      Trying to get property 'bbn_font_size' of non-object in wp-content/plugins/bb-bootstrap-alerts/bb-bootstrap-alerts-module/includes/frontend.css.php on line 7
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/bb-bootstrap-alerts/bb-bootstrap-alerts-module/includes/frontend.css.php on line 2
    • > PHP Notice
      Trying to get property 'bbn_padding_top' of non-object in wp-content/plugins/bb-bootstrap-alerts/bb-bootstrap-alerts-module/includes/frontend.css.php on line 55
    • > 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
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/bb-bootstrap-alerts/bb-bootstrap-alerts-module/includes/frontend.css.php on line 34
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/bb-bootstrap-alerts/bb-bootstrap-alerts-module/includes/frontend.css.php on line 13
    • > PHP Fatal error
      Uncaught Error: Class 'FLBuilderModel' not found in wp-content/plugins/bb-bootstrap-alerts/bb-bootstrap-alerts-module/includes/frontend.php:4
    • > PHP Notice
      Trying to get property 'bbn_padding_top' of non-object in wp-content/plugins/bb-bootstrap-alerts/bb-bootstrap-alerts-module/includes/frontend.css.php on line 14
    • > PHP Notice
      Trying to get property 'bbn_closable' of non-object in wp-content/plugins/bb-bootstrap-alerts/bb-bootstrap-alerts-module/includes/frontend.css.php on line 68

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 bootstrap, notification, drag and drop alerts, bootstrap, bb notification...

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

Analyzing the main PHP file in "Alerts for Beaver Builder" version 1.2.4
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.59
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