88% ultimate-elements-elementor-page-builder

Code Review | Ultimate Elements Elementor Page Builder

WordPress plugin Ultimate Elements Elementor Page Builder scored 88% from 54 tests.

About plugin

  • Plugin page: ultimate-elements...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.1-5.4.1
  • WordPress version: 5.9.2
  • First release: Jan 6, 2018
  • Latest release: May 4, 2020
  • Number of updates: 6
  • Update frequency: every 141.7 days
  • Top authors: nimeshrmr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active / 11,218 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.21MB] [CPU: ▼297.95ms] Passed 4 tests

An overview of server-side resources used by Ultimate Elements Elementor Page Builder
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.82 ▲0.3056.30 ▲1.82
Dashboard /wp-admin3.65 ▲0.2435.71 ▲0.61
Posts /wp-admin/edit.php3.87 ▲0.2341.38 ▼10.74
Add New Post /wp-admin/post-new.php7.11 ▲0.1494.13 ▼1,181.79
Media Library /wp-admin/upload.php3.53 ▲0.2426.48 ▲0.13

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 94 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Ultimate Elements Elementor Page Builder
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,765 ▲4315.91 ▼0.076.01 ▲0.382.20 ▼0.07
Dashboard /wp-admin2,892 ▲316.16 ▼0.10116.52 ▼13.07156.02 ▼2.24
Posts /wp-admin/edit.php2,688 ▼63.23 ▼0.0165.03 ▼1.16140.01 ▼4.15
Add New Post /wp-admin/post-new.php1,661 ▼9116.46 ▼4.88421.24 ▼23.18158.09 ▲3.61
Media Library /wp-admin/upload.php1,698 ▼05.54 ▲0.03137.62 ▲7.09185.54 ▼9.87

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/ultimate-elements-elementor-page-builder/templates/slider-default-templates/image-gallery-default.php
    • > /wp-content/plugins/ultimate-elements-elementor-page-builder/templates/slider-default-templates/slider-init-default.php
    • > /wp-content/plugins/ultimate-elements-elementor-page-builder/templates/slider-default-templates/image-slider-default.php
  • 43× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Undefined variable: thumbnail_back_color in wp-content/plugins/ultimate-elements-elementor-page-builder/templates/slider-default-templates/image-gallery-default.php on line 42
    • > PHP Notice
      Undefined variable: id_int in wp-content/plugins/ultimate-elements-elementor-page-builder/templates/slider-default-templates/image-gallery-default.php on line 12
    • > PHP Notice
      Undefined variable: id_int in wp-content/plugins/ultimate-elements-elementor-page-builder/templates/slider-default-templates/slider-init-default.php on line 48
    • > PHP Notice
      Undefined variable: transition_effect in wp-content/plugins/ultimate-elements-elementor-page-builder/templates/slider-default-templates/slider-init-default.php on line 9
    • > PHP Notice
      Undefined variable: id_int in wp-content/plugins/ultimate-elements-elementor-page-builder/templates/slider-default-templates/image-slider-default.php on line 7
    • > PHP Warning
      extract() expects parameter 1 to be array, null given in wp-content/plugins/ultimate-elements-elementor-page-builder/templates/slider-default-templates/image-slider-default.php on line 3
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/ultimate-elements-elementor-page-builder/templates/slider-default-templates/image-slider-default.php on line 10
    • > PHP Notice
      Undefined variable: id_int in wp-content/plugins/ultimate-elements-elementor-page-builder/templates/slider-default-templates/slider-init-default.php on line 17
    • > PHP Notice
      Undefined variable: additional_options in wp-content/plugins/ultimate-elements-elementor-page-builder/templates/slider-default-templates/slider-init-default.php on line 27
    • > PHP Notice
      Undefined variable: id_int in wp-content/plugins/ultimate-elements-elementor-page-builder/templates/slider-default-templates/slider-init-default.php on line 31

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 errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #5 (**Navigation Menu Element in Page Builder**), #6 (**Private Content Element in Page Builder**), #7 (**Forms Elements in Page Builder**), #8 (**Ninja Forms Element in Page Builder**)
  • Tags: There are too many tags (11 tag instead of maximum 10)
You can look at the official readme.txt

ultimate-elements-elementor-page-builder/ultimate-elements-elementor-page-builder.php Passed 13 tests

"Ultimate Elements Elementor Page Builder" version 2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
65 characters long description:
Wide range of UI and feature elements for Elementor page builder.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin10,988 lines of code in 61 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript115381715,118
PHP401,086854,537
CSS918272919
Markdown13260414

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity9.71
▷ Minimum class complexity1.00
▷ Maximum class complexity63.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes31
▷ Abstract classes00.00%
▷ Concrete classes31100.00%
▷ Final classes00.00%
Methods189
▷ Static methods10.53%
▷ Public methods14878.31%
▷ Protected methods4121.69%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
26 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/arrows/a18.png3.21KB1.88KB▼ 41.38%
images/slider-edit.png0.70KB0.52KB▼ 25.00%
images/arrows/a04.png4.89KB3.20KB▼ 34.60%
images/arrows/a03.png5.54KB3.44KB▼ 37.80%
images/arrows/a09.png0.54KB0.28KB▼ 49.01%