10% include-bootstrap-elementor-components

Code Review | Elementor Bootstrap Components and Blog Posts Widgets

WordPress plugin Elementor Bootstrap Components and Blog Posts Widgets scored10%from 54 tests.

About plugin

  • Plugin page: include-bootstrap...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.5
  • WordPress version: 6.3.1
  • First release: Aug 6, 2020
  • Latest release: Aug 18, 2020
  • Number of updates: 9
  • Update frequency: every 1.4 days
  • Top authors: motahar1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,513 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/include-bootstrap-elementor-components/include-bootstrap-components-for-elementor.php+21
    require_once(wp-content/plugins/include-bootstrap-elementor-components/inc/functions.php): failed to open stream: No such file or directory

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.77ms] Passed 4 tests

An overview of server-side resources used by Elementor Bootstrap Components and Blog Posts Widgets
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.69 ▼4.12
Dashboard /wp-admin3.31 ▲0.0047.35 ▼1.17
Posts /wp-admin/edit.php3.36 ▲0.0050.85 ▲1.35
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.02 ▼7.12
Media Library /wp-admin/upload.php3.23 ▲0.0035.55 ▲1.78

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 181 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Elementor Bootstrap Components and Blog Posts Widgets
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.57 ▼0.741.66 ▼0.2837.60 ▼13.52
Dashboard /wp-admin2,206 ▲184.84 ▼1.01109.03 ▼8.2736.81 ▼10.86
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0136.19 ▲2.2534.30 ▼1.68
Add New Post /wp-admin/post-new.php1,514 ▼2017.59 ▼5.46662.71 ▼2.9853.91 ▼4.41
Media Library /wp-admin/upload.php1,382 ▼34.22 ▼0.0797.49 ▼1.9441.39 ▼2.54

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Almost there! Just fix the following items
  • 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/include-bootstrap-elementor-components/template-parts/blogfliprotate/two-column.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/include-bootstrap-elementor-components/template-parts/blogframeanimate/four-column.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/include-bootstrap-elementor-components/template-parts/blogfliprotate/three-column.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/include-bootstrap-elementor-components/template-parts/blog-slider.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/include-bootstrap-elementor-components/template-parts/blogcarousel/three-column.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/include-bootstrap-elementor-components/template-parts/blogfliprotate/four-column.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/include-bootstrap-elementor-components/template-parts/three-column.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/include-bootstrap-elementor-components/template-parts/blogframeanimate/three-column.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/include-bootstrap-elementor-components/template-parts/blogaccordion/content.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/include-bootstrap-elementor-components/template-parts/blogtextoverley/three-column.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 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: elementor addons, widgets, elementor bootstrap, elementor

include-bootstrap-elementor-components/include-bootstrap-components-for-elementor.php 77% from 13 tests

This is the main PHP file of "Elementor Bootstrap Components and Blog Posts Widgets" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • 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
  • Main file name: The principal plugin file should be the same as the plugin slug ("include-bootstrap-elementor-components.php" instead of "include-bootstrap-components-for-elementor.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 161 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin31,678 lines of code in 163 files:
LanguageFilesBlank linesComment linesLines of code
CSS42,377238,913
PHP351,5941,3218,879
JavaScript321,9059107,581
Sass921,4701,1476,305

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity3.71
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity1.43
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes21
▷ Abstract classes00.00%
▷ Concrete classes21100.00%
▷ Final classes00.00%
Methods132
▷ Static methods00.00%
▷ Public methods9068.18%
▷ Protected methods4231.82%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants233.33%
▷ Class constants466.67%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected