78% toolkit-for-beaver-builder

Code Review | Beaver Builder Toolkit

WordPress plugin Beaver Builder Toolkit scored78%from 54 tests.

About plugin

  • Plugin page: toolkit-for-beave...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.3
  • WordPress version: 6.3.1
  • First release: Aug 16, 2023
  • Latest release: Aug 17, 2023
  • Number of updates: 2
  • Update frequency: every 73.5 days
  • Top authors: presscargo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /208 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.67MB] [CPU: ▲1.75ms] Passed 4 tests

This is a short check of server-side resources used by Beaver Builder Toolkit
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.88 ▲0.4240.85 ▲1.56
Dashboard /wp-admin4.06 ▲0.7656.92 ▲10.28
Posts /wp-admin/edit.php4.14 ▲0.7954.51 ▲3.51
Add New Post /wp-admin/post-new.php6.64 ▲0.7588.83 ▼2.25
Media Library /wp-admin/upload.php3.96 ▲0.7438.38 ▲4.18
BB Toolkit /wp-admin/options-general.php?page=bb_toolkit_options4.2439.68

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 368 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Beaver Builder Toolkit
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲8013.61 ▼0.934.61 ▲2.7940.57 ▼4.33
Dashboard /wp-admin2,221 ▲334.90 ▲0.00111.94 ▼3.1642.03 ▼1.86
Posts /wp-admin/edit.php2,104 ▲122.09 ▲0.0838.03 ▼2.8130.86 ▼5.33
Add New Post /wp-admin/post-new.php1,526 ▲723.42 ▲0.26685.08 ▲21.5456.32 ▼10.81
Media Library /wp-admin/upload.php1,403 ▲154.33 ▲0.1496.34 ▼16.3540.14 ▼6.44
BB Toolkit /wp-admin/options-general.php?page=bb_toolkit_options9292.2826.3325.84

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Please fix the following
  • 39× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Hookup' not found in wp-content/plugins/toolkit-for-beaver-builder/vendor/CMB2/includes/CMB2_Options_Hookup.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/toolkit-for-beaver-builder/vendor/CMB2/includes/types/CMB2_Type_Radio.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/toolkit-for-beaver-builder/vendor/CMB2/includes/types/CMB2_Type_Taxonomy_Select.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Radio' not found in wp-content/plugins/toolkit-for-beaver-builder/vendor/CMB2/includes/types/CMB2_Type_Taxonomy_Radio_Hierarchical.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/toolkit-for-beaver-builder/vendor/CMB2/includes/types/CMB2_Type_File_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Select' not found in wp-content/plugins/toolkit-for-beaver-builder/vendor/CMB2/includes/types/CMB2_Type_Select_Timezone.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/toolkit-for-beaver-builder/vendor/CMB2/includes/CMB2.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/toolkit-for-beaver-builder/vendor/CMB2/includes/helper-functions.php:131
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/toolkit-for-beaver-builder/vendor/CMB2/includes/types/CMB2_Type_Text_Date.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/toolkit-for-beaver-builder/vendor/CMB2/includes/types/CMB2_Type_Wysiwyg.php:16

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=bb_toolkit_options
    • > Network (severe)
    var/www/wordpress/wp-content/plugins/toolkit-for-beaver-builder/assets/css/admin.css?ver=1.0.0 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: beaver, beaver builder

toolkit-for-beaver-builder/toolkit-for-beaver-builder.php 92% from 13 tests

The entry point to "Beaver Builder Toolkit" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected54,722 lines of code in 222 files:
LanguageFilesBlank linesComment linesLines of code
PO File12014,31518,50232,323
PHP612,2956,6997,633
JSON2006,602
CSS122501,1904,554
JavaScript73615831,431
Sass17306291,411
Markdown32490768

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity19.07
▷ Minimum class complexity1.00
▷ Maximum class complexity188.00
Average method complexity3.26
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes71
▷ Abstract classes912.68%
▷ Concrete classes6287.32%
▷ Final classes34.84%
Methods570
▷ Static methods9516.67%
▷ Public methods47583.33%
▷ Protected methods8915.61%
▷ Private methods61.05%
Functions37
▷ Named functions37100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants330.00%
▷ Class constants770.00%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/CMB2/images/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%
vendor/CMB2/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
vendor/CMB2/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
vendor/CMB2/images/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%
vendor/CMB2/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%