Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲7.38MB] [CPU: ▲88.69ms] 50% from 4 tests
An overview of server-side resources used by WP Travel - Best Travel Booking WordPress Plugin, Tour Management Engine
It is recommended to improve the following
- RAM: Total memory usage must be kept under 10MB (currently 10.95MB on /wp-admin/edit-tags.php?taxonomy=itinerary_types&post_type=itineraries)
- Extra RAM: Extra memory usage should kept under 5MB (currently 7.38MB on /wp-admin/edit-tags.php?taxonomy=itinerary_types&post_type=itineraries)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.92 ▲6.46 | 104.73 ▲61.85 |
Dashboard /wp-admin | 11.01 ▲7.67 | 223.67 ▲162.82 |
Posts /wp-admin/edit.php | 11.03 ▲7.67 | 156.13 ▲107.71 |
Add New Post /wp-admin/post-new.php | 13.61 ▲7.72 | 193.71 ▲92.11 |
Media Library /wp-admin/upload.php | 10.94 ▲7.71 | 129.21 ▲93.10 |
Keywords /wp-admin/edit-tags.php?taxonomy=travel_keywords&post_type=itineraries | 10.95 | 137.50 |
Activities /wp-admin/edit-tags.php?taxonomy=activity&post_type=itineraries | 10.95 | 132.34 |
Custom Filters /wp-admin/edit.php?post_type=itinerary-booking&page=wp_travel_custom_filters_page | 10.94 | 129.42 |
New Trip /wp-admin/post-new.php?post_type=itineraries | 11.17 | 154.89 |
Settings /wp-admin/edit.php?post_type=itinerary-booking&page=settings | 10.94 | 132.83 |
All Trips /wp-admin/edit.php?post_type=itineraries | 11.12 | 136.47 |
Marketplace /wp-admin/edit.php?post_type=itinerary-booking&page=wp-travel-marketplace | 10.94 | 128.08 |
Enquiries /wp-admin/edit.php?post_type=itinerary-enquiries | 11.03 | 134.60 |
Destinations /wp-admin/edit-tags.php?taxonomy=travel_locations&post_type=itineraries | 10.95 | 126.26 |
Trip Types /wp-admin/edit-tags.php?taxonomy=itinerary_types&post_type=itineraries | 10.95 | 127.20 |
Server storage [IO: ▲15.80MB] [DB: ▲0.02MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 501 new files
Database: 4 new tables, 37 new options
New tables |
---|
wp_wt_pricings |
wp_wt_dates |
wp_wt_price_category_relation |
wp_wt_excluded_dates_times |
New WordPress options |
---|
wp_travel_first_active |
_wp_session_expires_c20d8460807d1ca8b501e1654661136f |
theysaidso_admin_options |
wp_travel_wp-travel-dashboard_page_id |
wp_travel_wp-travel-checkout_page_id |
widget_wp_travel_trip_type |
widget_theysaidso_widget |
widget_wp_travel_featured |
wp_travel_version |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
Checking browser requirements for WP Travel - Best Travel Booking WordPress Plugin, Tour Management Engine
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,125 ▲363 | 17.38 ▲3.15 | 8.52 ▲6.74 | 36.72 ▼6.26 |
Dashboard /wp-admin | 2,383 ▲206 | 7.55 ▲1.92 | 225.10 ▲131.02 | 42.72 ▲2.68 |
Posts /wp-admin/edit.php | 2,313 ▲213 | 7.25 ▲5.22 | 67.14 ▲30.94 | 34.31 ▼0.34 |
Add New Post /wp-admin/post-new.php | 1,658 ▲132 | 22.85 ▼0.28 | 547.65 ▼62.89 | 33.25 ▼30.87 |
Media Library /wp-admin/upload.php | 1,687 ▲287 | 9.39 ▲5.17 | 125.03 ▲29.10 | 41.33 ▲0.23 |
Keywords /wp-admin/edit-tags.php?taxonomy=travel_keywords&post_type=itineraries | 1,680 | 8.42 | 91.71 | 32.44 |
Activities /wp-admin/edit-tags.php?taxonomy=activity&post_type=itineraries | 1,711 | 8.36 | 94.73 | 33.18 |
Custom Filters /wp-admin/edit.php?post_type=itinerary-booking&page=wp_travel_custom_filters_page | 1,222 | 8.37 | 82.24 | 28.49 |
New Trip /wp-admin/post-new.php?post_type=itineraries | 2,797 | 14.56 | 338.08 | 82.73 |
Settings /wp-admin/edit.php?post_type=itinerary-booking&page=settings | 1,651 | 11.87 | 216.04 | 93.29 |
All Trips /wp-admin/edit.php?post_type=itineraries | 1,777 | 13.34 | 160.36 | 36.04 |
Marketplace /wp-admin/edit.php?post_type=itinerary-booking&page=wp-travel-marketplace | 2,825 | 8.49 | 94.17 | 163.75 |
Enquiries /wp-admin/edit.php?post_type=itinerary-enquiries | 1,693 | 13.04 | 148.50 | 35.46 |
Destinations /wp-admin/edit-tags.php?taxonomy=travel_locations&post_type=itineraries | 1,702 | 8.42 | 90.72 | 33.49 |
Trip Types /wp-admin/edit-tags.php?taxonomy=itinerary_types&post_type=itineraries | 1,708 | 8.39 | 89.22 | 35.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie tables were found after uninstall: 4 tables
- wp_wt_excluded_dates_times
- wp_wt_pricings
- wp_wt_price_category_relation
- wp_wt_dates
- This plugin does not fully uninstall, leaving 41 options in the database
- _wp_session_expires_44a05519409b92aa703e81336e31a9cb
- widget_wp_travel_trip_type
- _wp_session_490c8445e137401a1892cf2c0e06f4e4
- widget_wp_travel_filter_search_widget
- _wp_session_44a05519409b92aa703e81336e31a9cb
- wp_travel_version
- _wp_session_expires_7951f3d811150153ae9eca75e5e4c716
- widget_wp_travel_location
- _wp_session_e204f3bf6bb52fa3314d64b7f7ee4854
- _wp_session_511f882e1167aaabf19dd76aba58d3fb
- ...
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-travel/inc/admin/views/tabs/tabs.php
- > /wp-content/plugins/wp-travel/templates/admin/post/tab-contents/location-tab.php
- 143× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-travel/templates/account/tab-content/bookings.php on line 23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-travel/inc/admin/class-admin-pointers.php:18
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wp-travel/inc/admin/views/tabs/tabs.php on line 25
- > PHP Fatal error
Uncaught Error: Class 'WP_Travel_FW_Field_Text' not found in wp-content/plugins/wp-travel/inc/framework/form/fields/class.field.hidden.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-travel/templates/admin/post/tab-contents/additional-info-tab.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-travel/core/ajax/enquiry.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-travel/templates/account/tab-content/address.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Travel_Emails' not found in wp-content/plugins/wp-travel/inc/class-wp-travel-email.php:13
- > PHP Warning
Use of undefined constant WP_TRAVEL_ABSPATH - assumed 'WP_TRAVEL_ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-travel/inc/helpers.php on line 8
- > PHP Notice
Undefined variable: args in wp-content/plugins/wp-travel/templates/account/tab-content/payments.php on line 150
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=itinerary-enquiries
- > Console-api (severe) in wp-includes/js/dist/data.min.js?ver=ff7eb3945f963be850ff+1:19276
Store \"WPTravel/Admin\" is already registered.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tags: You are using too many tags: 19 tag instead of maximum 10
wp-travel/wp-travel.php 92% from 13 tests
The principal PHP file in "WP Travel - Best Travel Booking WordPress Plugin, Tour Management Engine" v. 7.6.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 147 characters long)
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Please make sure to remedy the following
- Do not include executable or dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/wp-travel/inc/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 |
---|---|---|---|---|
JavaScript | 91 | 9,232 | 6,969 | 38,992 |
PHP | 244 | 6,445 | 8,959 | 38,669 |
CSS | 42 | 2,929 | 159 | 7,739 |
SVG | 13 | 1 | 3 | 4,347 |
TypeScript | 15 | 0 | 3 | 212 |
Markdown | 1 | 44 | 0 | 135 |
XML | 2 | 4 | 0 | 89 |
JSON | 4 | 0 | 0 | 19 |
Sass | 1 | 2 | 0 | 6 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 125)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 27.01 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 346.00 |
Average method complexity | 5.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 125.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 1 | |
Traits | 1 | |
Classes | 137 | |
▷ Abstract classes | 1 | 0.73% |
▷ Concrete classes | 136 | 99.27% |
▷ Final classes | 3 | 2.21% |
Methods | 706 | |
▷ Static methods | 285 | 40.37% |
▷ Public methods | 668 | 94.62% |
▷ Protected methods | 9 | 1.27% |
▷ Private methods | 29 | 4.11% |
Functions | 708 | |
▷ Named functions | 661 | 93.36% |
▷ Anonymous functions | 47 | 6.64% |
Constants | 25 | |
▷ Global constants | 23 | 92.00% |
▷ Class constants | 2 | 8.00% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
50 PNG files occupy 2.15MB with 0.35MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/themes/pleased-free.png | 78.35KB | 77.69KB | ▼ 0.84% |
assets/images/login-dashboard.png | 1.09KB | 1.06KB | ▼ 2.51% |
assets/images/pro.png | 1,185.55KB | 346.91KB | ▼ 70.74% |
assets/images/themes/tourable-free.png | 55.14KB | 54.21KB | ▼ 1.70% |
assets/images/support.png | 1.10KB | 1.04KB | ▼ 5.61% |