84% bosa-elementor-for-woocommerce

Code Review | Bosa Elementor Addons and Templates for WooCommerce

WordPress plugin Bosa Elementor Addons and Templates for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: bosa-elementor-fo...
  • Plugin version: 1.0.12
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: May 21, 2022
  • Latest release: Oct 16, 2023
  • Number of updates: 22
  • Update frequency: every 23.4 days
  • Top authors: bosathemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10,000+ active /98,731 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.26ms] Passed 4 tests

A check of server-side resources used by Bosa Elementor Addons and Templates for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0435.86 ▼1.81
Dashboard /wp-admin3.35 ▲0.0444.68 ▼2.85
Posts /wp-admin/edit.php3.40 ▲0.0449.73 ▲1.53
Add New Post /wp-admin/post-new.php5.93 ▲0.0482.77 ▼9.89
Media Library /wp-admin/upload.php3.27 ▲0.0435.91 ▲2.68

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 86 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bosa Elementor Addons and Templates for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲6514.35 ▲0.001.71 ▲0.1036.12 ▼5.47
Dashboard /wp-admin2,217 ▲435.52 ▼0.0980.68 ▼8.3840.89 ▼1.98
Posts /wp-admin/edit.php2,122 ▲192.09 ▲0.1239.93 ▼3.5036.30 ▼1.51
Add New Post /wp-admin/post-new.php1,548 ▲2022.99 ▼0.35633.19 ▼62.3251.70 ▼3.94
Media Library /wp-admin/upload.php1,422 ▲254.17 ▼0.05111.61 ▲11.5449.00 ▲4.06

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 11× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\BEW_Settings' not found in wp-content/plugins/bosa-elementor-for-woocommerce/widgets/bew-elements-products.php:5
    • > PHP Warning
      Use of undefined constant BEW_URL - assumed 'BEW_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/bosa-elementor-for-woocommerce/includes/bew-template-list.php on line 7
    • > PHP Warning
      Use of undefined constant BEW_URL - assumed 'BEW_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/bosa-elementor-for-woocommerce/includes/bew-importer.php on line 18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/bosa-elementor-for-woocommerce/includes/bew-importer.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\BEW_Settings' not found in wp-content/plugins/bosa-elementor-for-woocommerce/widgets/bew-elements-blog.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/bosa-elementor-for-woocommerce/includes/bew-common.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\BEW_Settings' not found in wp-content/plugins/bosa-elementor-for-woocommerce/widgets/bew-elements-categories.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\BEW_Settings' not found in wp-content/plugins/bosa-elementor-for-woocommerce/widgets/bew-elements-carousel-products.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/bosa-elementor-for-woocommerce/includes/bew-template.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\BEW_Settings' not found in wp-content/plugins/bosa-elementor-for-woocommerce/widgets/bew-elements-contact-form-7.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: elementor, woocommerce, elementor widgets for woocommerce, elementor addons, elementor templates for woocommerce...

bosa-elementor-for-woocommerce/bosa-elementor-for-woocommerce.php 85% from 13 tests

The main PHP script in "Bosa Elementor Addons and Templates for WooCommerce" version 1.0.12 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 251 characters long)
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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
Everything looks great! No dangerous files found in this plugin7,043 lines of code in 51 files:
LanguageFilesBlank linesComment linesLines of code
PHP109102015,850
CSS523321,022
JavaScript32216138
JSON330033

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.24
Average class complexity36.00
▷ Minimum class complexity3.00
▷ Maximum class complexity68.00
Average method complexity4.18
▷ Minimum method complexity1.00
▷ Maximum method complexity68.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes8
▷ Abstract classes112.50%
▷ Concrete classes787.50%
▷ Final classes00.00%
Methods88
▷ Static methods33.41%
▷ Public methods7686.36%
▷ Protected methods1213.64%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants5
▷ Global constants5100.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
No PNG files were detected