Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲3.34MB] [CPU: ▲25.61ms] 75% from 4 tests
Server-side resources used by Best Travel Booking WordPress Plugin, Tour Booking System, Trip Booking WordPress Plugin - Yatra
The following require your attention
- CPU: Total CPU usage should be kept under 500.00ms (currently 5,356.97ms on /wp-admin/admin.php?page=yatra-status)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.67 ▲3.20 | 76.92 ▲36.94 |
Dashboard /wp-admin | 7.68 ▲4.33 | 126.07 ▲61.13 |
Posts /wp-admin/edit.php | 6.81 ▲3.45 | 84.73 ▲31.96 |
Add New Post /wp-admin/post-new.php | 9.27 ▲3.38 | 113.40 ▲2.86 |
Media Library /wp-admin/upload.php | 6.58 ▲3.35 | 69.89 ▲30.66 |
Destination /wp-admin/edit-tags.php?taxonomy=destination&post_type=tour | 6.60 | 67.23 |
All Tours /wp-admin/edit.php?post_type=tour | 6.69 | 67.13 |
Activity /wp-admin/edit-tags.php?taxonomy=activity&post_type=tour | 6.60 | 66.40 |
Import/Export /wp-admin/admin.php?page=yatra_import_export | 6.57 | 64.53 |
Home /wp-admin/admin.php?page=yatra-dashboard | 6.61 | 75.71 |
Status /wp-admin/admin.php?page=yatra-status | 7.39 | 5,356.97 |
Coupons /wp-admin/edit.php?post_type=yatra-coupons | 6.69 | 72.60 |
Enquiries /wp-admin/admin.php?page=enquiries | 6.60 | 67.17 |
Customers /wp-admin/edit.php?post_type=yatra-customers | 6.76 | 66.95 |
Bookings /wp-admin/edit.php?post_type=yatra-booking | 6.77 | 63.40 |
Server storage [IO: ▲6.07MB] [DB: ▲0.25MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 527 new files
Database: 4 new tables, 34 new options
New tables |
---|
wp_yatra_logs |
wp_yatra_tour_enquiries |
wp_yatra_tour_dates |
wp_yatra_tour_booking_stats |
New WordPress options |
---|
yatra_plugin_version |
widget_yatra-tour-widget |
yatra_setup_wizard_ran |
yatra_update_cart_text |
db_upgraded |
yatra_booking_form_title_text |
yatra_booknow_loading_text |
yatra_checkout_page |
can_compress_scripts |
yatra_payment_gateways |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Best Travel Booking WordPress Plugin, Tour Booking System, Trip Booking WordPress Plugin - Yatra
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,490 ▲729 | 17.20 ▲2.97 | 18.32 ▲16.55 | 32.39 ▼8.73 |
Dashboard /wp-admin | 2,614 ▲434 | 6.91 ▲1.29 | 131.27 ▲39.65 | 91.90 ▲47.80 |
Posts /wp-admin/edit.php | 2,563 ▲466 | 4.60 ▲2.57 | 67.66 ▲31.93 | 85.88 ▲49.34 |
Add New Post /wp-admin/post-new.php | 6,452 ▲4,926 | 24.44 ▲1.48 | 919.10 ▲235.17 | 39.49 ▼29.12 |
Media Library /wp-admin/upload.php | 1,695 ▲295 | 4.87 ▲0.76 | 98.06 ▼22.80 | 81.16 ▲32.49 |
Destination /wp-admin/edit-tags.php?taxonomy=destination&post_type=tour | 1,798 | 4.64 | 51.36 | 101.27 |
All Tours /wp-admin/edit.php?post_type=tour | 1,644 | 5.15 | 74.35 | 74.59 |
Activity /wp-admin/edit-tags.php?taxonomy=activity&post_type=tour | 1,786 | 4.53 | 51.06 | 92.64 |
Import/Export /wp-admin/admin.php?page=yatra_import_export | 1,370 | 4.79 | 51.81 | 73.50 |
Home /wp-admin/admin.php?page=yatra-dashboard | 1,757 | 10.77 | 265.09 | 92.15 |
Status /wp-admin/admin.php?page=yatra-status | 2,504 | 4.50 | 50.23 | 113.99 |
Coupons /wp-admin/edit.php?post_type=yatra-coupons | 1,593 | 4.57 | 58.95 | 68.28 |
Enquiries /wp-admin/admin.php?page=enquiries | 1,493 | 4.52 | 48.71 | 86.62 |
Customers /wp-admin/edit.php?post_type=yatra-customers | 1,575 | 4.62 | 55.74 | 70.81 |
Bookings /wp-admin/edit.php?post_type=yatra-booking | 1,587 | 4.56 | 57.59 | 73.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.25MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 4 tables in the database
- wp_yatra_tour_enquiries
- wp_yatra_tour_booking_stats
- wp_yatra_logs
- wp_yatra_tour_dates
- This plugin did not uninstall successfully, leaving 34 options in the database
- yatra_update_cart_text
- yatra_cart_page
- yatra_booknow_button_text
- widget_theysaidso_widget
- yatra_custom_attributes_title_text
- yatra_enable_guest_checkout
- yatra_setup_wizard_ran
- widget_recent-comments
- yatra_failed_transaction_page
- yatra_enquiry_button_text
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/yatra/includes/admin/templates/metabox/tour/tab.php
- > /wp-content/plugins/yatra/templates/myaccount/tmpl-pricing-footer.php
- > /wp-content/plugins/yatra/includes/admin/templates/addon/list.php
- 197× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/yatra/includes/admin/templates/metabox/tour/tab-content.php on line 3
- > PHP Warning
include_once(): Failed opening 'YATRA_ABSPATHincludes/payment-gateways/booking-only/class-yatra-payment-gateway-booking-only.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/yatra/includes/payment-gateways/class-yatra-gateways-core.php on line 30
- > PHP Fatal error
Uncaught Error: Call to undefined function yatra_get_booking_statuses() in wp-content/plugins/yatra/includes/admin/templates/metabox/booking/status.php:3
- > PHP Warning
include_once(YATRA_ABSPATHincludes/modules/filters/includes/class-yatra-filter-query.php): failed to open stream: No such file or directory in wp-content/plugins/yatra/includes/modules/filters/class-yatra-module-filters.php on line 16
- > PHP Warning
include_once(YATRA_ABSPATHincludes/modules/filters/includes/sections/class-yatra-module-filter-section-activities.php): failed to open stream: No such file or directory in wp-content/plugins/yatra/includes/modules/filters/includes/class-yatra-module-filter-sidebar.php on line 17
- > PHP Notice
Undefined variable: multiple_pricing in wp-content/plugins/yatra/includes/admin/templates/metabox/tour/pricing/group-pricing.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'Yatra_Widget_Base' not found in wp-content/plugins/yatra/includes/widgets/class-yatra-activity-widget.php:15
- > PHP Fatal error
Uncaught Error: Class 'Yatra_Module_Filter_Sections' not found in wp-content/plugins/yatra/includes/modules/filters/includes/sections/class-yatra-module-filter-section-duration.php:3
- > PHP Notice
Undefined variable: title in wp-content/plugins/yatra/templates/tour/attributes-textarea.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function yatra_get_minimum_tour_pricing() in wp-content/plugins/yatra/templates/parts/price.php:3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: travel-agency, travel, tour-operator, travel-booking, tour-booking
yatra/yatra.php Passed 13 tests
"Best Travel Booking WordPress Plugin, Tour Booking System, Trip Booking WordPress Plugin - Yatra" version 2.1.16's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
129 characters long description:
Yatra is a free travel & tour booking WordPress plugin to create travel and tour packages for tour operators and travel agencies.
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Please make sure to remedy the following
- Do not distribute dangerous files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/yatra/includes/payment-gateways/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 | 292 | 9,544 | 6,734 | 31,323 |
JavaScript | 120 | 2,796 | 1,777 | 26,643 |
CSS | 35 | 3,731 | 223 | 18,650 |
Sass | 35 | 801 | 3 | 3,698 |
JSON | 2 | 0 | 0 | 95 |
Markdown | 1 | 2 | 0 | 8 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 16.66 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 161.00 |
Average method complexity | 2.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 90.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 6 | |
Traits | 0 | |
Classes | 166 | |
▷ Abstract classes | 16 | 9.64% |
▷ Concrete classes | 150 | 90.36% |
▷ Final classes | 7 | 4.67% |
Methods | 1,444 | |
▷ Static methods | 243 | 16.83% |
▷ Public methods | 1,267 | 87.74% |
▷ Protected methods | 75 | 5.19% |
▷ Private methods | 102 | 7.06% |
Functions | 213 | |
▷ Named functions | 209 | 98.12% |
▷ Anonymous functions | 4 | 1.88% |
Constants | 51 | |
▷ Global constants | 17 | 33.33% |
▷ Class constants | 34 | 66.67% |
▷ Public constants | 34 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/menu-icon.png | 1.18KB | 0.48KB | ▼ 59.62% |
assets/images/promo-icon.png | 9.50KB | 4.71KB | ▼ 50.37% |
assets/images/upload-image.png | 2.57KB | 1.94KB | ▼ 24.52% |
assets/admin/images/addons/placeholder.png | 11.23KB | 5.37KB | ▼ 52.22% |
assets/lib/lightbox2/images/next.png | 1.32KB | 1.58KB | 0.00% |