84% best-bootstrap-widgets-for-elementor

Code Review | best bootstrap widgets for elementor

WordPress plugin best bootstrap widgets for elementor scored84%from 54 tests.

About plugin

  • Plugin page: best-bootstrap-wi...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9.2
  • WordPress version: 6.3.1
  • First release: Apr 7, 2022
  • Latest release: Apr 8, 2022
  • Number of updates: 4
  • Update frequency: every 2.5 days
  • Top authors: salehattari (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /256 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by best bootstrap widgets for elementor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.62 ▼5.75
Dashboard /wp-admin3.32 ▲0.0249.22 ▼3.59
Posts /wp-admin/edit.php3.37 ▲0.0149.59 ▼3.71
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.85 ▼7.45
Media Library /wp-admin/upload.php3.25 ▲0.0137.72 ▼2.78

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

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

Browser metrics Passed 4 tests

Checking browser requirements for best bootstrap widgets for elementor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.40 ▼0.973.48 ▲1.3942.91 ▼0.72
Dashboard /wp-admin2,200 ▲125.76 ▲0.85108.11 ▲3.5739.80 ▼6.03
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0239.62 ▲2.6734.96 ▼2.19
Add New Post /wp-admin/post-new.php1,533 ▲1923.15 ▲5.54676.61 ▲35.1054.18 ▼8.16
Media Library /wp-admin/upload.php1,391 ▲64.18 ▼0.1095.73 ▼6.3445.32 ▲2.84

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 8× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/best-bootstrap-widgets-for-elementor/widgets/card-widget.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/best-bootstrap-widgets-for-elementor/widgets/button-widget.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/best-bootstrap-widgets-for-elementor/widgets/dropdown-widget.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/best-bootstrap-widgets-for-elementor/bootstrap-elementor.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/best-bootstrap-widgets-for-elementor/widgets/badge-widget.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/best-bootstrap-widgets-for-elementor/widgets/alert-widget.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/best-bootstrap-widgets-for-elementor/widgets/modal-widget.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/best-bootstrap-widgets-for-elementor/widgets/accordion-widget.php:2

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 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: bootstrapelementor, elementor, bootstrap

best-bootstrap-widgets-for-elementor/bootstrap-elementor.php 92% from 13 tests

The entry point to "best bootstrap widgets for elementor" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("best-bootstrap-widgets-for-elementor.php" instead of "bootstrap-elementor.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,013 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP8223321,011
CSS1061
JavaScript1061

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.02
Average class complexity1.43
▷ Minimum class complexity1.00
▷ Maximum class complexity2.00
Average method complexity1.06
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods50
▷ Static methods00.00%
▷ Public methods3570.00%
▷ Protected methods1530.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin