10% wte-elementor-widgets

Code Review | WP Travel Engine - Elementor Widgets | Create Travel Booking Website Using WordPress and Elementor

WordPress plugin WP Travel Engine - Elementor Widgets | Create Travel Booking Website Using WordPress and Elementor scored10%from 54 tests.

About plugin

  • Plugin page: wte-elementor-wid...
  • Plugin version: 1.3.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Aug 18, 2021
  • Latest release: Sep 14, 2023
  • Number of updates: 21
  • Update frequency: every 36.1 days
  • Top authors: wptravelengine (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active /15,869 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Warning in wp-content/plugins/wte-elementor-widgets/includes/class-activator.php+31
    Use of undefined constant WP_TRAVEL_ENGINE_POST_TYPE - assumed 'WP_TRAVEL_ENGINE_POST_TYPE' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▲0.02MB] [CPU: ▼9.75ms] Passed 4 tests

Server-side resources used by WP Travel Engine - Elementor Widgets | Create Travel Booking Website Using WordPress and Elementor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.80 ▼5.62
Dashboard /wp-admin3.32 ▲0.0247.66 ▼0.01
Posts /wp-admin/edit.php3.37 ▲0.0246.67 ▼3.29
Add New Post /wp-admin/post-new.php5.90 ▲0.0284.85 ▼16.23
Media Library /wp-admin/upload.php3.24 ▲0.0232.18 ▼13.86

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 123 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by WP Travel Engine - Elementor Widgets | Create Travel Booking Website Using WordPress and Elementor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲7714.74 ▲0.361.58 ▼0.4447.35 ▼1.75
Dashboard /wp-admin2,218 ▲305.89 ▲0.03123.07 ▲9.6047.01 ▲3.48
Posts /wp-admin/edit.php2,103 ▲142.04 ▲0.0042.26 ▲3.9447.34 ▲7.42
Add New Post /wp-admin/post-new.php1,547 ▲1423.42 ▲0.13673.61 ▼15.6252.89 ▼16.38
Media Library /wp-admin/upload.php1,400 ▲124.23 ▲0.0394.73 ▼33.5442.17 ▼17.21

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

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

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)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wte-elementor-widgets/includes/trip-widgets/ratings/demo.php
  • 112× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/wte-elementor-widgets/includes/blocks/terms/layouts/layout-2.php on line 7
    • > PHP Fatal error
      Uncaught Error: Class 'WPTRAVELENGINEEB\\Widget' not found in wp-content/plugins/wte-elementor-widgets/includes/trip-widgets/costincludes/widget.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wte-elementor-widgets/includes/trip-widgets/duration/duration.php:10
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wte-elementor-widgets/includes/trip-widgets/ratings/ratings.php:10
    • > PHP Notice
      Trying to get property 'ID' of non-object in wp-content/plugins/wte-elementor-widgets/includes/trip-widgets/facts/demo.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WPTRAVELENGINEEB\\get_post_meta() in wp-content/plugins/wte-elementor-widgets/includes/trip-widgets/highlights/controls.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wte-elementor-widgets/includes/trip-widgets/itinerary/itinerary.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'WPTRAVELENGINEEB\\Widget' not found in wp-content/plugins/wte-elementor-widgets/includes/trip-widgets/costexcludes/widget.php:19
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/wte-elementor-widgets/includes/blocks/trips/layouts/layout-1.php on line 7
    • > PHP Notice
      Uninitialized string offset: 0 in wp-content/plugins/wte-elementor-widgets/includes/trip-widgets/costincludes/demo.php on line 24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% 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
5 plugin tags: travel booking, travel, tour operator, travel agency, tour booking

wte-elementor-widgets/wte-elementor-widgets.php 77% from 13 tests

The main PHP file in "WP Travel Engine - Elementor Widgets | Create Travel Booking Website Using WordPress and Elementor" ver. 1.3.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: Please don't use more than 140 characters for the plugin description (currently 238 characters long)
  • Requires PHP: Required version must match the one declared in readme.txt ("7.4" instead of "7.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected14,253 lines of code in 110 files:
LanguageFilesBlank linesComment linesLines of code
PHP1018191,94314,194
SVG20030
JavaScript44026
CSS3003

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity7.69
▷ Minimum class complexity1.00
▷ Maximum class complexity68.00
Average method complexity2.46
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes35
▷ Abstract classes00.00%
▷ Concrete classes35100.00%
▷ Final classes12.86%
Methods126
▷ Static methods43.17%
▷ Public methods7660.32%
▷ Protected methods4938.89%
▷ Private methods10.79%
Functions19
▷ Named functions210.53%
▷ Anonymous functions1789.47%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 0% from 2 tests

Image compression 0% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 2.66MB with 0.53MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/demo2.png830.13KB901.07KB0.00%
(invalid) images/placeholder.png1.41KB0.00KB▼ 100.00%
images/demo1.png832.92KB911.92KB0.00%
images/demo4.png562.79KB618.59KB0.00%
images/demo3.png494.08KB540.70KB0.00%