61% brizy

Code Review | Brizy - Page Builder

WordPress plugin Brizy - Page Builder scored61%from 54 tests.

About plugin

  • Plugin page: brizy
  • Plugin version: 2.4.33
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.4.1
  • WordPress version: 6.3.1
  • First release: Apr 12, 2018
  • Latest release: Dec 1, 2023
  • Number of updates: 276
  • Update frequency: every 7.5 days
  • Top authors: themefusecom (100%)

Code review

54 tests

User reviews

864 reviews

Install metrics

80,000+ active /4,302,054 total downloads

Benchmarks

Plugin footprint 64% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲3.40MB] [CPU: ▲27.34ms] 75% from 4 tests

Server-side resources used by Brizy - Page Builder
The following require your attention
  • CPU: Try to keep total CPU usage under 500.00ms (currently 1,513.63ms on /wp-admin/admin.php?page=starter-templates)
PageMemory (MB)CPU Time (ms)
Home /6.73 ▲3.2766.87 ▲26.35
Dashboard /wp-admin6.77 ▲3.4676.95 ▲27.65
Posts /wp-admin/edit.php6.79 ▲3.4483.43 ▲37.97
Add New Post /wp-admin/post-new.php9.36 ▲3.47117.83 ▲27.07
Media Library /wp-admin/upload.php6.65 ▲3.4263.96 ▲28.30
Templates /wp-admin/edit.php?post_type=editor-template6.7064.17
Starter Templates /wp-admin/admin.php?page=starter-templates6.991,513.63
Settings /wp-admin/admin.php?page=brizy-settings6.6456.40
Leads /wp-admin/edit.php?post_type=editor-form-entry6.7162.41
Stories /wp-admin/edit.php?post_type=editor-story6.7060.86
Tools /wp-admin/admin.php?page=brizy-tools6.6252.38
Getting Started /wp-admin/admin.php?page=getting-started6.6455.09

