Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/wp-travel-engine/includes/helpers/helpers-analytics.php+1050
The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence
Server metrics [RAM: ▲2.89MB] [CPU: ▼25.50ms] Passed 4 tests
Analyzing server-side resources used by WP Travel Engine - Best Travel Booking WordPress Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.89 ▲3.43 | 33.16 ▼5.37 |
Dashboard /wp-admin | 6.91 ▲3.56 | 32.85 ▼28.44 |
Posts /wp-admin/edit.php | 6.91 ▲3.55 | 32.16 ▼11.90 |
Add New Post /wp-admin/post-new.php | 6.91 ▲1.02 | 37.59 ▼56.27 |
Media Library /wp-admin/upload.php | 6.91 ▲3.68 | 36.84 ▲1.30 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 6.91 | 33.13 |
Destinations /wp-admin/edit-tags.php?taxonomy=destination&post_type=trip | 6.91 | 33.82 |
Difficulty /wp-admin/edit-tags.php?taxonomy=difficulty&post_type=trip | 6.91 | 31.73 |
Extensions /wp-admin/edit.php?post_type=booking&page=extensions | 6.91 | 33.57 |
What's New?NEW /wp-admin/edit.php?post_type=booking&page=whats-new | 6.91 | 32.99 |
Themes /wp-admin/edit.php?post_type=booking&page=themes | 6.91 | 32.93 |
Activities /wp-admin/edit-tags.php?taxonomy=activities&post_type=trip | 6.91 | 32.63 |
Add New /wp-admin/post-new.php?post_type=trip | 6.91 | 31.92 |
Custom Filters /wp-admin/edit.php?post_type=trip&page=custom-filters | 6.91 | 39.10 |
Trip Type /wp-admin/edit-tags.php?taxonomy=trip_types&post_type=trip | 6.91 | 34.80 |
Server storage [IO: ▲17.98MB] [DB: ▲0.66MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 910 new files
Database: no new tables, 39 new options
New WordPress options |
---|
_wp_session_998ed0b8eea04e71bcba42e4002bf47e |
fs_active_plugins |
_wp_session_expires_33177f22fd18154a62d1453bdb6439ca |
wp_travel_engine_wp-travel-engine-checkout_page_id |
_wp_session_3ac07ed66dbda2ee0dcffa61561f4e97 |
fs_debug_mode |
_wp_session_11dfa8389057c4c1470e8b73142a1f4c |
_wp_session_expires_3ac07ed66dbda2ee0dcffa61561f4e97 |
widget_recent-comments |
_wp_session_expires_11dfa8389057c4c1470e8b73142a1f4c |
... |
Browser metrics Passed 4 tests
WP Travel Engine - Best Travel Booking WordPress Plugin: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 9,665 ▲6,903 | 17.02 ▲2.39 | 29.21 ▲27.59 | 30.98 ▼14.95 |
Dashboard /wp-admin | 8,650 ▲6,470 | 5.69 ▲0.05 | 159.65 ▲59.17 | 55.64 ▲9.07 |
Posts /wp-admin/edit.php | 8,536 ▲6,439 | 3.55 ▲1.61 | 62.64 ▲26.27 | 42.19 ▲7.03 |
Add New Post /wp-admin/post-new.php | 7,831 ▲6,305 | 25.75 ▲2.57 | 654.26 ▲10.66 | 38.84 ▼30.44 |
Media Library /wp-admin/upload.php | 7,668 ▲6,268 | 4.16 ▲0.00 | 122.02 ▲26.14 | 45.31 ▲0.34 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 7,498 | 3.05 | 51.41 | 33.41 |
Destinations /wp-admin/edit-tags.php?taxonomy=destination&post_type=trip | 7,761 | 3.35 | 53.45 | 36.36 |
Difficulty /wp-admin/edit-tags.php?taxonomy=difficulty&post_type=trip | 8,096 | 3.37 | 55.27 | 46.05 |
Extensions /wp-admin/edit.php?post_type=booking&page=extensions | 8,321 | 7.94 | 101.84 | 112.54 |
What's New?NEW /wp-admin/edit.php?post_type=booking&page=whats-new | 7,656 | 7.92 | 105.57 | 133.65 |
Themes /wp-admin/edit.php?post_type=booking&page=themes | 7,635 | 6.20 | 103.57 | 40.39 |
Activities /wp-admin/edit-tags.php?taxonomy=activities&post_type=trip | 7,758 | 3.35 | 56.32 | 42.59 |
Add New /wp-admin/post-new.php?post_type=trip | 8,389 | 19.63 | 919.53 | 53.21 |
Custom Filters /wp-admin/edit.php?post_type=trip&page=custom-filters | 7,669 | 7.95 | 99.12 | 39.79 |
Trip Type /wp-admin/edit-tags.php?taxonomy=trip_types&post_type=trip | 7,758 | 3.31 | 50.49 | 41.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.66MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/wp-travel-engine/includes/helpers/helpers-analytics.php+1050
The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence
- The uninstall procedure has failed, leaving 45 options in the database
- wptravelengine_difficulty_tax
- _wp_session_expires_33177f22fd18154a62d1453bdb6439ca
- wp_travel_engine_wp-travel-engine-cart_page_id
- wte_search_params_updated_579
- fs_debug_mode
- _wp_session_expires_7d13527ff4028e7982e8daa0e13ebe71
- _wp_session_expires_11dfa8389057c4c1470e8b73142a1f4c
- wptravelengine_queue_flush_rewrite_rules
- wp_travel_engine_my-account_page_id
- _wp_session_7d13527ff4028e7982e8daa0e13ebe71
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 18 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=trip_types&post_type=trip
- > Deprecated in wp-content/plugins/wp-travel-engine/includes/helpers/helpers-analytics.php+1050
The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence
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 items
- 5× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-travel-engine/includes/templates/account/tab-content/bookings/active-bookings.php
- > /wp-content/plugins/wp-travel-engine/includes/templates/script-templates/booking-process/tmpl-wte-booking-datetime.php
- > /wp-content/plugins/wp-travel-engine/admin/partials/wp-travel-engine-admin-display.php
- > /wp-content/plugins/wp-travel-engine/includes/templates/account/tab-content/bookings/recent-bookings.php
- > /wp-content/plugins/wp-travel-engine/includes/templates/account/tab-content/bookings/bookings-history.php
- 372× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Posts_Controller' not found in wp-content/plugins/wp-travel-engine/includes/rest-api/class-trip-controller.php:8
- > PHP Fatal error
Uncaught Error: Class 'Hybridauth\\Adapter\\OAuth2' not found in wp-content/plugins/wp-travel-engine/vendor/hybridauth/hybridauth/src/Provider/Patreon.php:19
- > PHP Fatal error
Uncaught Error: Class 'Hybridauth\\Adapter\\OAuth2' not found in wp-content/plugins/wp-travel-engine/vendor/hybridauth/hybridauth/src/Provider/Dropbox.php:18
- > PHP Fatal error
Uncaught Error: Call to a member function get_discounts() on null in wp-content/plugins/wp-travel-engine/includes/modules/coupon-code/views/checkout-coupon-form.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Travel_Engine_Form_Field_Select' not found in wp-content/plugins/wp-travel-engine/includes/lib/wte-form-framework/field-types/class-field-trips_list.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wp-travel-engine/includes/backend/booking/customer-history.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-travel-engine/includes/dashboard/wp-travel-engine-user-functions.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wp-travel-engine/admin/meta-parts/trip-tabs/editor.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-travel-engine/includes/privacy-functions.php:2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-travel-engine/includes/templates/emails/enquiry.php on line 5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: travel-agency, tour-booking, travel, travel-booking, tour-operator
wp-travel-engine/wp-travel-engine.php 92% from 13 tests
"WP Travel Engine - Best Travel Booking WordPress Plugin" version 5.7.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 305 characters long)
Code Analysis 0% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Please fix the following items
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/wp-travel-engine/includes/payment-gateways/standard-paypal/php-paypal-ipn/cert/api_cert_chain.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 561 | 16,608 | 31,352 | 88,446 |
JavaScript | 107 | 1,015 | 246 | 22,303 |
JSON | 13 | 0 | 0 | 8,809 |
CSS | 37 | 719 | 140 | 6,257 |
PO File | 3 | 2,595 | 3,916 | 6,101 |
Sass | 2 | 302 | 73 | 3,508 |
Markdown | 12 | 167 | 0 | 420 |
XML | 2 | 0 | 0 | 147 |
YAML | 2 | 11 | 2 | 69 |
SVG | 6 | 1 | 0 | 33 |
HTML | 1 | 0 | 0 | 1 |
PHP code 0% from 2 tests
Analyzing cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,073)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 247)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 33.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 247.00 |
Code structure | ||
---|---|---|
Namespaces | 31 | |
Interfaces | 5 | |
Traits | 2 | |
Classes | 257 | |
▷ Abstract classes | 8 | 3.11% |
▷ Concrete classes | 249 | 96.89% |
▷ Final classes | 8 | 3.21% |
Methods | 2,640 | |
▷ Static methods | 462 | 17.50% |
▷ Public methods | 2,027 | 76.78% |
▷ Protected methods | 141 | 5.34% |
▷ Private methods | 472 | 17.88% |
Functions | 511 | |
▷ Named functions | 364 | 71.23% |
▷ Anonymous functions | 147 | 28.77% |
Constants | 169 | |
▷ Global constants | 111 | 65.68% |
▷ Class constants | 58 | 34.32% |
▷ Public constants | 58 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
82 PNG files occupy 2.99MB with 1.54MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/images/ui-bg_glass_65_ffffff_1x400.png | 0.26KB | 0.09KB | ▼ 66.79% |
admin/css/images/tour package.png | 321.90KB | 329.50KB | 0.00% |
admin/partials/plugin-updates/getting-started/550/assets/tax-checkout.png | 25.37KB | 9.90KB | ▼ 60.97% |
admin/css/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.38KB | 0.12KB | ▼ 67.68% |
admin/css/images/booking-form.png | 200.50KB | 75.60KB | ▼ 62.30% |