10% blox-page-builder

Code Review | Blox Page Builder

WordPress plugin Blox Page Builder scored10%from 54 tests.

About plugin

  • Plugin page: blox-page-builder
  • Plugin version: 1.0.65
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.6.0
  • WordPress version: 6.3.1
  • First release: May 1, 2018
  • Latest release: Nov 7, 2021
  • Number of updates: 71
  • Update frequency: every 18.1 days
  • Top authors: unitecms (100%)

Code review

54 tests

User reviews

28 reviews

Install metrics

800+ active /34,768 total downloads


Plugin footprint 39% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Warning in wp-content/plugins/blox-page-builder/inc_php/framework/functions.class.php+1649
    mkdir(): File exists

Server metrics [RAM: ▲5.98MB] [CPU: ▲35.96ms] 25% from 4 tests

This is a short check of server-side resources used by Blox Page Builder
Please take the time to fix the following items
  • RAM: The total memory usage must be kept under 10MB (currently 12.09MB on /wp-admin/admin.php?page=bloxbuilder)
  • CPU: Total CPU usage should be kept under 500.00ms (currently 2,502.66ms on /wp-admin/admin.php?page=bloxbuilder)
  • Extra RAM: Extra memory usage should kept under 5MB (currently 5.98MB on /wp-admin/admin.php?page=bloxbuilder)
PageMemory (MB)CPU Time (ms)
Home /8.79 ▲5.3369.65 ▲32.15
Dashboard /wp-admin9.55 ▲6.2483.84 ▲35.46
Posts /wp-admin/edit.php9.60 ▲6.2491.99 ▲44.83
Add New Post /wp-admin/post-new.php12.06 ▲6.18123.10 ▲34.16
Media Library /wp-admin/upload.php9.40 ▲6.1878.55 ▲42.07
License /wp-admin/admin.php?page=bloxbuilder_license9.5571.79
My Library /wp-admin/admin.php?page=bloxbuilder_library9.5371.32
General Settings /wp-admin/admin.php?page=bloxbuilder_settings9.5272.50
Layouts Settings /wp-admin/admin.php?page=bloxbuilder_layouts_settings9.4973.04
My Layouts /wp-admin/admin.php?page=bloxbuilder_layouts_general9.6380.28
My Addons /wp-admin/admin.php?page=bloxbuilder12.092,502.66

