78% jetwidgets-for-elementor

Code Review | JetWidgets For Elementor

WordPress plugin JetWidgets For Elementor scored 78% from 54 tests.

About plugin

  • Plugin page: jetwidgets-for-el...
  • Plugin version: 1.0.15
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Aug 1, 2018
  • Latest release: Aug 15, 2023
  • Number of updates: 25
  • Update frequency: every 73.6 days
  • Top authors: crocoblock (64%)jetmonsters (40%)

Code review

54 tests

User reviews

6 reviews

Install metrics

10,000+ active / 138,196 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▲0.59ms] Passed 4 tests

Server-side resources used by JetWidgets For Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1839.87 ▼4.89
Dashboard /wp-admin3.56 ▲0.2647.17 ▼3.63
Posts /wp-admin/edit.php3.61 ▲0.2552.27 ▲9.09
Add New Post /wp-admin/post-new.php6.10 ▲0.21103.41 ▲11.43
Media Library /wp-admin/upload.php3.42 ▲0.1936.70 ▲1.79
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins3.4931.99
JetWidgets Settings /wp-admin/admin.php?page=jet-widgets-settings3.6147.43

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

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

Browser metrics Passed 4 tests

Checking browser requirements for JetWidgets For Elementor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,943 ▲18613.56 ▼0.708.56 ▲6.5239.78 ▼5.65
Dashboard /wp-admin2,249 ▲585.85 ▼0.0399.78 ▼2.4442.60 ▼5.05
Posts /wp-admin/edit.php2,143 ▲542.11 ▲0.1140.91 ▲5.4941.74 ▲6.92
Add New Post /wp-admin/post-new.php1,549 ▲3517.63 ▲0.17584.61 ▼87.5250.88 ▼10.24
Media Library /wp-admin/upload.php1,442 ▲514.24 ▲0.0595.44 ▼17.2546.29 ▼3.60
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins9772.2226.8731.05
JetWidgets Settings /wp-admin/admin.php?page=jet-widgets-settings1,5383.7954.7898.33

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
Please fix the following
  • 8× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/jetwidgets-for-elementor/templates/jw-carousel/global/simple/items-loop-end.php
    • > /wp-content/plugins/jetwidgets-for-elementor/templates/jw-pricing-table/global/features-loop-end.php
    • > /wp-content/plugins/jetwidgets-for-elementor/templates/jw-images-layout/global/images-layout-loop-end.php
    • > /wp-content/plugins/jetwidgets-for-elementor/templates/jw-pricing-table/global/features-loop-start.php
    • > /wp-content/plugins/jetwidgets-for-elementor/templates/jw-posts/global/loop-end.php
    • > /wp-content/plugins/jetwidgets-for-elementor/templates/jw-carousel/global/banners/items-loop-end.php
    • > /wp-content/plugins/jetwidgets-for-elementor/templates/jw-testimonials/global/testimonials-loop-end.php
    • > /wp-content/plugins/jetwidgets-for-elementor/templates/jw-image-comparison/global/image-comparison-loop-end.php
  • 42× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/jetwidgets-for-elementor/templates/jw-carousel/global/banners/items-loop-start.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WPML_Elementor_Module_With_Items' not found in wp-content/plugins/jetwidgets-for-elementor/includes/lib/compatibility/modules/class-wpml-jet-widgets-pricing-table.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/jetwidgets-for-elementor/templates/jw-image-comparison/global/index.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function jet_widgets_tools() in wp-content/plugins/jetwidgets-for-elementor/templates/jw-posts/global/loop-item.php:6
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/jetwidgets-for-elementor/templates/jw-pricing-table/global/heading.php:7
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/jetwidgets-for-elementor/templates/jw-posts/global/item-title.php:6
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/jetwidgets-for-elementor/templates/jw-pricing-table/global/price.php:7
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/jetwidgets-for-elementor/templates/jw-pricing-table/global/button.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WPML_Elementor_Module_With_Items' not found in wp-content/plugins/jetwidgets-for-elementor/includes/lib/compatibility/modules/class-wpml-jet-widgets-advanced-carousel.php:6
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/jetwidgets-for-elementor/templates/jw-posts/global/item-thumb.php:5

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 96% 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 widgets, pricing table, posts, headline, image comparison...

jetwidgets-for-elementor/jetwidgets-for-elementor.php 92% from 13 tests

The main file in "JetWidgets For Elementor" v. 1.0.15 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 211 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 plugin62,899 lines of code in 303 files:
LanguageFilesBlank linesComment linesLines of code
PHP1455,9119,00130,947
JSON30016,027
JavaScript451,9687578,515
Sass6574716,270
CSS4011781,025
SVG40178
Markdown117037

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity21.26
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity3.24
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces1
Interfaces1
Traits0
Classes90
▷ Abstract classes44.44%
▷ Concrete classes8695.56%
▷ Final classes00.00%
Methods830
▷ Static methods678.07%
▷ Public methods71986.63%
▷ Protected methods799.52%
▷ Private methods323.86%
Functions16
▷ Named functions1381.25%
▷ Anonymous functions318.75%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in 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%