83% bb-toolbox

Code Review | Toolbox for Beaver Builder

WordPress plugin Toolbox for Beaver Builder scored83%from 54 tests.

About plugin

  • Plugin page: bb-toolbox
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.8
  • WordPress version: 6.3.1
  • First release: Apr 19, 2018
  • Latest release: Jan 12, 2022
  • Number of updates: 12
  • Update frequency: every 113.8 days
  • Top authors: Krielkip (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

900+ active /7,534 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.07MB] [CPU: ▼4.76ms] Passed 4 tests

Server-side resources used by Toolbox for Beaver Builder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0836.18 ▼4.29
Dashboard /wp-admin3.38 ▲0.0444.41 ▼19.99
Posts /wp-admin/edit.php3.43 ▲0.0844.39 ▲2.58
Add New Post /wp-admin/post-new.php5.96 ▲0.0893.88 ▲5.11
Media Library /wp-admin/upload.php3.30 ▲0.0833.07 ▲2.67

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Toolbox for Beaver Builder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲6413.21 ▼1.541.67 ▼0.1642.37 ▼1.23
Dashboard /wp-admin2,213 ▲285.83 ▼0.02100.09 ▼10.0741.71 ▼1.90
Posts /wp-admin/edit.php2,098 ▲91.98 ▼0.1938.25 ▼4.4531.35 ▼4.87
Add New Post /wp-admin/post-new.php1,552 ▲3818.23 ▲0.64625.53 ▼10.9066.29 ▲17.62
Media Library /wp-admin/upload.php1,398 ▲134.18 ▼0.0296.97 ▼5.1841.55 ▼3.20

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'FLBuilder' not found in wp-content/plugins/bb-toolbox/settings/bb-toolbox-form.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
The official readme.txt is a good inspiration

bb-toolbox/bb-toolbox.php 85% from 13 tests

The main PHP file in "Toolbox for Beaver Builder" ver. 1.1.3 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 276 characters long)
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 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
No dangerous file extensions were detected599 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP380151535
JavaScript1121447
CSS12017

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity75.00
▷ Minimum class complexity75.00
▷ Maximum class complexity75.00
Average method complexity5.35
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods17
▷ Static methods741.18%
▷ Public methods1694.12%
▷ Protected methods00.00%
▷ Private methods15.88%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected