Home
WP Hotel Booking
2.0.9.3
Does WP Hotel Booking work with WordPress 6.4.3 and PHP 8.1.12? A smoke test was performed on 2024-02-01 04:30:14 UTC .
Summary
Errors
2 PHP fatal errors 2 JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance
Memory usage: 590.01 KiB
The average PHP memory usage increased by this amount after activating by the plugin.
Page speed impact:
insignificant.
The plugin didn't make the site noticeably slower.
Environment
WordPress version 6.4.3 PHP version 8.1.12 MySQL version 10.6.10 PHP memory limit 512M
Pages 18 Plugins ‹ Test site — WordPress
URL
/wp-admin/plugins.php?plugin_status=all&paged=1&s
Requested URL
/wp-admin/plugins.php?action=activate&plugin=wp-hotel-booking%2Fwp-hotel-booking.php&plugin_status=all&paged=1&s&_wpnonce=55153f861d
Aspect
after-activation
HTTP status
200
Load time
1.006 s
Memory usage
3.97 MiB
JS errors
None
Resource errors
None
Rooms
URL
/wp-admin/edit.php?post_type=hb_room
Aspect
menu-item
HTTP status
200
Load time
0.215 s
Memory usage
3.94 MiB
JS errors
None
Resource errors
None
Rooms → Add New Room
URL
/wp-admin/post-new.php?post_type=hb_room&tab=null
Requested URL
/wp-admin/post-new.php?post_type=hb_room
Aspect
menu-item
HTTP status
200
Load time
1.132 s
Memory usage
4.17 MiB
JS errors
[
{
"message": "TypeError: Cannot read properties of undefined (reading 'length')\n at En (/wp-content/plugins/wp-hotel-booking/assets/js/admin/main.min.js?ver=6.4.3:6:37984)\n at /wp-content/plugins/wp-hotel-booking/assets/js/admin/main.min.js?ver=6.4.3:6:106249\n at gi (/wp-content/plugins/wp-hotel-booking/assets/js/admin/main.min.js?ver=6.4.3:6:106441)\n at e._handleAction (/wp-content/plugins/wp-hotel-booking/assets/js/admin/main.min.js?ver=6.4.3:6:119587)\n at e.runTask (/wp-content/plugins/wp-hotel-booking/assets/js/admin/main.min.js?ver=6.4.3:6:115155)\n at e.drain (/wp-content/plugins/wp-hotel-booking/assets/js/admin/main.min.js?ver=6.4.3:6:115059)\n at e.drained (/wp-content/plugins/wp-hotel-booking/assets/js/admin/main.min.js?ver=6.4.3:6:114586)\n at e.tryDrain (/wp-content/plugins/wp-hotel-booking/assets/js/admin/main.min.js?ver=6.4.3:6:114313)\n at e.request (/wp-content/plugins/wp-hotel-booking/assets/js/admin/main.min.js?ver=6.4.3:6:113777)\n at e.request (/wp-content/plugins/wp-hotel-booking/assets/js/admin/main.min.js?ver=6.4.3:6:114822)",
"trace": null,
"code": null
}
]
Resource errors
None
Rooms → Room Types
URL
/wp-admin/edit-tags.php?taxonomy=hb_room_type&post_type=hb_room
Aspect
menu-item
HTTP status
200
Load time
0.302 s
Memory usage
3.88 MiB
JS errors
None
Resource errors
None
WP Hotel Booking
URL
/wp-admin/edit.php?post_type=hb_booking
Aspect
menu-item
HTTP status
200
Load time
0.244 s
Memory usage
3.94 MiB
JS errors
None
Resource errors
None
WP Hotel Booking → Extra Options
URL
/wp-admin/edit.php?post_type=hb_extra_room
Aspect
menu-item
HTTP status
200
Load time
0.236 s
Memory usage
3.93 MiB
JS errors
None
Resource errors
None
WP Hotel Booking → Coupons
URL
/wp-admin/edit.php?post_type=hb_coupon
Aspect
menu-item
HTTP status
200
Load time
0.256 s
Memory usage
3.93 MiB
JS errors
None
Resource errors
None
WP Hotel Booking → Settings
URL
/wp-admin/admin.php?page=tp_hotel_booking_settings
Aspect
menu-item
HTTP status
200
Load time
0.337 s
Memory usage
3.88 MiB
JS errors
None
Resource errors
None
WP Hotel Booking → Settings →
Pages
URL
/wp-admin/admin.php?page=tp_hotel_booking_settings&tab=pages
Aspect
menu-item-tab
HTTP status
200
Load time
0.293 s
Memory usage
3.89 MiB
JS errors
None
Resource errors
None
WP Hotel Booking → Settings →
Emails
URL
/wp-admin/admin.php?page=tp_hotel_booking_settings&tab=emails
Aspect
menu-item-tab
HTTP status
200
Load time
0.210 s
Memory usage
3.88 MiB
JS errors
None
Resource errors
None
WP Hotel Booking → Settings →
Checkout
URL
/wp-admin/admin.php?page=tp_hotel_booking_settings&tab=payments
Aspect
menu-item-tab
HTTP status
200
Load time
0.212 s
Memory usage
3.88 MiB
JS errors
None
Resource errors
None
WP Hotel Booking → Settings →
Room
URL
/wp-admin/admin.php?page=tp_hotel_booking_settings&tab=room
Aspect
menu-item-tab
HTTP status
200
Load time
0.216 s
Memory usage
3.88 MiB
JS errors
None
Resource errors
None
WP Hotel Booking → Settings →
Advanced
URL
/wp-admin/admin.php?page=tp_hotel_booking_settings&tab=advanced
Aspect
menu-item-tab
HTTP status
200
Load time
0.236 s
Memory usage
3.88 MiB
JS errors
None
Resource errors
None
WP Hotel Booking → Calendar Manager
URL
/wp-admin/admin.php?page=tp_hotel_booking_calender_manager
Aspect
menu-item
HTTP status
200
Load time
0.424 s
Memory usage
3.87 MiB
JS errors
[
{
"message": "TypeError: Cannot read properties of undefined (reading 'length')\n at En (/wp-content/plugins/wp-hotel-booking/assets/js/admin/main.min.js?ver=6.4.3:6:37984)\n at /wp-content/plugins/wp-hotel-booking/assets/js/admin/main.min.js?ver=6.4.3:6:106249\n at gi (/wp-content/plugins/wp-hotel-booking/assets/js/admin/main.min.js?ver=6.4.3:6:106441)\n at e._handleAction (/wp-content/plugins/wp-hotel-booking/assets/js/admin/main.min.js?ver=6.4.3:6:119587)\n at e.runTask (/wp-content/plugins/wp-hotel-booking/assets/js/admin/main.min.js?ver=6.4.3:6:115155)\n at e.drain (/wp-content/plugins/wp-hotel-booking/assets/js/admin/main.min.js?ver=6.4.3:6:115059)\n at e.drained (/wp-content/plugins/wp-hotel-booking/assets/js/admin/main.min.js?ver=6.4.3:6:114586)\n at e.tryDrain (/wp-content/plugins/wp-hotel-booking/assets/js/admin/main.min.js?ver=6.4.3:6:114313)\n at e.request (/wp-content/plugins/wp-hotel-booking/assets/js/admin/main.min.js?ver=6.4.3:6:113777)\n at e.request (/wp-content/plugins/wp-hotel-booking/assets/js/admin/main.min.js?ver=6.4.3:6:114822)",
"trace": null,
"code": null
}
]
Resource errors
None
WP Hotel Booking → Tools
URL
/wp-admin/admin.php?page=wphb-tools
Aspect
menu-item
HTTP status
200
Load time
0.221 s
Memory usage
3.89 MiB
JS errors
None
Resource errors
None
WP Hotel Booking → Tools →
Updates
URL
/wp-admin/admin.php?page=wphb-tools&tab=wphb_update
Aspect
menu-item-tab
HTTP status
200
Load time
0.207 s
Memory usage
3.85 MiB
JS errors
None
Resource errors
None
Test site – Just another WordPress site
URL
/
Aspect
front-page
HTTP status
200
Load time
0.421 s
Memory usage
3.93 MiB
JS errors
None
Resource errors
None
Widgets ‹ Test site — WordPress
URL
/wp-admin/widgets.php
Aspect
new-sidebar-widgets
HTTP status
200
Load time
2.402 s
Memory usage
6.02 MiB
JS errors
None
Resource errors
None
Benchmark
URL
Load time
Memory usage
Inactive
Active
Change
Inactive
Active
Change
/wp-admin/index.php 0.346 s 0.396 s +0.050 s 3.38 MiB 3.95 MiB + 582.02 KiB /wp-admin/edit.php 0.368 s 0.239 s -0.129 s 3.41 MiB 4.04 MiB + 648.55 KiB /wp-admin/post-new.php 0.846 s 1.120 s +0.274 s 5.46 MiB 6.07 MiB + 630.59 KiB /wp-admin/upload.php 0.670 s 0.561 s -0.109 s 3.32 MiB 3.89 MiB + 576.27 KiB /wp-admin/options-writing.php 0.223 s 0.218 s -0.005 s 3.32 MiB 3.88 MiB + 572.55 KiB /wp-admin/media-new.php 0.309 s 0.256 s -0.053 s 3.3 MiB 3.86 MiB + 573.4 KiB /wp-admin/edit-tags.php?taxonomy=category 0.205 s 0.236 s +0.031 s 3.31 MiB 3.9 MiB + 597.8 KiB /wp-admin/post-new.php?post_type=page 0.797 s 0.627 s -0.170 s 5.45 MiB 6.06 MiB + 626.17 KiB /wp-admin/options-discussion.php 0.265 s 0.360 s +0.095 s 3.3 MiB 3.87 MiB + 582.11 KiB /wp-admin/edit-comments.php 0.232 s 0.280 s +0.048 s 3.34 MiB 3.9 MiB + 576.43 KiB / 0.268 s 0.369 s +0.101 s 3.36 MiB 3.87 MiB + 524.23 KiB
Average
0.412 s 0.424 s +0.012 s 3.72 MiB 4.3 MiB + 590.01 KiB
Code Statistics
Note: Third-party libraries and minified JS/CSS files are excluded from these statistics where
possible, so the numbers you see here may be lower than those reported by other tools.
Language
%
Lines of code
Comment lines
Files
PHP 67.3% 20,714 6,443 236 CSS 16.7% 5,137 196 13 JavaScript 13.9% 4,267 250 18 SVG 2.1% 652 0 2 HTML 0.0% 4 10 2
Total
30,774
6,899
271
Lines of code
15,162
Total complexity
2,836
Median class complexity
11.0
Median method complexity
2.0
Most complex class
WPHB_Ajax
Most complex function
WPHB_Admin_Settings::render_fields()
Classes
98
Methods
592
Functions
224
Additions
Things that the plugin adds to the site. This section is not intended to be comprehensive.
The test tool only looks for a few specific types of added content.
Database Tables 3 wp_hotel_booking_order_itemmeta wp_hotel_booking_order_items wp_hotel_booking_plans Options wp_options
52 hotel_booking_account_page_id hotel_booking_cart_page_id hotel_booking_checkout_page_id hotel_booking_rooms_page_id hotel_booking_search_page_id hotel_booking_terms_page_id hotel_booking_thankyou_page_id hotel_booking_update_meta_field_rooms hotel_booking_version tp_hotel_booking_account_page_id tp_hotel_booking_advance_payment tp_hotel_booking_allow_checkout_date_blocked tp_hotel_booking_cancel_payment tp_hotel_booking_cart_page_id tp_hotel_booking_catalog_display_rating tp_hotel_booking_catalog_image tp_hotel_booking_catalog_number_column tp_hotel_booking_checkout_page_id tp_hotel_booking_currency tp_hotel_booking_custom_process tp_hotel_booking_display_pricing_plans tp_hotel_booking_email_general_from_email tp_hotel_booking_email_general_from_name tp_hotel_booking_email_general_subject tp_hotel_booking_enable_review_rating tp_hotel_booking_filter_price_max tp_hotel_booking_filter_price_min tp_hotel_booking_guest_checkout tp_hotel_booking_max_adults_all_room tp_hotel_booking_minimum_booking_day tp_hotel_booking_posts_per_page tp_hotel_booking_price_currency_position tp_hotel_booking_price_decimals_separator tp_hotel_booking_price_display tp_hotel_booking_price_including_tax tp_hotel_booking_price_number_of_decimal tp_hotel_booking_price_thousands_separator tp_hotel_booking_reservation hold tp_hotel_booking_room_image_gallery tp_hotel_booking_room_thumbnail tp_hotel_booking_rooms_page_id tp_hotel_booking_search_page_id tp_hotel_booking_single_purchase tp_hotel_booking_tax tp_hotel_booking_terms_page_id tp_hotel_booking_thankyou_page_id widget_hb_widget_best_reviews widget_hb_widget_carousel widget_hb_widget_cart widget_hb_widget_lastest_reviews widget_hb_widget_search wphb_check_tables Custom Post Types 4
ID
Name
hb_room Rooms hb_booking Bookings Order hb_extra_room Extra Room hb_coupon Coupons
Sidebar Widgets 5
ID
Name
hb_widget_search HB Search Rooms hb_widget_carousel HB Rooms Carousel hb_widget_best_reviews HB Rooms Best Reviews hb_widget_lastest_reviews HB Rooms Lastest Reviews hb_widget_cart HB Widget Mini Cart
Meta Boxes {
"hb_room": {
"room_settings": {
"title": "Room Settings",
"context": "normal"
}
},
"hb_extra_room": {
"extra_settings": {
"title": "Extra Settings",
"context": "normal"
}
},
"hb_coupon": {
"coupon_settings": {
"title": "Coupon Settings",
"context": "normal"
}
},
"hb_booking": {
"hb-booking-details": {
"title": "Booking Details",
"context": "advanced"
},
"hb-booking-items": {
"title": "Booking Items",
"context": "advanced"
},
"hb-booking-actions": {
"title": "Booking Actions",
"context": "side"
}
}
}
Roles 2
ID
Name
wphb_hotel_manager Hotel Manager wphb_booking_editor Booking Editor
Capabilities 19 publish_hb_rooms delete_hb_rooms delete_published_hb_rooms delete_private_hb_rooms delete_others_hb_rooms edit_others_hb_rooms edit_hb_rooms edit_published_hb_rooms edit_private_hb_rooms publish_hb_bookings delete_hb_bookings delete_published_hb_bookings delete_private_hb_bookings delete_others_hb_bookings edit_others_hb_bookings edit_hb_bookings edit_published_hb_bookings edit_private_hb_bookings manage_hb_booking PHP Error Log 34 lines [01-Feb-2024 04:30:35 UTC] PHP Fatal error: Uncaught Error: Undefined constant "ADMIN_ROLE" in /wp-content/plugins/wp-hotel-booking/includes/rest-api/class-wphb-rest-authentication.php:186
Stack trace:
#0 /wp-content/plugins/wp-hotel-booking/includes/rest-api/v1/admin/class-wphb-admin-rooms-controller.php(52): WPHB_REST_Authentication::check_admin_permission()
#1 /wp-includes/rest-api/class-wp-rest-server.php(1160): WPHB_REST_Admin_Rooms_Controller->check_admin_permission()
#2 /wp-includes/rest-api/class-wp-rest-server.php(1041): WP_REST_Server->respond_to_request()
#3 /wp-includes/rest-api/class-wp-rest-server.php(431): WP_REST_Server->dispatch()
#4 /wp-includes/rest-api.php(424): WP_REST_Server->serve_request()
#5 /wp-includes/class-wp-hook.php(324): rest_api_loaded()
#6 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#7 /wp-includes/plugin.php(565): WP_Hook->do_action()
#8 /wp-includes/class-wp.php(418): do_action_ref_array()
#9 /wp-includes/class-wp.php(813): WP->parse_request()
#10 /wp-includes/functions.php(1336): WP->main()
#11 /wp-blog-header.php(16): wp()
#12 /index.php(17): require('...')
#13 {main}
thrown in /wp-content/plugins/wp-hotel-booking/includes/rest-api/class-wphb-rest-authentication.php on line 186
[01-Feb-2024 04:30:46 UTC] PHP Fatal error: Uncaught Error: Undefined constant "ADMIN_ROLE" in /wp-content/plugins/wp-hotel-booking/includes/rest-api/class-wphb-rest-authentication.php:186
Stack trace:
#0 /wp-content/plugins/wp-hotel-booking/includes/rest-api/v1/admin/class-wphb-admin-rooms-controller.php(52): WPHB_REST_Authentication::check_admin_permission()
#1 /wp-includes/rest-api/class-wp-rest-server.php(1160): WPHB_REST_Admin_Rooms_Controller->check_admin_permission()
#2 /wp-includes/rest-api/class-wp-rest-server.php(1041): WP_REST_Server->respond_to_request()
#3 /wp-includes/rest-api/class-wp-rest-server.php(431): WP_REST_Server->dispatch()
#4 /wp-includes/rest-api.php(424): WP_REST_Server->serve_request()
#5 /wp-includes/class-wp-hook.php(324): rest_api_loaded()
#6 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#7 /wp-includes/plugin.php(565): WP_Hook->do_action()
#8 /wp-includes/class-wp.php(418): do_action_ref_array()
#9 /wp-includes/class-wp.php(813): WP->parse_request()
#10 /wp-includes/functions.php(1336): WP->main()
#11 /wp-blog-header.php(16): wp()
#12 /index.php(17): require('...')
#13 {main}
thrown in /wp-content/plugins/wp-hotel-booking/includes/rest-api/class-wphb-rest-authentication.php on line 186