77% booster-beaver

Code Review | Booster Pack for Beaver Builder

WordPress plugin Booster Pack for Beaver Builder scored77%from 54 tests.

About plugin

  • Plugin page: booster-beaver
  • Plugin version: 1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.3
  • WordPress version: 6.3.1
  • First release: Dec 28, 2018
  • Latest release: Nov 14, 2019
  • Number of updates: 8
  • Update frequency: every 40.4 days
  • Top authors: wpvibes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /3,689 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.12MB] [CPU: ▼1.51ms] Passed 4 tests

This is a short check of server-side resources used by Booster Pack for Beaver Builder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0238.10 ▼1.41
Dashboard /wp-admin3.51 ▲0.2148.31 ▲0.21
Posts /wp-admin/edit.php3.57 ▲0.2054.24 ▲4.77
Add New Post /wp-admin/post-new.php6.01 ▲0.1289.50 ▼7.45
Media Library /wp-admin/upload.php3.35 ▲0.1235.73 ▲2.60
Beaver Booster Settings /wp-admin/options-general.php?page=beaver-booster3.3534.50

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 99 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
bpbb_basic

Browser metrics Passed 4 tests

A check of browser resources used by Booster Pack for Beaver Builder
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,978 ▲21714.69 ▲0.331.97 ▲0.4645.53 ▲3.99
Dashboard /wp-admin2,360 ▲1796.31 ▲0.69115.98 ▲19.2744.94 ▲3.75
Posts /wp-admin/edit.php2,285 ▲1853.51 ▲1.5056.71 ▲15.6937.49 ▲3.14
Add New Post /wp-admin/post-new.php1,545 ▲1723.18 ▲0.17608.55 ▼64.9434.21 ▼18.06
Media Library /wp-admin/upload.php1,419 ▲164.33 ▲0.2084.88 ▼10.1544.54 ▼0.70
Beaver Booster Settings /wp-admin/options-general.php?page=beaver-booster1,0433.4646.5327.25

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • bpbb_basic
    • 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)
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
  • 8× PHP files output text when accessed directly:
    • > /wp-content/plugins/booster-beaver/modules/bp-spacer/includes/frontend.php
    • > /wp-content/plugins/booster-beaver/modules/bp-advance-progress-bar/includes/frontend.js.php
    • > /wp-content/plugins/booster-beaver/modules/bp-after-before-image/includes/frontend.js.php
    • > /wp-content/plugins/booster-beaver/modules/bp-splittext/includes/frontend.php
    • > /wp-content/plugins/booster-beaver/fields/bp-editor/bp-editor.php
    • > /wp-content/plugins/booster-beaver/modules/bp-testimonial/includes/frontend.js.php
    • > /wp-content/plugins/booster-beaver/modules/bp-teammember/includes/frontend.js.php
    • > /wp-content/plugins/booster-beaver/modules/bp-advanced-google-map/includes/frontend.js.php
  • 100× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Trying to get property 'masonry_layout' of non-object in wp-content/plugins/booster-beaver/modules/bp-testimonial/includes/frontend.php on line 3
    • > PHP Notice
      Trying to get property 'markers' of non-object in wp-content/plugins/booster-beaver/modules/bp-advanced-google-map/includes/frontend.php on line 4
    • > PHP Notice
      Trying to get property 'front_background' of non-object in wp-content/plugins/booster-beaver/modules/bp-flipbox/includes/frontend.css.php on line 5
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/booster-beaver/modules/bp-flipbox/includes/frontend.css.php on line 5
    • > PHP Fatal error
      Uncaught Error: Class 'BP_BB\\Helper' not found in wp-content/plugins/booster-beaver/modules/bp-flipbox/includes/frontend.php:6
    • > PHP Fatal error
      Uncaught Error: Call to a member function add_render_attribute() on null in wp-content/plugins/booster-beaver/modules/bp-teammember/includes/frontend.php:8
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/booster-beaver/modules/bp-imagebox/includes/frontend.php on line 4
    • > PHP Notice
      Undefined variable: module in wp-content/plugins/booster-beaver/modules/bp-social-icon/includes/frontend.php on line 3
    • > PHP Warning
      Use of undefined constant BP_BB_ASSETS_URL - assumed 'BP_BB_ASSETS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/booster-beaver/modules/bp-advanced-google-map/includes/frontend.js.php on line 51
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/booster-beaver/bp-beaver.php:16

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 issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes: You can take inspiration from this readme.txt

booster-beaver/bp-beaver.php 77% from 13 tests

The main PHP file in "Booster Pack for Beaver Builder" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • 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
  • Description: Please don't use more than 140 characters for the plugin description (currently 161 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("booster-beaver.php" instead of "bp-beaver.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin10,953 lines of code in 72 files:
LanguageFilesBlank linesComment linesLines of code
PHP481,0196888,816
CSS13176321,342
JavaScript6256521768
SVG50327

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity7.35
▷ Minimum class complexity1.00
▷ Maximum class complexity61.00
Average method complexity2.42
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods65
▷ Static methods23.08%
▷ Public methods6295.38%
▷ Protected methods00.00%
▷ Private methods34.62%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants13
▷ Global constants13100.00%
▷ Class constants00.00%
▷ Public constants00.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
16 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/people35.png1.36KB1.43KB0.00%
modules/bp-after-before-image/css/default.png3.97KB4.56KB0.00%
assets/images/conv40.png1.48KB1.52KB0.00%
assets/images/m3.png3.86KB3.06KB▼ 20.80%
assets/images/heart30.png1.41KB1.46KB0.00%