62% zionbuilder

Code Review | WordPress Page Builder – Zion Builder

WordPress plugin WordPress Page Builder – Zion Builder scored62%from 54 tests.

About plugin

  • Plugin page: zionbuilder
  • Plugin version: 3.6.8
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.2.2
  • WordPress version: 6.3.1
  • First release: May 27, 2020
  • Latest release: Aug 3, 2023
  • Number of updates: 111
  • Update frequency: every 10.5 days
  • Top authors: zionbuilder (100%)

Code review

54 tests

User reviews

27 reviews

Install metrics

2,000+ active /58,538 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲2.73MB] [CPU: ▲29.91ms] Passed 4 tests

A check of server-side resources used by WordPress Page Builder – Zion Builder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /5.75 ▲2.2972.00 ▲25.94
Dashboard /wp-admin6.19 ▲2.8988.58 ▲33.43
Posts /wp-admin/edit.php6.29 ▲2.9383.41 ▲32.76
Add New Post /wp-admin/post-new.php9.42 ▲3.54129.40 ▲27.52
Media Library /wp-admin/upload.php6.02 ▲2.7983.41 ▲44.14
Scheduled Actions /wp-admin/tools.php?page=action-scheduler6.3398.19
Settings /wp-admin/admin.php?page=zionbuilder6.2473.50
Templates /wp-admin/edit.php?post_type=zion_template6.2772.09

Server storage [IO: ▲8.89MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 368 new files
Database: 4 new tables, 12 new options
New tables
wp_actionscheduler_groups
wp_actionscheduler_logs
wp_actionscheduler_actions
wp_actionscheduler_claims
New WordPress options
theysaidso_admin_options
schema-ActionScheduler_StoreSchema
widget_theysaidso_widget
widget_recent-comments
db_upgraded
action_scheduler_hybrid_store_demarkation
action_scheduler_lock_async-request-runner
widget_recent-posts
_zionbuilder_options
zionbuilder_regenerate_assets
...

Browser metrics Passed 4 tests

WordPress Page Builder – Zion Builder: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,023 ▲26220.16 ▲5.441.47 ▼0.3042.20 ▼2.49
Dashboard /wp-admin2,433 ▲25910.20 ▲4.63220.65 ▲115.2262.42 ▲17.85
Posts /wp-admin/edit.php2,597 ▲4977.02 ▲4.9998.64 ▲60.9858.78 ▲24.68
Add New Post /wp-admin/post-new.php1,635 ▲10924.90 ▲1.37715.94 ▲10.3452.67 ▲4.14
Media Library /wp-admin/upload.php1,662 ▲2658.35 ▲4.16127.66 ▲27.8461.89 ▲17.51
Scheduled Actions /wp-admin/tools.php?page=action-scheduler2,1047.5887.3366.83
Settings /wp-admin/admin.php?page=zionbuilder1,3949.29113.1447.20
Templates /wp-admin/edit.php?post_type=zion_template1,5457.4899.2645.41

Uninstaller [IO: ▲0.03MB] [DB: ▲0.01MB] 50% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The plugin did not uninstall successfully, leaving 4 tables in the database
    • wp_actionscheduler_groups
    • wp_actionscheduler_logs
    • wp_actionscheduler_actions
    • wp_actionscheduler_claims
  • This plugin does not fully uninstall, leaving 12 options in the database
    • action_scheduler_lock_async-request-runner
    • schema-ActionScheduler_StoreSchema
    • zionbuilder_regenerate_assets
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • _zionbuilder_options
    • db_upgraded
    • schema-ActionScheduler_LoggerSchema
    • action_scheduler_hybrid_store_demarkation
    • ...

Smoke tests 25% 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 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
Almost there! Just fix the following items
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/zionbuilder/assets/icons/FontAwesome5Free-Solid/index.php
    • > /wp-content/plugins/zionbuilder/assets/icons/FontAwesome5Free-Regular/index.php
    • > /wp-content/plugins/zionbuilder/assets/icons/FontAwesome5Brands-Regular/index.php
  • 45× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'ActionScheduler_Exception' not found in wp-content/plugins/zionbuilder/vendor/woocommerce/action-scheduler/classes/ActionScheduler_InvalidActionException.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'CronExpression_FieldInterface' not found in wp-content/plugins/zionbuilder/vendor/woocommerce/action-scheduler/lib/cron-expression/CronExpression_AbstractField.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_Schema' not found in wp-content/plugins/zionbuilder/vendor/woocommerce/action-scheduler/classes/schema/ActionScheduler_LoggerSchema.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_Schedule' not found in wp-content/plugins/zionbuilder/vendor/woocommerce/action-scheduler/classes/schedules/ActionScheduler_SimpleSchedule.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_Schedule' not found in wp-content/plugins/zionbuilder/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Abstract_RecurringSchedule.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_QueueRunner' not found in wp-content/plugins/zionbuilder/vendor/woocommerce/action-scheduler/classes/ActionScheduler_QueueRunner.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Logger' not found in wp-content/plugins/zionbuilder/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_DBLogger.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Logger' not found in wp-content/plugins/zionbuilder/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_wpCommentLogger.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_ListTable' not found in wp-content/plugins/zionbuilder/vendor/woocommerce/action-scheduler/classes/ActionScheduler_ListTable.php:7
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/zionbuilder/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Abstract_ListTable.php on line 4

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/edit.php?post_type=zion_template
    • > Console-api (warning) in wp-content/plugins/zionbuilder/dist/common.js?ver=3.6.8+22905:18
    No HTMLElement was found matching #znpb-admin

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: These screenshots lack descriptions #1, #10, #11, #12, #14, #15, #16, #17, #18, #2, #3, #4, #5, #6, #7, #8, #9 in zionbuilder/assets to your readme.txt
You can look at the official readme.txt

zionbuilder/zionbuilder.php Passed 13 tests

The main PHP script in "WordPress Page Builder – Zion Builder" version 3.6.8 is automatically included on every request by WordPress
81 characters long description:
The page builder you always wanted. Create any design you want using live editor.

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 detected146,498 lines of code in 334 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript546791,30068,717
PHP2235,46313,79425,738
JSON60025,010
CSS3480225518,029
SVG150128,914
Markdown237090

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity10.98
▷ Minimum class complexity1.00
▷ Maximum class complexity157.00
Average method complexity2.26
▷ Minimum method complexity1.00
▷ Maximum method complexity87.00
Code structure
Namespaces52
Interfaces4
Traits0
Classes205
▷ Abstract classes157.32%
▷ Concrete classes19092.68%
▷ Final classes00.00%
Methods1,671
▷ Static methods25014.96%
▷ Public methods1,46687.73%
▷ Protected methods1458.68%
▷ Private methods603.59%
Functions40
▷ Named functions2255.00%
▷ Anonymous functions1845.00%
Constants74
▷ Global constants34.05%
▷ Class constants7195.95%
▷ Public constants71100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/get-pro-illustration.png1.31KB1.41KB0.00%