78% page-builder-add

Code Review | Landing Page Builder - Lead Page - Optin Page - Squeeze Page - WordPress Landing Pages

WordPress plugin Landing Page Builder - Lead Page - Optin Page - Squeeze Page - WordPress Landing Pages scored78%from 54 tests.

About plugin

  • Plugin page: page-builder-add
  • Plugin version: 1.5.1.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Oct 26, 2016
  • Latest release: Nov 18, 2023
  • Number of updates: 824
  • Update frequency: every 3.1 days
  • Top authors: umarbajwa (100%)

Code review

54 tests

User reviews

192 reviews

Install metrics

10,000+ active /754,015 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.82MB] [CPU: ▲1.17ms] Passed 4 tests

Analyzing server-side resources used by Landing Page Builder - Lead Page - Optin Page - Squeeze Page - WordPress Landing Pages
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.32 ▲0.8646.64 ▲4.77
Dashboard /wp-admin4.16 ▲0.8150.93 ▼2.78
Posts /wp-admin/edit.php4.21 ▲0.8659.52 ▲10.87
Add New Post /wp-admin/post-new.php6.70 ▲0.8189.48 ▼6.48
Media Library /wp-admin/upload.php4.02 ▲0.7941.04 ▲9.18
Dashboard /wp-admin/edit.php?post_type=ulpb_post&page=page-builder-dashboard-ulpb4.0239.66
Form Submissions /wp-admin/edit.php?post_type=ulpb_post&page=page-builder-ulpb-form-submissions4.0053.98
Landing Pages /wp-admin/edit.php?post_type=ulpb_post4.1451.14
Add New Page /wp-admin/post-new.php?post_type=ulpb_post4.2060.44
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=ulpb_post4.0151.15
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=ulpb_post4.0240.27
Settings /wp-admin/admin.php?page=pluginops-settings4.0238.72
Tracking & Analytics /wp-admin/edit.php?post_type=ulpb_post&page=page-builder-tracking-ulpb3.9938.39
Go Pro /wp-admin/edit.php?post_type=ulpb_post&page=page-builder-extensions-ulpb4.0237.02
PluginOps /wp-admin/admin.php?page=pluginops4.0238.52

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 619 new files
Database: no new tables, 11 new options
New WordPress options
category_children
page_builder_SupportedPostTypes
can_compress_scripts
theysaidso_admin_options
plugOps_activation_date
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
cpt_reset_ulpb_pluginops
pluginOps_d_upd_not_req
...

Browser metrics 50% from 4 tests