Server storage [IO: ▲32.09MB] [DB: ▲0.23MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
These are issues you should consider
  • The filesystem usage should be lower than 25MB (currently using 32.09MB)
Filesystem: 3,094 new files
Database: 1 new table, 8 new options
New tables
wp_brizy_logs
New WordPress options
brizy
theysaidso_admin_options
brizy-migrations
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Brizy - Page Builder: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,229 ▲46713.42 ▼0.867.94 ▲6.0916.44 ▼29.27
Dashboard /wp-admin2,546 ▲3695.68 ▲0.1598.66 ▼0.8097.22 ▲52.15
Posts /wp-admin/edit.php2,314 ▲2142.40 ▲0.4542.60 ▲2.8538.95 ▲1.43
Add New Post /wp-admin/post-new.php1,781 ▲25524.02 ▲0.90638.44 ▼37.0751.84 ▼2.71
Media Library /wp-admin/upload.php1,619 ▲2194.26 ▲0.0499.30 ▼8.8776.06 ▲29.71
Templates /wp-admin/edit.php?post_type=editor-template1,2272.2138.8931.55
Starter Templates /wp-admin/admin.php?page=starter-templates6,0142.4545.8348.15
Settings /wp-admin/admin.php?page=brizy-settings1,0332.3028.0326.27
Leads /wp-admin/edit.php?post_type=editor-form-entry1,2092.2439.6728.57
Stories /wp-admin/edit.php?post_type=editor-story1,2272.2038.8029.73
Tools /wp-admin/admin.php?page=brizy-tools9992.3030.3530.54
Getting Started /wp-admin/admin.php?page=getting-started1,6969.04291.3493.94

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie tables were found after uninstall: 1 table
    • wp_brizy_logs
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • brizy-regenerate-permalinks
    • theysaidso_admin_options
    • widget_recent-posts
    • brizy
    • brizy-migrations
    • db_upgraded
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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 items
  • 34× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/brizy/editor/storage/common.php
    • > /wp-content/plugins/brizy/admin/views/settings/roles.php
    • > /wp-content/plugins/brizy/public/views/compiled-page.php
    • > /wp-content/plugins/brizy/admin/flash.php
    • > /wp-content/plugins/brizy/editor/compiled-html.php
    • > /wp-content/plugins/brizy/editor/user.php
    • > /wp-content/plugins/brizy/admin/main.php
    • > /wp-content/plugins/brizy/editor/storage/post.php
    • > /wp-content/plugins/brizy/admin/views/settings/view.php
    • > /wp-content/plugins/brizy/public/views/page.php
  • 321× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Brizy_Admin_Migrations_AbstractStorage' not found in wp-content/plugins/brizy/admin/migrations/post-storage.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'PhpSpec\\ObjectBehavior' not found in wp-content/plugins/brizy/vendor/knplabs/gaufrette/spec/Gaufrette/Adapter/LazyOpenCloudSpec.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'PhpSpec\\ObjectBehavior' not found in wp-content/plugins/brizy/vendor/knplabs/gaufrette/spec/Gaufrette/Adapter/DropboxSpec.php:8
    • > PHP Notice
      Undefined variable: terms in wp-content/plugins/brizy/import/views/starter-templates.php on line 14
    • > PHP Fatal error
      Uncaught Error: Interface 'Brizy_Editor_Editor_ModuleGroups_ProviderInterface' not found in wp-content/plugins/brizy/editor/editor/module-groups/woo-archive-provider.php:3
    • > PHP Fatal error
      Uncaught Error: Interface 'Brizy_Editor_Editor_ModuleGroups_ProviderInterface' not found in wp-content/plugins/brizy/editor/editor/module-groups/media-provider.php:3
    • > PHP Notice
      Undefined variable: thumbnailId in wp-content/plugins/brizy/admin/views/featured-image.php on line 13
    • > PHP Notice
      Undefined variable: posts in wp-content/plugins/brizy/admin/views/dashboard-posts.php on line 1
    • > PHP Fatal error
      Uncaught Error: Interface 'Gaufrette\\Exception' not found in wp-content/plugins/brizy/vendor/knplabs/gaufrette/src/Gaufrette/Exception/FileNotFound.php:12
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/brizy/import/views/starter-templates.php on line 112

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=getting-started
    • > Other (warning) in unknown
    /wp-admin/admin.php?page=getting-started 196 Unrecognized feature: 'web-share'.

Optimizations

Plugin configuration 97% 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
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
The official readme.txt might help

brizy/brizy.php Passed 13 tests

The entry point to "Brizy - Page Builder" version 2.4.33 is a PHP file that has certain tags in its header comment area
114 characters long description:
A free drag & drop front-end page builder to help you create WordPress pages lightning fast. It's easy with Brizy.

Code Analysis 97% from 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
There were no executable files found in this plugin106,859 lines of code in 688 files:
LanguageFilesBlank linesComment linesLines of code
PHP47911,69315,10844,223
JSON101041,251
JavaScript1063,1441,04514,374
TypeScript62507923,328
Markdown253101,845
CSS13259621,549
INI33331,472144
YAML26064
SVG50031
Bourne Shell412330
XML13019
Twig1001

PHP code 50% from 2 tests

This is a very shot review of cyclomatic complexity and code structure
Please fix the following
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 155)
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity12.57
▷ Minimum class complexity1.00
▷ Maximum class complexity312.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity155.00
Code structure
Namespaces27
Interfaces40
Traits10
Classes415
▷ Abstract classes215.06%
▷ Concrete classes39494.94%
▷ Final classes82.03%
Methods3,443
▷ Static methods2457.12%
▷ Public methods2,88883.88%
▷ Protected methods2747.96%
▷ Private methods2818.16%
Functions166
▷ Named functions3722.29%
▷ Anonymous functions12977.71%
Constants457
▷ Global constants11124.29%
▷ Class constants34675.71%
▷ Public constants346100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
13 PNG files occupy 0.74MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/editor-build/272-wp/editor/img/screenshot-placeholder-bg-map.png147.19KB148.69KB0.00%
public/editor-build/272-wp/editor/img/pc-keyboard2x.png85.88KB26.92KB▼ 68.65%
public/editor-build/272-wp/editor/img/global_toolbar.png16.60KB5.36KB▼ 67.69%
admin/static/img/brizy.png0.49KB0.63KB0.00%
public/editor-build/272-wp/editor/img/pc-keyboard1x.png36.38KB12.60KB▼ 65.38%