67% addons-for-beaver-builder

Code Review | Livemesh Addons for Beaver Builder

WordPress plugin Livemesh Addons for Beaver Builder scored67%from 54 tests.

About plugin

  • Plugin page: addons-for-beaver...
  • Plugin version: 3.5
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.3
  • WordPress version: 6.3.1
  • First release: Jun 29, 2017
  • Latest release: Oct 13, 2023
  • Number of updates: 90
  • Update frequency: every 25.5 days
  • Top authors: livemesh (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

4,000+ active /99,948 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲5.04MB] [CPU: ▲24.88ms] 75% from 4 tests

Analyzing server-side resources used by Livemesh Addons for Beaver Builder
Please have a look at the following items
  • Extra RAM: The extra memory usage should kept under 5MB (currently 5.04MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /8.89 ▲5.4265.08 ▲22.70
Dashboard /wp-admin8.91 ▲5.6070.16 ▲21.20
Posts /wp-admin/edit.php8.91 ▲5.5574.33 ▲30.44
Add New Post /wp-admin/post-new.php9.47 ▲3.57109.27 ▲25.19
Media Library /wp-admin/upload.php8.91 ▲5.6766.92 ▲32.90
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius8.9158.44

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 448 new files
Database: no new tables, 9 new options
New WordPress options
fs_debug_mode
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
fs_active_plugins
fs_accounts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Livemesh Addons for Beaver Builder
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲15113.89 ▼0.768.49 ▲6.6927.69 ▼14.79
Dashboard /wp-admin2,212 ▲385.53 ▼0.1892.46 ▲0.3777.28 ▲27.86
Posts /wp-admin/edit.php2,136 ▲392.00 ▼0.0134.87 ▼1.6036.68 ▲0.44
Add New Post /wp-admin/post-new.php1,544 ▲1821.94 ▼0.92744.43 ▲127.2566.09 ▲12.67
Media Library /wp-admin/upload.php1,435 ▲354.17 ▼0.0398.87 ▼0.2669.63 ▲27.98
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius1,0871.6624.9930.21

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/addons-for-beaver-builder/freemius/includes/class-freemius.php+8515
    Undefined property: stdClass::$plugins
  • This plugin does not fully uninstall, leaving 9 options in the database
    • fs_active_plugins
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • fs_accounts
    • widget_recent-comments
    • widget_recent-posts
    • fs_debug_mode
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 8× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/addons-for-beaver-builder/includes/modules/labb-portfolio/includes/frontend.js.php
    • > /wp-content/plugins/addons-for-beaver-builder/includes/fields/ui-field-labb-number.php
    • > /wp-content/plugins/addons-for-beaver-builder/includes/modules/labb-carousel/includes/frontend.js.php
    • > /wp-content/plugins/addons-for-beaver-builder/includes/modules/labb-piecharts/includes/frontend.js.php
    • > /wp-content/plugins/addons-for-beaver-builder/includes/modules/labb-testimonials-slider/includes/frontend.js.php
    • > /wp-content/plugins/addons-for-beaver-builder/includes/modules/labb-stats-bar/includes/frontend.js.php
    • > /wp-content/plugins/addons-for-beaver-builder/includes/modules/labb-posts-carousel/includes/frontend.js.php
    • > /wp-content/plugins/addons-for-beaver-builder/includes/modules/labb-odometers/includes/frontend.js.php
  • 155× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addons-for-beaver-builder/includes/fields/labb-number/labb-number.php:12
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/addons-for-beaver-builder/includes/modules/labb-posts-carousel/includes/frontend.css.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/addons-for-beaver-builder/includes/modules/labb-odometers/includes/frontend.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'FLBuilderModule' not found in wp-content/plugins/addons-for-beaver-builder/includes/modules/labb-clients/labb-clients.php:10
    • > PHP Notice
      Trying to get property 'tablet_gutter' of non-object in wp-content/plugins/addons-for-beaver-builder/includes/modules/labb-posts-carousel/includes/frontend.css.php on line 6
    • > PHP Fatal error
      Uncaught Error: Class 'FLBuilderModule' not found in wp-content/plugins/addons-for-beaver-builder/includes/modules/labb-heading/labb-heading.php:10
    • > PHP Notice
      Undefined variable: taxonomies in wp-content/plugins/addons-for-beaver-builder/templates/post-meta/taxonomy-info.php on line 5
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/addons-for-beaver-builder/includes/modules/labb-posts-carousel/includes/frontend.js.php on line 11
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/addons-for-beaver-builder/includes/modules/labb-clients/includes/frontend.css.php on line 1
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/addons-for-beaver-builder/includes/modules/labb-heading/includes/frontend.css.php on line 1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: carousel, beaver builder modules, beaver builder, portfolio, posts grid...

addons-for-beaver-builder/addons-for-beaver-builder.php 77% from 13 tests

The main PHP file in "Livemesh Addons for Beaver Builder" ver. 3.5 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin85,381 lines of code in 364 files:
LanguageFilesBlank linesComment linesLines of code
PHP1919,75017,83843,938
PO File159,41514,00920,203
JavaScript542,1712,0987,473
Sass47930797,043
CSS37797976,310
Markdown1680214
SVG14220119
JSON20037
YAML22028
XML13016

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity67.54
▷ Minimum class complexity1.00
▷ Maximum class complexity3,088.00
Average method complexity4.46
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes68
▷ Abstract classes34.41%
▷ Concrete classes6595.59%
▷ Final classes23.08%
Methods1,335
▷ Static methods19914.91%
▷ Public methods92969.59%
▷ Protected methods292.17%
▷ Private methods37728.24%
Functions127
▷ Named functions12699.21%
▷ Anonymous functions10.79%
Constants158
▷ Global constants11170.25%
▷ Class constants4729.75%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/addons-for-beaver-builder.png42.59KB12.26KB▼ 71.22%
admin/assets/images/logo-light.png6.11KB3.00KB▼ 50.85%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
admin/assets/images/logo-shape16.png0.66KB0.72KB0.00%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%