78% ultimate-bootstrap-elements-for-elementor

Code Review | Ultimate Bootstrap Elements for Elementor

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

About plugin

  • Plugin page: ultimate-bootstra...
  • Plugin version: 1.3.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2.2
  • WordPress version: 6.3.1
  • First release: Jul 10, 2021
  • Latest release: Sep 13, 2023
  • Number of updates: 94
  • Update frequency: every 8.5 days
  • Top authors: g5theme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

5,000+ active /50,869 total downloads

Benchmarks

Plugin footprint 83% from 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 successfully, without throwing any errors or notices

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

A check of server-side resources used by Ultimate Bootstrap Elements for Elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0138.44 ▼5.22
Dashboard /wp-admin3.31 ▲0.0145.72 ▼5.68
Posts /wp-admin/edit.php3.36 ▲0.0148.71 ▲2.84
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.53 ▼6.94
Media Library /wp-admin/upload.php3.23 ▲0.0136.19 ▲2.94

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 497 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ultimate Bootstrap Elements for Elementor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8114.47 ▲0.081.79 ▼0.0544.94 ▼5.64
Dashboard /wp-admin2,219 ▲315.82 ▲0.7698.61 ▼24.2338.82 ▼9.76
Posts /wp-admin/edit.php2,107 ▲182.05 ▲0.0234.11 ▼1.2032.32 ▼3.65
Add New Post /wp-admin/post-new.php1,548 ▲2023.02 ▼0.37646.11 ▼52.7251.35 ▼11.37
Media Library /wp-admin/upload.php1,407 ▲194.19 ▼0.0097.22 ▼6.7142.57 ▲0.58

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

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
Good news, no errors were detected

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
  • 35× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/ultimate-bootstrap-elements-for-elementor/templates/elements-view/double-button.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/timeline.php
    • > /wp-content/plugins/ultimate-bootstrap-elements-for-elementor/templates/elements-view/list-icon.php
    • > /wp-content/plugins/ultimate-bootstrap-elements-for-elementor/inc/abstracts/element-slider-abstract.class.php
    • > /wp-content/plugins/ultimate-bootstrap-elements-for-elementor/templates/elements-view/flip-box.php
    • > /wp-content/plugins/ultimate-bootstrap-elements-for-elementor/templates/elements-view/alert.php
    • > /wp-content/plugins/ultimate-bootstrap-elements-for-elementor/inc/elements/advanced-icon-box.class.php
    • > /wp-content/plugins/ultimate-bootstrap-elements-for-elementor/templates/elements-view/image-marker.php
    • > /wp-content/plugins/ultimate-bootstrap-elements-for-elementor/templates/elements-view/dual-heading.php
  • 84× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Warning
      http_build_query() expects parameter 1 to be array, null given in wp-content/plugins/ultimate-bootstrap-elements-for-elementor/templates/post/pagination/pagination.php on line 10
    • > PHP Notice
      Undefined variable: image_html in wp-content/plugins/ultimate-bootstrap-elements-for-elementor/templates/elements/testimonial/layout-06.php on line 12
    • > PHP Notice
      Undefined variable: element in wp-content/plugins/ultimate-bootstrap-elements-for-elementor/templates/elements/pricing-table/style-4.php on line 10
    • > 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 undefined function esc_attr_e() in wp-content/plugins/ultimate-bootstrap-elements-for-elementor/templates/elements-view/image.php:51
    • > PHP Fatal error
      Uncaught Error: Call to a member function add_render_attribute() on null in wp-content/plugins/ultimate-bootstrap-elements-for-elementor/templates/elements/team-member/style-03.php:13
    • > 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 Warning
      http_build_query() expects parameter 1 to be array, null given in wp-content/plugins/ultimate-bootstrap-elements-for-elementor/templates/post/pagination/pagination.php on line 11
    • > 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 print_render_attribute_string() on null in wp-content/plugins/ultimate-bootstrap-elements-for-elementor/templates/elements/testimonial/layout-04.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: elementor widget, element, elementor, elementor addons

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

The main file in "Ultimate Bootstrap Elements for Elementor" v. 1.3.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ultimate-bootstrap-elements-for-elementor.php" instead of "ultimate-bootstrap-elements.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin163,020 lines of code in 459 files:
LanguageFilesBlank linesComment linesLines of code
PHP2407,3561,87865,719
JavaScript934,4082,60531,162
SVG2501630,177
CSS334,35221825,257
Sass671,76814010,697
Ruby1208

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity8.11
▷ Minimum class complexity1.00
▷ Maximum class complexity82.00
Average method complexity1.65
▷ 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%
Functions81
▷ Named functions8098.77%
▷ Anonymous functions11.23%
Constants14
▷ Global constants750.00%
▷ Class constants750.00%
▷ Public constants7100.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
8 PNG files occupy 0.27MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/dukaken-logo.png2.16KB2.10KB▼ 2.89%
assets/images/ube-logo.png3.25KB2.23KB▼ 31.30%
assets/images/furnitor-logo.png3.98KB2.44KB▼ 38.67%
assets/images/ube-preview.png244.48KB133.79KB▼ 45.27%
assets/images/lustria-logo.png4.80KB2.40KB▼ 49.95%