77% ultimate-addons-for-beaver-builder-lite

Code Review | Ultimate Addons for Beaver Builder - Lite

WordPress plugin Ultimate Addons for Beaver Builder - Lite scored77%from 54 tests.

About plugin

  • Plugin page: ultimate-addons-f...
  • Plugin version: 1.5.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Dec 27, 2016
  • Latest release: Aug 17, 2023
  • Number of updates: 50
  • Update frequency: every 48.5 days
  • Top authors: Nikschavan (52%)brainstormworg (48%)patilvikasj (4%)

Code review

54 tests

User reviews

322 reviews

Install metrics

30,000+ active /468,492 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.95ms] Passed 4 tests

An overview of server-side resources used by Ultimate Addons for Beaver Builder - Lite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0543.93 ▲0.95
Dashboard /wp-admin3.40 ▲0.0552.85 ▼3.71
Posts /wp-admin/edit.php3.51 ▲0.1150.07 ▼6.18
Add New Post /wp-admin/post-new.php5.98 ▲0.0594.59 ▼2.86
Media Library /wp-admin/upload.php3.32 ▲0.0542.45 ▲5.70

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 174 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
uabb_lite_redirect
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ultimate Addons for Beaver Builder - Lite
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲3814.17 ▼0.491.71 ▼0.0244.47 ▼1.28
Dashboard /wp-admin2,208 ▲285.67 ▲0.0284.62 ▼3.0441.79 ▼1.11
Posts /wp-admin/edit.php2,113 ▲131.97 ▼0.0541.32 ▲0.6836.88 ▼3.60
Add New Post /wp-admin/post-new.php1,538 ▲1023.04 ▼0.16671.01 ▼24.5762.75 ▲5.67
Media Library /wp-admin/upload.php1,410 ▲104.19 ▼0.0699.66 ▼23.9645.71 ▼5.03

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 7 options in the database
    • widget_recent-posts
    • uabb_lite_redirect
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 11× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/ultimate-addons-for-beaver-builder-lite/modules/info-list/includes/frontend.js.php
    • > /wp-content/plugins/ultimate-addons-for-beaver-builder-lite/modules/spacer-gap/includes/frontend.php
    • > /wp-content/plugins/ultimate-addons-for-beaver-builder-lite/modules/image-separator/includes/frontend.js.php
    • > /wp-content/plugins/ultimate-addons-for-beaver-builder-lite/modules/spacer-gap/includes/frontend.css.php
    • > /wp-content/plugins/ultimate-addons-for-beaver-builder-lite/modules/uabb-separator/includes/frontend.php
    • > /wp-content/plugins/ultimate-addons-for-beaver-builder-lite/modules/uabb-heading/includes/frontend.php
    • > /wp-content/plugins/ultimate-addons-for-beaver-builder-lite/modules/uabb-star-rating/includes/frontend.php
    • > /wp-content/plugins/ultimate-addons-for-beaver-builder-lite/modules/advanced-icon/includes/frontend.css.php
    • > /wp-content/plugins/ultimate-addons-for-beaver-builder-lite/modules/flip-box/includes/frontend.js.php
    • > /wp-content/plugins/ultimate-addons-for-beaver-builder-lite/modules/slide-box/includes/frontend.js.php
  • 277× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Trying to get property 'img_viewport_position' of non-object in wp-content/plugins/ultimate-addons-for-beaver-builder-lite/modules/image-separator/includes/frontend.js.php on line 18
    • > PHP Notice
      Trying to get property 'sub_heading_tag_selection' of non-object in wp-content/plugins/ultimate-addons-for-beaver-builder-lite/modules/info-table/includes/frontend.php on line 26
    • > PHP Fatal error
      Uncaught Error: Class 'FLBuilderModule' not found in wp-content/plugins/ultimate-addons-for-beaver-builder-lite/modules/ribbon/ribbon.php:13
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/ultimate-addons-for-beaver-builder-lite/modules/slide-box/includes/frontend.php on line 12
    • > PHP Fatal error
      Uncaught Error: Class 'FLBuilder' not found in wp-content/plugins/ultimate-addons-for-beaver-builder-lite/modules/info-table/info-table-bb-2-2-compatibility.php:10
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/ultimate-addons-for-beaver-builder-lite/modules/ribbon/includes/frontend.php on line 15
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/ultimate-addons-for-beaver-builder-lite/modules/slide-box/includes/frontend.php on line 15
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/ultimate-addons-for-beaver-builder-lite/modules/info-table/includes/frontend.php on line 47
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/ultimate-addons-for-beaver-builder-lite/fields/uabb-gradient/ui-field-uabb-gradient.php:22
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/ultimate-addons-for-beaver-builder-lite/modules/slide-box/includes/frontend.js.php on line 21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

ultimate-addons-for-beaver-builder-lite/bb-ultimate-addon.php 77% from 13 tests

The main PHP file in "Ultimate Addons for Beaver Builder - Lite" ver. 1.5.7 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("ultimate-addons-for-beaver-builder-lite.php" instead of "bb-ultimate-addon.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 199 characters long)
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected59,453 lines of code in 165 files:
LanguageFilesBlank linesComment linesLines of code
PHP1042,6533,48127,152
JSON10013,108
CSS279663078,097
HTML138925,843
JavaScript261,2975004,498
SVG605755

PHP code 50% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
It is recommended to fix the following
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 274)
Cyclomatic complexity
Average complexity per logical line of code0.96
Average class complexity60.08
▷ Minimum class complexity1.00
▷ Maximum class complexity519.00
Average method complexity9.10
▷ Minimum method complexity1.00
▷ Maximum method complexity274.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes37
▷ Abstract classes00.00%
▷ Concrete classes37100.00%
▷ Final classes410.81%
Methods270
▷ Static methods7226.67%
▷ Public methods23687.41%
▷ Protected methods124.44%
▷ Private methods228.15%
Functions38
▷ Named functions38100.00%
▷ Anonymous functions00.00%
Constants16
▷ Global constants16100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin