77% beaver-builder-lite-version

Code Review | Beaver Builder - WordPress Page Builder

WordPress plugin Beaver Builder - WordPress Page Builder scored77%from 54 tests.

About plugin

  • Plugin page: beaver-builder-li...
  • Plugin version: 2.7.3.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Nov 4, 2014
  • Latest release: Nov 20, 2023
  • Number of updates: 301
  • Update frequency: every 11.0 days
  • Top authors: pross (56.81%)justinbusa (43.52%)

Code review

54 tests

User reviews

370 reviews

Install metrics

100,000+ active /9,208,140 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲4.70MB] [CPU: ▲41.86ms] Passed 4 tests

A check of server-side resources used by Beaver Builder - WordPress Page Builder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /8.45 ▲4.9881.12 ▲36.51
Dashboard /wp-admin7.99 ▲4.6883.15 ▲31.53
Posts /wp-admin/edit.php8.07 ▲4.70102.97 ▲53.51
Add New Post /wp-admin/post-new.php10.62 ▲4.72140.33 ▲45.90
Media Library /wp-admin/upload.php7.93 ▲4.7096.66 ▲58.92
Beaver Builder /wp-admin/options-general.php?page=fl-builder-settings8.0386.52

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 1,085 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Beaver Builder - WordPress Page Builder
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4014.07 ▼0.641.73 ▲0.0149.58 ▲5.94
Dashboard /wp-admin2,207 ▲365.66 ▼0.0197.46 ▼2.3942.63 ▲2.44
Posts /wp-admin/edit.php2,109 ▲91.99 ▲0.0439.58 ▼1.4035.01 ▼5.62
Add New Post /wp-admin/post-new.php1,534 ▲823.15 ▲0.10683.34 ▼19.9751.08 ▼7.54
Media Library /wp-admin/upload.php1,409 ▲94.18 ▼0.0393.77 ▼4.4342.77 ▲0.62
Beaver Builder /wp-admin/options-general.php?page=fl-builder-settings2,5243.5686.75126.94

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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
The following issues need your attention
  • 35× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/beaver-builder-lite-version/includes/ui-field-ordering.php
    • > /wp-content/plugins/beaver-builder-lite-version/modules/heading/includes/frontend.php
    • > /wp-content/plugins/beaver-builder-lite-version/includes/shapes/triangles.svg.php
    • > /wp-content/plugins/beaver-builder-lite-version/includes/shapes/concave.svg.php
    • > /wp-content/plugins/beaver-builder-lite-version/includes/ui-field-time.php
    • > /wp-content/plugins/beaver-builder-lite-version/includes/shapes/star.svg.php
    • > /wp-content/plugins/beaver-builder-lite-version/includes/ui-field-form.php
    • > /wp-content/plugins/beaver-builder-lite-version/includes/ui-extras.php
    • > /wp-content/plugins/beaver-builder-lite-version/includes/shapes/rect.svg.php
    • > /wp-content/plugins/beaver-builder-lite-version/includes/shapes/edge-slant.svg.php
  • 439× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\UploadedFileInterface' not found in wp-content/plugins/beaver-builder-lite-version/includes/vendor/mailerlite/guzzlehttp/psr7/src/UploadedFile.php:9
    • > PHP Notice
      Trying to get property 'bg_video_audio' of non-object in wp-content/plugins/beaver-builder-lite-version/includes/row-css.php on line 62
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/beaver-builder-lite-version/includes/vendor/mailerlite/guzzlehttp/psr7/src/MultipartStream.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/beaver-builder-lite-version/includes/vendor/mailerlite/guzzlehttp/psr7/src/Request.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Http\\Message\\Encoding\\FilteredStream' not found in wp-content/plugins/beaver-builder-lite-version/includes/vendor/mailerlite/php-http/message/src/Encoding/DeflateStream.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/beaver-builder-lite-version/includes/ui-field-typography.php:141
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/beaver-builder-lite-version/classes/class-fl-builder-revisions.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'FLBuilderService' not found in wp-content/plugins/beaver-builder-lite-version/classes/class-fl-builder-service-getresponse.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'FLBuilderModule' not found in wp-content/plugins/beaver-builder-lite-version/modules/html/html.php:6
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/beaver-builder-lite-version/includes/vendor/mailjet/guzzlehttp/psr7/src/PumpStream.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: beaver builder, landing page, drag and drop editor, page builder, front-end builder

beaver-builder-lite-version/fl-builder.php 85% from 13 tests

The entry point to "Beaver Builder - WordPress Page Builder" version 2.7.3.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("beaver-builder-lite-version.php" instead of "fl-builder.php")
  • 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 95% from 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
Everything looks great! No dangerous files found in this plugin181,341 lines of code in 923 files:
LanguageFilesBlank linesComment linesLines of code
PHP64816,32836,08776,116
JavaScript11115,20223,75764,863
CSS901,00660414,523
JSON120012,603
SVG41009,643
Markdown151,12103,476
Pascal13012064
YAML20019
XML11315
Dockerfile18010
make1409

PHP code 0% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 1,493)
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 198)
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity21.25
▷ Minimum class complexity1.00
▷ Maximum class complexity1,493.00
Average method complexity3.48
▷ Minimum method complexity1.00
▷ Maximum method complexity198.00
Code structure
Namespaces58
Interfaces43
Traits8
Classes493
▷ Abstract classes81.62%
▷ Concrete classes48598.38%
▷ Final classes13427.63%
Methods4,538
▷ Static methods1,27428.07%
▷ Public methods3,66380.72%
▷ Protected methods4008.81%
▷ Private methods47510.47%
Functions328
▷ Named functions16951.52%
▷ Anonymous functions15948.48%
Constants411
▷ Global constants11227.25%
▷ Class constants29972.75%
▷ Public constants299100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
23 PNG files occupy 0.36MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/beaver-256.png38.64KB15.99KB▼ 58.62%
img/sprite.png2.75KB2.02KB▼ 26.46%
img/spacer.png0.11KB0.09KB▼ 13.64%
img/beaver.png8.31KB4.25KB▼ 48.78%
img/shape-bottom_left.png19.67KB8.08KB▼ 58.93%