72% page-builder-by-azexo

Code Review | Page Builder with Image Map by AZEXO

WordPress plugin Page Builder with Image Map by AZEXO scored 72% from 54 tests.

About plugin

  • Plugin page: page-builder-by-a...
  • Plugin version: 1.27.133
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.5
  • WordPress version: 5.8.1
  • First release: Dec 20, 2017
  • Latest release: Jun 5, 2021
  • Number of updates: 976
  • Update frequency: every 1.3 days
  • Top authors: azexo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

900+ active / 22,934 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲3.61MB] [CPU: ▼127.47ms] Passed 4 tests

This is a short check of server-side resources used by Page Builder with Image Map by AZEXO
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /6.31 ▲3.5880.55 ▲59.84
Dashboard /wp-admin6.72 ▲3.6653.73 ▲8.25
Posts /wp-admin/edit.php6.73 ▲3.6161.33 ▲19.47
Add New Post /wp-admin/post-new.php9.10 ▲3.6799.95 ▼554.40
Media Library /wp-admin/upload.php6.61 ▲3.6049.15 ▲16.82
AZH Widgets /wp-admin/edit.php?post_type=azh_widget6.6851.66
Add AZH Widget /wp-admin/post-new.php?post_type=azh_widget7.5769.86
Forms Settings /wp-admin/admin.php?page=azh-forms-settings6.6150.93
AZEXO Builder /wp-admin/admin.php?page=azh-settings6.5250.96
Widget type /wp-admin/edit-tags.php?taxonomy=widget_type&post_type=azh_widget6.6451.90

Server storage [IO: ▲12.81MB] [DB: ▲0.04MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 671 new files
Database: no new tables, 8 new options
New WordPress options
azh-content-settings
azh-elements-library-shortcode
widget_azh_widget
azh-get-content-scripts
azh-library
azh-all-settings
azh-settings
azh-sections-library-shortcode

Browser metrics Passed 4 tests

A check of browser resources used by Page Builder with Image Map by AZEXO
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,321 ▲72523.87 ▲8.2839.83 ▲30.6348.04 ▼6.12
Dashboard /wp-admin3,322 ▲39110.87 ▲4.89192.62 ▲49.39105.34 ▼5.95
Posts /wp-admin/edit.php3,362 ▲6237.39 ▲4.67102.47 ▲40.1996.55 ▲6.87
Add New Post /wp-admin/post-new.php1,770 ▲8520.37 ▲1.25266.50 ▼107.01103.49 ▲0.97
Media Library /wp-admin/upload.php2,152 ▲3457.76 ▲2.72141.67 ▼1.31117.13 ▲0.46
AZH Widgets /wp-admin/edit.php?post_type=azh_widget2,0437.27102.8579.19
Add AZH Widget /wp-admin/post-new.php?post_type=azh_widget2,7018.69261.67191.86
Forms Settings /wp-admin/admin.php?page=azh-forms-settings1,8106.9694.9792.15
AZEXO Builder /wp-admin/admin.php?page=azh-settings1,9127.3398.3694.70
Widget type /wp-admin/edit-tags.php?taxonomy=widget_type&post_type=azh_widget2,3907.29102.2885.17

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 8 options in the database
    • azh-settings
    • azh-get-content-scripts
    • azh-all-settings
    • widget_azh_widget
    • azh-elements-library-shortcode
    • azh-content-settings
    • azh-library
    • azh-sections-library-shortcode

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=azh-settings
    • > Notice in wp-content/plugins/page-builder-by-azexo/settings.php+369
    Undefined index: post
    • > GET request to /wp-admin/admin.php?page=azh-settings
    • > Notice in wp-content/plugins/page-builder-by-azexo/settings.php+369
    Undefined index: attachment

SRP 0% 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
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/page-builder-by-azexo/envato/server-script.php
  • 25× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/page-builder-by-azexo/integrations/woocommerce.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/page-builder-by-azexo/integrations/siteorigin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/page-builder-by-azexo/azexo-html-template.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/page-builder-by-azexo/envato/updater.php:209
    • > PHP Fatal error
      Uncaught Error: Call to undefined function azh_get_library() in wp-content/plugins/page-builder-by-azexo/shortcodes/azh_elements_library_grouped.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/page-builder-by-azexo/integrations/wpbakery.php:34
    • > PHP Warning
      session_start(): open(wp-content/plugins/page-builder-by-azexo/envato/sessions//sess_1rtmqmo2efrgsvpqt3sd11cfd0, O_RDWR) failed: No such file or directory (2) in /var/www/wordpress/wp-content/plugins/page-builder-by-azexo/envato/server-script.php on line 21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/page-builder-by-azexo/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/page-builder-by-azexo/options-translation.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/page-builder-by-azexo/customizer.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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
5 plugin tags: floor plans, svg map, hotspot map, image map, lookbook

page-builder-by-azexo/azexo_html.php 85% from 13 tests

The primary PHP file in "Page Builder with Image Map by AZEXO" version 1.27.133 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("page-builder-by-azexo.php" instead of "azexo_html.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected86,850 lines of code in 543 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3685,6034,37745,670
PHP331,2471,30414,554
CSS2060942411,479
LESS6404567,543
SVG47025,905
HTML6540893
Sass11040538
JSON200195
Markdown119073

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity41.31
▷ Minimum class complexity1.00
▷ Maximum class complexity199.00
Average method complexity3.96
▷ Minimum method complexity1.00
▷ Maximum method complexity58.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods177
▷ Static methods52.82%
▷ Public methods13576.27%
▷ Protected methods2111.86%
▷ Private methods2111.86%
Functions329
▷ Named functions31595.74%
▷ Anonymous functions144.26%
Constants35
▷ Global constants35100.00%
▷ Class constants00.00%
▷ Public constants00.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
103 PNG files occupy 0.14MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
azh/layout/accordion.png1.03KB0.41KB▼ 60.70%
azh/layout/hover-trigger.png1.61KB0.77KB▼ 51.97%
azh/forms/recaptcha.png1.01KB0.53KB▼ 47.44%
azh/layout/background.png1.91KB0.90KB▼ 52.72%
azh/content/gmap.png3.01KB1.50KB▼ 50.19%