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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.80 ▼5.62 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.66 ▼0.01 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.67 ▼3.29 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 84.85 ▼16.23 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 32.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲77 | 14.74 ▲0.36 | 1.58 ▼0.44 | 47.35 ▼1.75 |
Dashboard /wp-admin | 2,218 ▲30 | 5.89 ▲0.03 | 123.07 ▲9.60 | 47.01 ▲3.48 |
Posts /wp-admin/edit.php | 2,103 ▲14 | 2.04 ▲0.00 | 42.26 ▲3.94 | 47.34 ▲7.42 |
Add New Post /wp-admin/post-new.php | 1,547 ▲14 | 23.42 ▲0.13 | 673.61 ▼15.62 | 52.89 ▼16.38 |
Media Library /wp-admin/upload.php | 1,400 ▲12 | 4.23 ▲0.03 | 94.73 ▼33.54 | 42.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
- > PHP Notice
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 101 | 819 | 1,943 | 14,194 |
SVG | 2 | 0 | 0 | 30 |
JavaScript | 4 | 4 | 0 | 26 |
CSS | 3 | 0 | 0 | 3 |
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 code | 0.55 |
Average class complexity | 7.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 2.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 35 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 35 | 100.00% |
▷ Final classes | 1 | 2.86% |
Methods | 126 | |
▷ Static methods | 4 | 3.17% |
▷ Public methods | 76 | 60.32% |
▷ Protected methods | 49 | 38.89% |
▷ Private methods | 1 | 0.79% |
Functions | 19 | |
▷ Named functions | 2 | 10.53% |
▷ Anonymous functions | 17 | 89.47% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/demo2.png | 830.13KB | 901.07KB | 0.00% |
(invalid) images/placeholder.png | 1.41KB | 0.00KB | ▼ 100.00% |
images/demo1.png | 832.92KB | 911.92KB | 0.00% |
images/demo4.png | 562.79KB | 618.59KB | 0.00% |
images/demo3.png | 494.08KB | 540.70KB | 0.00% |