A check of browser resources used by Landing Page Builder - Lead Page - Optin Page - Squeeze Page - WordPress Landing Pages
You may want to improve the following
  • Memory: In order to improve user experience, please limit browser memory usage to 75.00MB (currently 105.87MB on /wp-admin/admin.php?page=pluginops)
  • Script duration: Total JavaScript execution time should be lower than 1,500.00ms (currently 2,795.15ms on /wp-admin/edit.php?post_type=ulpb_post&page=page-builder-dashboard-ulpb)
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,919 ▲17214.61 ▼0.111.67 ▼0.1242.80 ▼3.21
Dashboard /wp-admin2,308 ▲1285.59 ▲0.0096.50 ▲8.2290.03 ▲52.52
Posts /wp-admin/edit.php2,244 ▲1442.02 ▲0.0840.30 ▲0.9139.58 ▲1.97
Add New Post /wp-admin/post-new.php1,653 ▲12723.61 ▲0.36675.20 ▼38.2448.63 ▼10.90
Media Library /wp-admin/upload.php1,509 ▲1064.14 ▼0.0997.50 ▲0.2680.30 ▲35.70
Dashboard /wp-admin/edit.php?post_type=ulpb_post&page=page-builder-dashboard-ulpb8,938102.612,795.15155.17
Form Submissions /wp-admin/edit.php?post_type=ulpb_post&page=page-builder-ulpb-form-submissions9391.8857.9466.81
Landing Pages /wp-admin/edit.php?post_type=ulpb_post1,2441.9436.7534.48
Add New Page /wp-admin/post-new.php?post_type=ulpb_post1,9743.7378.6099.85
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=ulpb_post1,5712.3229.8639.13
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=ulpb_post1,4432.2827.1537.02
Settings /wp-admin/admin.php?page=pluginops-settings1,2502.0626.8032.24
Tracking & Analytics /wp-admin/edit.php?post_type=ulpb_post&page=page-builder-tracking-ulpb9622.0325.3828.36
Go Pro /wp-admin/edit.php?post_type=ulpb_post&page=page-builder-extensions-ulpb1,3642.0724.0565.33
PluginOps /wp-admin/admin.php?page=pluginops9,109105.872,523.7497.06

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 10 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • category_children
    • can_compress_scripts
    • pluginOps_d_upd_not_req
    • page_builder_SupportedPostTypes
    • plugOps_activation_date
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/page-builder-add/admin/views/UI/tabs/templates-tab.php
    • > /wp-content/plugins/page-builder-add/admin/views/UI/widgets/image-widget.php
    • > /wp-content/plugins/page-builder-add/public/templates/template.php
  • 50× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'AWeberResponse' not found in wp-content/plugins/page-builder-add/integrations/aweber_api/aweber_collection.php:2
    • > PHP Notice
      Undefined variable: menuColor in wp-content/plugins/page-builder-add/admin/views/menus/menu-style-4.php on line 20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function has_custom_logo() in wp-content/plugins/page-builder-add/admin/views/menus/menu-style-4.php:138
    • > PHP Notice
      Undefined variable: menuColor in wp-content/plugins/page-builder-add/admin/views/menus/menu-style-3.php on line 15
    • > PHP Notice
      Undefined variable: menuFontSize in wp-content/plugins/page-builder-add/admin/views/menus/menu-style-4.php on line 51
    • > PHP Notice
      Undefined index: cnslayout in wp-content/plugins/page-builder-add/public/templates/widgets/widget-nav-builder.php on line 76
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nav_menu() in wp-content/plugins/page-builder-add/admin/views/menus/menu-style-3.php:164
    • > PHP Notice
      Undefined variable: menuFontHoverBgColor in wp-content/plugins/page-builder-add/admin/views/menus/menu-style-1.php on line 66
    • > PHP Notice
      Undefined variable: menuColor in wp-content/plugins/page-builder-add/admin/views/menus/menu-style-4.php on line 66
    • > PHP Notice
      Undefined variable: menuColor in wp-content/plugins/page-builder-add/admin/views/menus/menu-style-2.php on line 53

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Screenshots: These screenshots need descriptions #10, #105, #106, #107, #108, #109, #11, #110, #111, #112, #113, #114, #115, #12, #13, #14, #15, #16, #18, #19, #20, #21, #22, #23, #24, #25, #26, #27, #28, #29, #30, #31, #32, #33, #34, #35, #36, #37, #38, #39, #40, #41, #42, #43, #44, #45, #46, #47, #48, #49, #50, #51, #52, #53, #54, #55, #56, #57, #58, #59, #60, #61, #62, #63, #64, #65, #66, #67, #68, #69, #70, #71, #72, #73, #74, #75, #76, #77, #78, #79, #80, #81, #82, #83, #84, #85, #86, #87, #88, #89, #90, #91, #92, #93, #94, #95, #96, #97, #99, #0 in page-builder-add/assets to your readme.txt
The official readme.txt might help

page-builder-add/page-builder-add.php Passed 13 tests

The entry point to "Landing Page Builder - Lead Page - Optin Page - Squeeze Page - WordPress Landing Pages" version 1.5.1.6 is a PHP file that has certain tags in its header comment area
100 characters long description:
A drag and drop free responsive page builder that simplifies building your landing pages & websites.

Code Analysis Passed 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 plugin76,059 lines of code in 383 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript566,9543,59543,023
PHP1276,5866,16628,763
CSS116853233,631
Sass11486295
JSON17700198
PO File15681149

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity17.02
▷ Minimum class complexity1.00
▷ Maximum class complexity405.00
Average method complexity2.54
▷ Minimum method complexity1.00
▷ Maximum method complexity67.00
Code structure
Namespaces0
Interfaces3
Traits0
Classes56
▷ Abstract classes00.00%
▷ Concrete classes56100.00%
▷ Final classes00.00%
Methods578
▷ Static methods81.38%
▷ Public methods54293.77%
▷ Protected methods305.19%
▷ Private methods61.04%
Functions28
▷ Named functions28100.00%
▷ Anonymous functions00.00%
Constants39
▷ Global constants39100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
220 compressed PNG files occupy 2.16MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/templates/thumbs/template-89.png16.28KB15.71KB▼ 3.48%
images/templates/thumbs/template-35.png18.34KB19.33KB0.00%
images/icons/holiday-icons.png3.86KB3.74KB▼ 3.11%
images/templates/thumbs/template-24.png4.15KB4.23KB0.00%
images/templates/thumbs/template-23.png6.66KB7.09KB0.00%