79% mighty-builder

Code Review | Mighty Builder - Drag & Drop WordPress Page Builder

WordPress plugin Mighty Builder - Drag & Drop WordPress Page Builder scored79%from 54 tests.

About plugin

  • Plugin page: mighty-builder
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.7
  • WordPress version: 6.3.1
  • First release: Jan 27, 2017
  • Latest release: Mar 28, 2017
  • Number of updates: 11
  • Update frequency: every 6.5 days
  • Top authors: mightyplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,283 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.76MB] [CPU: ▲3.31ms] Passed 4 tests

This is a short check of server-side resources used by Mighty Builder - Drag & Drop WordPress Page Builder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.15 ▲0.6941.87 ▼0.32
Dashboard /wp-admin4.17 ▲0.8755.99 ▲7.71
Posts /wp-admin/edit.php4.19 ▲0.8359.93 ▲11.30
Add New Post /wp-admin/post-new.php6.63 ▲0.7488.77 ▼4.00
Media Library /wp-admin/upload.php3.98 ▲0.7642.61 ▲9.83

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 122 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
mighty_builder_ver
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Mighty Builder - Drag & Drop WordPress Page Builder
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,278 ▲54317.70 ▲3.068.49 ▲6.4052.45 ▲2.27
Dashboard /wp-admin2,562 ▲3718.06 ▲2.16158.96 ▲53.0658.84 ▲16.65
Posts /wp-admin/edit.php2,484 ▲3985.41 ▲3.3771.46 ▲30.8748.49 ▲13.40
Add New Post /wp-admin/post-new.php1,727 ▲21324.62 ▲6.98632.85 ▼21.2652.10 ▼1.58
Media Library /wp-admin/upload.php1,617 ▲2295.65 ▲1.4995.54 ▼3.7854.03 ▲12.45

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • mighty_builder_ver

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
The following issues need your attention
  • 19× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/mighty-builder/framework/core/fields/fields_views/readonly.php
    • > /wp-content/plugins/mighty-builder/framework/core/fields/fields_views/password.php
    • > /wp-content/plugins/mighty-builder/framework/core/fields/fields_views/text.php
    • > /wp-content/plugins/mighty-builder/framework/core/fields/fields_views/dimension.php
    • > /wp-content/plugins/mighty-builder/framework/core/fields/fields_views/checkbox_button.php
    • > /wp-content/plugins/mighty-builder/framework/core/fields/fields_views/text_align.php
    • > /wp-content/plugins/mighty-builder/framework/core/fields/fields_views/checkbox.php
    • > /wp-content/plugins/mighty-builder/framework/core/fields/fields_views/select.php
    • > /wp-content/plugins/mighty-builder/framework/core/fields/fields_views/textarea.php
    • > /wp-content/plugins/mighty-builder/framework/core/fields/fields_views/range.php
  • 27× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/mighty-builder/shortcodes/text.php:53
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/mighty-builder/shortcodes/space.php:32
    • > PHP Warning
      require_once(MP_PB_PATH/shortcodes/section.php): failed to open stream: No such file or directory in wp-content/plugins/mighty-builder/shortcodes/shortcodes.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/mighty-builder/shortcodes/progressbar.php:52
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/mighty-builder/shortcodes/accordion.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/mighty-builder/framework/core/fields/fields_views/color.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/mighty-builder/shortcodes/line.php:47
    • > PHP Warning
      Use of undefined constant MP_PB_PATH - assumed 'MP_PB_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/mighty-builder/shortcodes/shortcodes.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/mighty-builder/framework/core/fields/fields_views/color_rgba.php:9
    • > PHP Fatal error
      require_once(): Failed opening required 'MP_PB_PATH/shortcodes/section.php' (include_path='.:/usr/share/php') in wp-content/plugins/mighty-builder/shortcodes/shortcodes.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
4 plugin tags: drag and drop, pagebuilder, page composer, page builder

mighty-builder/mighty-builder.php Passed 13 tests

The main PHP file in "Mighty Builder - Drag & Drop WordPress Page Builder" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
49 characters long description:
Mighty Builder is best page builder for WordPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected30,188 lines of code in 93 files:
LanguageFilesBlank linesComment linesLines of code
CSS1731423413,909
JavaScript162,3552,2128,594
PHP568472294,682
SVG3002,986
Markdown16017

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.66
Average class complexity7.57
▷ Minimum class complexity1.00
▷ Maximum class complexity24.00
Average method complexity2.10
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods42
▷ Static methods1023.81%
▷ Public methods3890.48%
▷ Protected methods00.00%
▷ Private methods49.52%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
framework/assets/images/transparency-grid.png5.24KB4.19KB▼ 20.16%