Server storage [IO: ▲13.29MB] [DB: ▲0.28MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 951 new files
Database: 2 new tables, 9 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Blox Page Builder
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,905 ▲13413.52 ▼1.064.42 ▲2.5334.68 ▼8.64
Dashboard /wp-admin2,308 ▲1175.08 ▼0.80111.68 ▲13.0886.23 ▲43.48
Posts /wp-admin/edit.php2,136 ▲472.01 ▲0.0437.95 ▲0.1235.06 ▼2.62
Add New Post /wp-admin/post-new.php1,712 ▲19822.29 ▲4.66702.73 ▼27.9858.54 ▲3.02
Media Library /wp-admin/upload.php1,426 ▲384.12 ▼0.0498.39 ▼15.2667.03 ▲18.10
License /wp-admin/admin.php?page=bloxbuilder_license1,3133.9248.2997.47
My Library /wp-admin/admin.php?page=bloxbuilder_library1,2513.9543.4777.80
General Settings /wp-admin/admin.php?page=bloxbuilder_settings1,7853.6451.6789.62
Layouts Settings /wp-admin/admin.php?page=bloxbuilder_layouts_settings1,3824.0047.0385.28
My Layouts /wp-admin/admin.php?page=bloxbuilder_layouts_general1,7874.1062.6734.58
My Addons /wp-admin/admin.php?page=bloxbuilder3,3365.2579.48107.49

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_addonlibrary_categories
    • wp_addonlibrary_addons
  • This plugin does not fully uninstall, leaving 9 options in the database
    • untecreator_state
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_blox-layout-widget
    • addon_library_catalog

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 155× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/blox-page-builder/views/addons.php
    • > /wp-content/plugins/blox-page-builder/views/objects/mappicker_view.class.php
    • > /wp-content/plugins/blox-page-builder/inc_php/manager/unitecreator_manager_pages.class.php
    • > /wp-content/plugins/blox-page-builder/inc_php/unitecreator_web_library.class.php
    • > /wp-content/plugins/blox-page-builder/inc_php/framework/settings_output_wide.class.php
    • > /wp-content/plugins/blox-page-builder/inc_php/unitecreator_actions.class.php
    • > /wp-content/plugins/blox-page-builder/inc_php/framework/settings_output_sidebar.class.php
    • > /wp-content/plugins/blox-page-builder/inc_php/manager/unitecreator_manager_inline.class.php
    • > /wp-content/plugins/blox-page-builder/inc_php/framework/cssparser.class.php
    • > /wp-content/plugins/blox-page-builder/inc_php/unitecreator_settingsview.class.php
  • 181× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/blox-page-builder/vendor/twig/twig/src/Node/Expression/Binary/NotEqualBinary.php:16
    • > PHP Fatal error
      Uncaught Error: Interface 'Twig_CompilerInterface' not found in wp-content/plugins/blox-page-builder/vendor/twig/twig/src/Compiler.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_Test' not found in wp-content/plugins/blox-page-builder/vendor/twig/twig/lib/Twig/Test/Node.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/blox-page-builder/vendor/twig/twig/src/Node/WithNode.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\odeVisitor\\AbstractNodeVisitor' not found in wp-content/plugins/blox-page-builder/vendor/twig/twig/src/NodeVisitor/SandboxNodeVisitor.php:33
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/blox-page-builder/vendor/twig/twig/src/Node/DoNode.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/blox-page-builder/provider/views/stand_alone_broken_error.php:59
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\\TokenParser\\AbstractTokenParser' not found in wp-content/plugins/blox-page-builder/vendor/twig/twig/src/TokenParser/FromTokenParser.php:26
    • > PHP Fatal error
      Uncaught Error: Interface 'Twig\\RuntimeLoader\\RuntimeLoaderInterface' not found in wp-content/plugins/blox-page-builder/vendor/twig/twig/src/RuntimeLoader/FactoryRuntimeLoader.php:19
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/blox-page-builder/provider/provider_alt_loader.php on line 13

User-side errors Passed 1 test

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


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Plugin Name: Please specify the plugin name on the first line ( === blox-page-builder === )
  • Tags: You are using too many tags: 12 tag instead of maximum 10
The official readme.txt is a good inspiration

blox-page-builder/blox_builder.php 92% from 13 tests

The primary PHP file in "Blox Page Builder" version 1.0.65 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("blox-page-builder.php" instead of "blox_builder.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin145,217 lines of code in 722 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity13.15
▷ Minimum class complexity1.00
▷ Maximum class complexity553.00
Average method complexity2.86
▷ Minimum method complexity1.00
▷ Maximum method complexity69.00
Code structure
▷ Abstract classes142.78%
▷ Concrete classes48997.22%
▷ Final classes40.82%
▷ Static methods50914.45%
▷ Public methods2,22763.21%
▷ Protected methods57616.35%
▷ Private methods72020.44%
▷ Named functions7892.86%
▷ Anonymous functions67.14%
▷ Global constants6913.61%
▷ Class constants43886.39%
▷ Public constants438100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
148 PNG files occupy 0.20MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets_libraries/unitegallery/skins/default/tile_bullets_blue.png0.38KB0.27KB▼ 28.61%
images/timeline.png0.25KB0.12KB▼ 54.02%
assets_libraries/unitegallery/skins/default/tile_bullets_gray.png0.39KB0.27KB▼ 31.17%
provider/assets/images/icon_default_addon.png2.38KB1.35KB▼ 43.40%
provider/assets/images/ui-bg_flat_0_aaaaaa_40x100.png0.21KB0.08KB▼ 58.96%