88% ultimate-bootstrap-elements-for-elementor

Code Review | Ultimate Bootstrap Elements for Elementor

WordPress plugin Ultimate Bootstrap Elements for Elementor scored 88% from 54 tests.

About plugin

  • Plugin page: ultimate-bootstra...
  • Plugin version: 1.1.16
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 5.9.2
  • First release: Jul 10, 2021
  • Latest release: Mar 29, 2022
  • Number of updates: 53
  • Update frequency: every 4.9 days
  • Top authors: g5theme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active / 8,772 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼309.22ms] Passed 4 tests

This is a short check of server-side resources used by Ultimate Bootstrap Elements for Elementor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0269.75 ▼11.69
Dashboard /wp-admin3.42 ▲0.0140.21 ▼6.35
Posts /wp-admin/edit.php3.66 ▲0.0142.32 ▼17.25
Add New Post /wp-admin/post-new.php6.89 ▼0.08114.20 ▼1,201.60
Media Library /wp-admin/upload.php3.31 ▲0.0132.39 ▼1.87

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Ultimate Bootstrap Elements for Elementor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,846 ▲9216.34 ▲0.817.44 ▼3.773.25 ▼2.48
Dashboard /wp-admin2,971 ▲556.37 ▼0.06188.95 ▼57.09198.07 ▼14.03
Posts /wp-admin/edit.php2,738 ▲173.43 ▼0.0083.09 ▼15.67182.20 ▼17.25
Add New Post /wp-admin/post-new.php1,623 ▼3921.71 ▲4.97667.67 ▲38.22227.53 ▲17.53
Media Library /wp-admin/upload.php1,747 ▲175.72 ▼0.01205.55 ▲6.98252.48 ▲23.48

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
The plugin uninstalled completely, with no zombie files or tables

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
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
Please take a closer look at the following
  • 35× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/ultimate-bootstrap-elements-for-elementor/inc/elements/instagram.class.php
    • > /wp-content/plugins/ultimate-bootstrap-elements-for-elementor/templates/elements-view/business-hours.php
    • > /wp-content/plugins/ultimate-bootstrap-elements-for-elementor/templates/elements-view/timeline.php
    • > /wp-content/plugins/ultimate-bootstrap-elements-for-elementor/templates/elements-view/client-logo.php
    • > /wp-content/plugins/ultimate-bootstrap-elements-for-elementor/templates/elements/team-member/social.php
    • > /wp-content/plugins/ultimate-bootstrap-elements-for-elementor/templates/elements-view/progress.php
    • > /wp-content/plugins/ultimate-bootstrap-elements-for-elementor/inc/elements/advanced-image-box.class.php
    • > /wp-content/plugins/ultimate-bootstrap-elements-for-elementor/templates/elements-view/image-box.php
    • > /wp-content/plugins/ultimate-bootstrap-elements-for-elementor/templates/elements-view/button.php
    • > /wp-content/plugins/ultimate-bootstrap-elements-for-elementor/templates/elements-view/divider.php
  • 82× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/ultimate-bootstrap-elements-for-elementor/templates/post/pagination/pagination.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to a member function render_pricing() on null in wp-content/plugins/ultimate-bootstrap-elements-for-elementor/templates/elements/pricing-table/style-4.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function has_post_thumbnail() in wp-content/plugins/ultimate-bootstrap-elements-for-elementor/templates/post/post-list/post-list-layout-03.php:9
    • > PHP Notice
      Undefined variable: element in wp-content/plugins/ultimate-bootstrap-elements-for-elementor/templates/elements/team-member/style-02.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ultimate-bootstrap-elements-for-elementor/templates/elements/pricing-table/style-2.php:27
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/ultimate-bootstrap-elements-for-elementor/templates/post/post-list/post-metro-layout-01.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_render_attribute_string() on null in wp-content/plugins/ultimate-bootstrap-elements-for-elementor/templates/elements/testimonial/layout-03.php:18
    • > PHP Notice
      Undefined variable: element in wp-content/plugins/ultimate-bootstrap-elements-for-elementor/templates/elements/testimonial/layout-01.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ultimate-bootstrap-elements-for-elementor/templates/elements/pricing-table/style-3.php:33
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/ultimate-bootstrap-elements-for-elementor/templates/elements/pricing-table/style-3.php on line 32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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 undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: elementor addons, elementor, element, elementor widget

ultimate-bootstrap-elements-for-elementor/ultimate-bootstrap-elements.php 85% from 13 tests

"Ultimate Bootstrap Elements for Elementor" version 1.1.16's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ultimate-bootstrap-elements-for-elementor.php" instead of "ultimate-bootstrap-elements.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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin162,438 lines of code in 459 files:
LanguageFilesBlank linesComment linesLines of code
PHP2407,1881,86365,201
JavaScript934,4012,60531,131
SVG2501630,177
CSS334,35221825,240
Sass671,76914010,681
Ruby1208

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity7.86
▷ Minimum class complexity1.00
▷ Maximum class complexity82.00
Average method complexity1.63
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes94
▷ Abstract classes44.26%
▷ Concrete classes9095.74%
▷ Final classes11.11%
Methods1,032
▷ Static methods201.94%
▷ Public methods63361.34%
▷ Protected methods27927.03%
▷ Private methods12011.63%
Functions79
▷ Named functions79100.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants750.00%
▷ Class constants750.00%
▷ Public constants7100.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
8 PNG files occupy 0.27MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/ube-preview.png244.48KB133.79KB▼ 45.27%
assets/images/lustria-logo.png4.80KB2.40KB▼ 49.95%
assets/images/homeid-logo.png7.85KB3.43KB▼ 56.37%
assets/images/glowing-logo.png3.51KB2.16KB▼ 38.42%
assets/images/cupid-logo.png7.07KB4.23KB▼ 40.13%