78% jetwoo-widgets-for-elementor

Code Review | JetWidgets for Elementor and WooCommerce

WordPress plugin JetWidgets for Elementor and WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: jetwoo-widgets-fo...
  • Plugin version: 1.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Aug 3, 2018
  • Latest release: Aug 24, 2023
  • Number of updates: 13
  • Update frequency: every 142.2 days
  • Top authors: crocoblock (61.54%)jetmonsters (46.15%)

Code review

54 tests

User reviews

7 reviews

Install metrics

10,000+ active /97,950 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.38MB] [CPU: ▼3.38ms] Passed 4 tests

A check of server-side resources used by JetWidgets for Elementor and WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0937.65 ▼2.58
Dashboard /wp-admin3.83 ▲0.5251.40 ▲7.86
Posts /wp-admin/edit.php3.88 ▲0.5250.24 ▲1.24
Add New Post /wp-admin/post-new.php6.35 ▲0.4683.29 ▼14.33
Media Library /wp-admin/upload.php3.69 ▲0.4637.42 ▲2.14
Install Plugins /wp-admin/plugins.php?page=jet-woo-widgets-install-plugins3.7634.25

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 137 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for JetWidgets for Elementor and WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲8913.22 ▼1.374.95 ▲2.9340.69 ▼2.15
Dashboard /wp-admin2,238 ▲475.82 ▼0.08101.29 ▼0.1743.27 ▼0.24
Posts /wp-admin/edit.php2,132 ▲402.05 ▲0.0242.14 ▼0.3240.97 ▲4.50
Add New Post /wp-admin/post-new.php1,569 ▲4918.12 ▼5.05611.95 ▼73.7548.03 ▼12.79
Media Library /wp-admin/upload.php1,434 ▲524.30 ▲0.0897.38 ▼5.4444.56 ▲2.21
Install Plugins /wp-admin/plugins.php?page=jet-woo-widgets-install-plugins9902.0826.1932.33

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/jetwoo-widgets-for-elementor/templates/jet-woo-widgets-products/global/loop-end.php
    • > /wp-content/plugins/jetwoo-widgets-for-elementor/templates/jet-woo-widgets-categories/global/loop-end.php
    • > /wp-content/plugins/jetwoo-widgets-for-elementor/templates/jet-woo-widgets-products-list/global/loop-end.php
  • 42× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: category in wp-content/plugins/jetwoo-widgets-for-elementor/templates/jet-woo-widgets-categories/global/item-count.php on line 6
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/jetwoo-widgets-for-elementor/templates/jet-woo-widgets-products/global/presets/preset-4.php:6
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/jetwoo-widgets-for-elementor/templates/jet-woo-widgets-categories/global/loop-start.php:8
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/jetwoo-widgets-for-elementor/templates/jet-woo-widgets-products-list/global/loop-start.php:10
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/jetwoo-widgets-for-elementor/templates/jet-woo-widgets-products-list/global/loop-item.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function jet_woo_widgets_settings() in wp-content/plugins/jetwoo-widgets-for-elementor/templates/jet-woo-widgets-products/global/loop-item.php:7
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/jetwoo-widgets-for-elementor/templates/jet-woo-widgets-categories/global/presets/preset-1.php:8
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/jetwoo-widgets-for-elementor/templates/jet-woo-widgets-categories/global/presets/preset-4.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/jetwoo-widgets-for-elementor/includes/lib/class-tgm-plugin-activation.php:2109
    • > PHP Fatal error
      Uncaught Error: Class 'Jet_Woo_Widgets_Shortcode_Base' not found in wp-content/plugins/jetwoo-widgets-for-elementor/includes/shortcodes/jet-woo-widgets-products-shortcode.php:6

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

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 17 tag instead of maximum 10
Please take inspiration from this readme.txt

jetwoo-widgets-for-elementor/jetwoo-widgets-for-elementor.php Passed 13 tests

Analyzing the main PHP file in "JetWidgets for Elementor and WooCommerce" version 1.1.6
62 characters long description:
Set of modules for WooCommerce based on Elementor Page Builder

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin17,619 lines of code in 126 files:
LanguageFilesBlank linesComment linesLines of code
PHP842,3803,72112,402
Sass2831132,908
JavaScript73621542,078
SVG200121
CSS592110

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity19.12
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity2.97
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes41
▷ Abstract classes37.32%
▷ Concrete classes3892.68%
▷ Final classes00.00%
Methods379
▷ Static methods164.22%
▷ Public methods30379.95%
▷ Protected methods7118.73%
▷ Private methods51.32%
Functions11
▷ Named functions1090.91%
▷ Anonymous functions19.09%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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
1 PNG file occupies 0.13MB with 0.09MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/banner.png132.17KB43.69KB▼ 66.94%