66% wp-page-builder

Code Review | Landera - Ultimate Page Builder

WordPress plugin Landera - Ultimate Page Builder scored66%from 54 tests.

About plugin

  • Plugin page: wp-page-builder
  • Plugin version: 2.2
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.9.6
  • WordPress version: 6.3.1
  • First release: Jun 22, 2018
  • Latest release: Feb 26, 2020
  • Number of updates: 7
  • Update frequency: every 88.2 days
  • Top authors: softdiscover (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,010 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.77MB] [CPU: ▼3.58ms] Passed 4 tests

An overview of server-side resources used by Landera - Ultimate Page Builder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.93 ▲0.4743.81 ▲2.22
Dashboard /wp-admin4.17 ▲0.8353.66 ▼4.02
Posts /wp-admin/edit.php4.29 ▲0.9350.39 ▲3.20
Add New Post /wp-admin/post-new.php6.82 ▲0.9486.05 ▼15.71
Media Library /wp-admin/upload.php4.09 ▲0.8741.91 ▲9.03
About /wp-admin/admin.php?page=zigapage-builder-about4.1042.52
Overview /wp-admin/admin.php?page=zgpb_page_builder4.1243.91
Go Pro! /wp-admin/admin.php?page=zigapage-builder-gopro4.1053.35
Help /wp-admin/admin.php?page=zigapage-builder-help4.0941.08
Font Menu /wp-admin/admin.php?page=styles-font-menu4.3134.45

