83% bold-page-builder

Code Review | Bold Page Builder

WordPress plugin Bold Page Builder scored83%from 54 tests.

About plugin

  • Plugin page: bold-page-builder
  • Plugin version: 4.7.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.4
  • WordPress version: 6.3.1
  • First release: Jan 5, 2017
  • Latest release: Nov 9, 2023
  • Number of updates: 362
  • Update frequency: every 6.9 days
  • Top authors: boldthemes (100%)

Code review

54 tests

User reviews

54 reviews

Install metrics

50,000+ active /1,560,704 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲3.26MB] [CPU: ▲11.51ms] Passed 4 tests

A check of server-side resources used by Bold Page Builder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /7.88 ▲4.4187.37 ▲46.27
Dashboard /wp-admin7.03 ▲3.6967.24 ▲6.65
Posts /wp-admin/edit.php7.03 ▲3.6862.12 ▲17.35
Add New Post /wp-admin/post-new.php7.75 ▲1.87101.81 ▲1.22
Media Library /wp-admin/upload.php7.03 ▲3.8057.54 ▲20.82
Bold Builder /wp-admin/options-general.php?page=bt_bb_settings7.0357.77

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 240 new files
Database: no new tables, 14 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bold Page Builder
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /9,724 ▲6,97726.32 ▲11.57324.37 ▲322.76247.36 ▲201.18
Dashboard /wp-admin2,199 ▲285.56 ▼0.1186.48 ▼5.7336.51 ▼6.77
Posts /wp-admin/edit.php2,117 ▲172.05 ▲0.0636.70 ▼0.0732.94 ▼0.87
Add New Post /wp-admin/post-new.php3,788 ▲2,26211.68 ▼11.54236.26 ▼448.9680.53 ▲17.52
Media Library /wp-admin/upload.php1,410 ▲104.20 ▼0.06101.91 ▲0.7144.89 ▼0.74
Bold Builder /wp-admin/options-general.php?page=bt_bb_settings9711.8228.6127.68

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 14 options
    • widget_recent-comments
    • widget_bt_bb_gallery
    • can_compress_scripts
    • widget_bt_bb_weather_widget
    • widget_theysaidso_widget
    • widget_bt_bb_recent_posts
    • bt_bb_settings
    • widget_bt_bb_text_image
    • widget_recent-posts
    • widget_bt_bb_recent_comments
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 56× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'BT_BB_Element' not found in wp-content/plugins/bold-page-builder/content_elements/bt_bb_image/bt_bb_image.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'BT_BB_Element' not found in wp-content/plugins/bold-page-builder/content_elements/bt_bb_css_post_grid/bt_bb_css_post_grid.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'BT_BB_Element' not found in wp-content/plugins/bold-page-builder/content_elements/bt_bb_masonry_image_grid/bt_bb_masonry_image_grid.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'BT_BB_Element' not found in wp-content/plugins/bold-page-builder/content_elements/bt_bb_custom_menu/bt_bb_custom_menu.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'BT_BB_Element' not found in wp-content/plugins/bold-page-builder/content_elements/bt_bb_text/bt_bb_text.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'BT_BB_Element' not found in wp-content/plugins/bold-page-builder/content_elements/bt_bb_accordion/bt_bb_accordion.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'BT_BB_Element' not found in wp-content/plugins/bold-page-builder/content_elements/bt_bb_masonry_post_grid/bt_bb_masonry_post_grid.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bold-page-builder/widgets/bb_recent_comments/init.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'BT_BB_Element' not found in wp-content/plugins/bold-page-builder/content_elements/bt_bb_column_inner/bt_bb_column_inner.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'BT_BB_Element' not found in wp-content/plugins/bold-page-builder/content_elements/bt_bb_tabs/bt_bb_tabs.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Tags: There are too many tags (12 tag instead of maximum 10)
The official readme.txt is a good inspiration

bold-page-builder/bold-builder.php 85% from 13 tests

The main PHP script in "Bold Page Builder" version 4.7.6 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("bold-page-builder.php" instead of "bold-builder.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin92,599 lines of code in 163 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity17.85
▷ Minimum class complexity1.00
▷ Maximum class complexity68.00
Average method complexity7.36
▷ Minimum method complexity1.00
▷ Maximum method complexity52.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes60100.00%
▷ Final classes00.00%
▷ Static methods74.40%
▷ Public methods15899.37%
▷ Protected methods00.00%
▷ Private methods10.63%
▷ Named functions9190.10%
▷ Anonymous functions109.90%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
17 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
fonts/row_layout/boxed-1200.png2.53KB1.47KB▼ 41.91%
fonts/row_layout/right-wide-content-wide-1200.png2.52KB1.46KB▼ 42.22%
fonts/row_layout/left-wide-1200.png2.53KB1.41KB▼ 44.18%
fonts/row_layout/left-wide-content-wide-1200.png2.52KB1.41KB▼ 44.07%
fonts/row_layout/right-left-wide-content-wide-1200.png2.50KB1.42KB▼ 43.42%