Server storage [IO: ▲13.99MB] [DB: ▲0.36MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 1,143 new files
Database: no new tables, 13 new options
New WordPress options
zigapage_enable_post
zigapage_enable_page
widget_theysaidso_widget
zigapage_f_notice_1
recovery_mode_email_last_sent
zigapage_lang
widget_recent-comments
can_compress_scripts
widget_recent-posts
zigapage_version
...

Browser metrics Passed 4 tests

A check of browser resources used by Landera - Ultimate Page Builder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,857 ▲11113.34 ▼1.032.24 ▲0.5442.61 ▼0.73
Dashboard /wp-admin2,254 ▲664.95 ▼0.9699.97 ▼0.4564.48 ▲19.39
Posts /wp-admin/edit.php2,160 ▲712.21 ▲0.2340.16 ▲5.3736.90 ▲2.59
Add New Post /wp-admin/post-new.php1,679 ▲14624.35 ▲5.99784.65 ▲164.8337.74 ▼22.25
Media Library /wp-admin/upload.php1,448 ▲574.28 ▲0.02106.58 ▲4.8779.79 ▲33.93
About /wp-admin/admin.php?page=zigapage-builder-about1,8584.5381.90116.56
Overview /wp-admin/admin.php?page=zgpb_page_builder1,74510.34280.52117.20
Go Pro! /wp-admin/admin.php?page=zigapage-builder-gopro1,3043.8451.2688.27
Help /wp-admin/admin.php?page=zigapage-builder-help1,1623.8651.4788.35
Font Menu /wp-admin/admin.php?page=styles-font-menu3,3981.9374.0724.39

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 13 options in the database
    • zigapage_enable_page
    • theysaidso_admin_options
    • recovery_mode_email_last_sent
    • zigapage_f_notice_1
    • zigapage_lang
    • zgpb_b_activated
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • ...

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=styles-font-menu
    • > Deprecated in wp-content/plugins/wp-page-builder/helpers/styles-font-menu/classes/markdown/markdown.php+1572
    Array and string offset access syntax with curly braces is deprecated
    • > GET request to /wp-admin/admin.php?page=styles-font-menu
    • > Deprecated in wp-content/plugins/wp-page-builder/helpers/styles-font-menu/classes/markdown/markdown.php+190
    Methods with the same name as their class will not be constructors in a future version of PHP; Markdown_Parser has a deprecated constructor
    • > GET request to /wp-admin/admin.php?page=styles-font-menu
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/admin.php?page=styles-font-menu
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/admin.php?page=styles-font-menu
    • > Warning in wp-content/plugins/wp-page-builder/helpers/styles-font-menu/classes/markdown/markdown.php+58
    Use of undefined constant MARKDOWN_PARSER_CLASS - assumed 'MARKDOWN_PARSER_CLASS' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/admin.php?page=styles-font-menu
    • > Error in wp-content/plugins/wp-page-builder/helpers/styles-font-menu/classes/markdown/markdown.php+59
    Uncaught Error: Class 'MARKDOWN_PARSER_CLASS' not found in wp-content/plugins/wp-page-builder/helpers/styles-font-menu/classes/markdown/markdown.php:59
    Stack trace:
    #0 wp-content/plugins/wp-page-builder/helpers/styles-font-menu/views/readme.php(11): Markdown()
    #1 wp-content/plugins/wp-page-builder/helpers/styles-font-menu/classes/sfm-plugin.php(238): include('/var/www/wordpr...')
    #2 wp-content/plugins/wp-page-builder/helpers/styles-font-menu/classes/sfm-admin.php(57): SFM_Plugin->get_view()
    #3 wp-includes/class-wp-hook.php(310): SFM_Admin->get_view_readme()
    #4 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #5 wp-includes/plugin.php(517): WP_Hook->do_action()
    #6 wp-admin/admin.php(259): do_action()
    #7 {main}
    thrown

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
Please take a closer look at the following
  • 94× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/wp-page-builder/modules/tools/views/backend/importimg_showurlmod.php
    • > /wp-content/plugins/wp-page-builder/modules/optbuilder/views/fields/parsehtml_button.php
    • > /wp-content/plugins/wp-page-builder/modules/tools/views/backend/importimg_modal.php
    • > /wp-content/plugins/wp-page-builder/modules/optbuilder/views/fields/parsehtml_numeric.php
    • > /wp-content/plugins/wp-page-builder/modules/pagebuilder/views/fields/templates/prevpanel_texteditor.php
    • > /wp-content/plugins/wp-page-builder/classes/Pagination.php
    • > /wp-content/plugins/wp-page-builder/modules/optbuilder/views/fields/parsehtml_multiselect.php
    • > /wp-content/plugins/wp-page-builder/classes/zigapage-notice.php
    • > /wp-content/plugins/wp-page-builder/modules/pagebuilder/views/backend/switchbutton_render.php
    • > /wp-content/plugins/wp-page-builder/modules/pagebuilder/views/fields/posthtml_gridsystem_css.php
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/wp-page-builder/helpers/styles-font-menu/views/readme.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-page-builder/modules/tools/options/backend/importimages.php:5
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-page-builder/views/requirements-error.php:7

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=zigapage-builder-about
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=zigapage-builder-about - Access to XMLHttpRequest at 'https://l.sharethis.com/pview?event=pview&version=buttons.js&lang=en&sessionID=1696945904215.94108&hostname=wp.com&location=%2Fwp-admin%2Fadmin.php&product=widget&fcmp=false&fcmpv2=false&publisher=ur.00000000-0000-0000-0000-000000000000&url=http%3A%2F%2Fwp.com%2Fwp-admin%2Fadmin.php%3Fpage%3Dzigapage-builder-about&title=About%20%E2%80%B9%20Potrivit%20%E2%80%94%20WordPress&sop=false' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
    • > GET request to /wp-admin/admin.php?page=zigapage-builder-about
    • > Network (severe)
    https://l.sharethis.com/pview?event=pview&version=buttons.js&lang=en&sessionID=1696945904215.94108&hostname=wp.com&location=%2Fwp-admin%2Fadmin.php&product=widget&fcmp=false&fcmpv2=false&publisher=ur.00000000-0000-0000-0000-000000000000&url=http%3A%2F%2Fwp.com%2Fwp-admin%2Fadmin.php%3Fpage%3Dzigapage-builder-about&title=About%20%E2%80%B9%20Potrivit%20%E2%80%94%20WordPress&sop=false - Failed to load resource: net::ERR_FAILED

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
You can look at the official readme.txt

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

The primary PHP file in "Landera - Ultimate Page Builder" version 2.2 is used by WordPress to initiate all plugin functionality
68 characters long description:
Landera - Wordpress Page Builder makes you build pages in few steps.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin149,390 lines of code in 304 files:
LanguageFilesBlank linesComment linesLines of code
CSS782,97077173,997
JavaScript768,92411,68850,767
PHP972,6123,17813,299
SVG6004,304
PO File71,33002,753
Sass1434341,768
LESS1434441,758
HTML91220683
Markdown143059
JSON2002

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity25.84
▷ Minimum class complexity1.00
▷ Maximum class complexity151.00
Average method complexity2.84
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes25
▷ Abstract classes28.00%
▷ Concrete classes2392.00%
▷ Final classes14.35%
Methods344
▷ Static methods4111.92%
▷ Public methods31190.41%
▷ Protected methods288.14%
▷ Private methods51.45%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants32
▷ Global constants2165.62%
▷ Class constants1134.38%
▷ Public constants11100.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
745 PNG files occupy 1.70MB with 0.75MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
helpers/styles-font-menu/styles-fonts/png/opensans-regular.png2.02KB0.92KB▼ 54.42%
helpers/styles-font-menu/styles-fonts/png/cousine-regular.png1.66KB0.77KB▼ 53.76%
helpers/styles-font-menu/styles-fonts/png/rokkitt-regular.png1.22KB0.57KB▼ 53.49%
helpers/styles-font-menu/styles-fonts/png/carme-regular.png1.27KB0.59KB▼ 53.60%
assets/common/css/jqueryui/1.11.4/themes/start/images/ui-icons_f7a50d_256x240.png4.44KB4.17KB▼ 6.02%