Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲2.88MB] [CPU: ▲23.81ms] Passed 4 tests
An overview of server-side resources used by WP Hotel Booking
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.16 ▲2.70 | 61.37 ▲22.92 |
Dashboard /wp-admin | 6.26 ▲2.96 | 69.59 ▲14.55 |
Posts /wp-admin/edit.php | 6.32 ▲2.96 | 79.24 ▲33.08 |
Add New Post /wp-admin/post-new.php | 8.96 ▲3.08 | 111.56 ▲29.50 |
Media Library /wp-admin/upload.php | 6.11 ▲2.89 | 63.00 ▲28.25 |
Settings /wp-admin/admin.php?page=tp_hotel_booking_settings | 6.20 | 56.92 |
Room Types /wp-admin/edit-tags.php?taxonomy=hb_room_type&post_type=hb_room | 6.11 | 57.58 |
Rooms /wp-admin/edit.php?post_type=hb_room | 6.18 | 66.18 |
Bookings Order /wp-admin/edit.php?post_type=hb_booking | 6.18 | 56.28 |
Coupons /wp-admin/edit.php?post_type=hb_coupon | 6.18 | 58.50 |
Extra Options /wp-admin/edit.php?post_type=hb_extra_room | 6.18 | 63.66 |
Add New Room /wp-admin/post-new.php?post_type=hb_room | 6.43 | 78.41 |
Tools /wp-admin/admin.php?page=wphb-tools | 6.11 | 54.34 |
Calendar Manager /wp-admin/admin.php?page=tp_hotel_booking_calender_manager | 6.08 | 53.14 |
Server storage [IO: ▲3.97MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 341 new files
Database: 3 new tables, 58 new options
New tables |
---|
wp_hotel_booking_order_itemmeta |
wp_hotel_booking_plans |
wp_hotel_booking_order_items |
New WordPress options |
---|
tp_hotel_booking_rooms_page_id |
tp_hotel_booking_price_currency_position |
tp_hotel_booking_enable_review_rating |
hotel_booking_checkout_page_id |
tp_hotel_booking_price_number_of_decimal |
tp_hotel_booking_posts_per_page |
tp_hotel_booking_filter_price_max |
hotel_booking_rooms_page_id |
tp_hotel_booking_display_pricing_plans |
wphb_check_tables |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Hotel Booking
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,179 ▲393 | 15.87 ▲1.50 | 16.95 ▲15.19 | 38.06 ▼4.89 |
Dashboard /wp-admin | 2,346 ▲169 | 6.18 ▲0.52 | 95.28 ▲8.38 | 38.39 ▼0.07 |
Posts /wp-admin/edit.php | 2,274 ▲174 | 3.44 ▲1.45 | 45.14 ▲9.76 | 34.46 ▼6.50 |
Add New Post /wp-admin/post-new.php | 1,666 ▲140 | 22.89 ▼0.15 | 684.82 ▼14.28 | 36.96 ▼20.17 |
Media Library /wp-admin/upload.php | 1,571 ▲168 | 5.62 ▲1.41 | 101.81 ▲1.24 | 41.49 ▼1.53 |
Settings /wp-admin/admin.php?page=tp_hotel_booking_settings | 2,183 | 3.30 | 40.57 | 25.63 |
Room Types /wp-admin/edit-tags.php?taxonomy=hb_room_type&post_type=hb_room | 1,489 | 3.35 | 37.30 | 30.28 |
Rooms /wp-admin/edit.php?post_type=hb_room | 1,314 | 3.54 | 39.34 | 28.30 |
Bookings Order /wp-admin/edit.php?post_type=hb_booking | 1,336 | 3.48 | 41.80 | 27.18 |
Coupons /wp-admin/edit.php?post_type=hb_coupon | 1,266 | 3.52 | 41.22 | 27.61 |
Extra Options /wp-admin/edit.php?post_type=hb_extra_room | 1,245 | 3.40 | 46.81 | 30.24 |
Add New Room /wp-admin/post-new.php?post_type=hb_room | 4,290 | 11.32 | 318.65 | 89.08 |
Tools /wp-admin/admin.php?page=wphb-tools | 1,006 | 3.25 | 36.16 | 22.81 |
Calendar Manager /wp-admin/admin.php?page=tp_hotel_booking_calender_manager | 1,600 | 5.59 | 102.36 | 40.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie tables were found after uninstall: 3 tables
- wp_hotel_booking_order_items
- wp_hotel_booking_order_itemmeta
- wp_hotel_booking_plans
- This plugin did not uninstall successfully, leaving 58 options in the database
- widget_recent-comments
- tp_hotel_booking_cart_page_id
- hotel_booking_rooms_page_id
- tp_hotel_booking_price_number_of_decimal
- widget_recent-posts
- tp_hotel_booking_advance_payment
- tp_hotel_booking_single_purchase
- tp_hotel_booking_price_including_tax
- tp_hotel_booking_display_pricing_plans
- tp_hotel_booking_rooms_page_id
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=hb_extra_room
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 13× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WPHB_Abstract_REST_Controller' not found in wp-content/plugins/wp-hotel-booking/includes/rest-api/v1/frontend/class-wphb-rooms-controller.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-hotel-booking/includes/plugins/wp-hotel-booking-extra/inc/admin/class-hb-admin.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-hotel-booking/includes/admin/setup/class-wphb-setup-wizard.php:22
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/wp-hotel-booking/includes/abstracts/class-wphb-abstract-rest-controller.php:6
- > PHP Fatal error
Uncaught Error: Class 'WPHB_Meta_Box' not found in wp-content/plugins/wp-hotel-booking/includes/admin/metaboxes/rooms/class-wphb-admin-metabox-rooms.php:3
- > PHP Fatal error
Uncaught Error: Class 'WPHB_Meta_Box' not found in wp-content/plugins/wp-hotel-booking/includes/admin/metaboxes/rooms/class-wphb-admin-metabox-extra-options.php:3
- > PHP Fatal error
Uncaught Error: Class 'WPHB_Meta_Box' not found in wp-content/plugins/wp-hotel-booking/includes/admin/metaboxes/rooms/class-wphb-admin-metabox-coupons.php:3
- > PHP Fatal error
Uncaught Error: Class 'WPHB_Abstract_REST_Controller' not found in wp-content/plugins/wp-hotel-booking/includes/rest-api/v1/admin/class-wphb-admin-updates-controller.php:5
- > PHP Fatal error
Uncaught Error: Class 'WPHB_Abstract_REST_Controller' not found in wp-content/plugins/wp-hotel-booking/includes/rest-api/v1/admin/class-wphb-admin-rooms-controller.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Block_Template' not found in wp-content/plugins/wp-hotel-booking/includes/abstracts/class-wphb-abstract-block-template.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: reservations, hotel, booking, reservation, hotel booking
wp-hotel-booking/wp-hotel-booking.php Passed 13 tests
The main PHP file in "WP Hotel Booking" ver. 2.0.9 adds more information about the plugin and also serves as the entry point for this plugin
55 characters long description:
Full of professional features for a booking room system
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected31,782 lines of code in 300 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 236 | 3,840 | 6,442 | 20,682 |
CSS | 23 | 1,112 | 256 | 5,982 |
JavaScript | 37 | 783 | 648 | 4,462 |
SVG | 2 | 0 | 0 | 652 |
HTML | 2 | 0 | 10 | 4 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 16.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 118.00 |
Average method complexity | 3.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 73.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 98 | |
▷ Abstract classes | 8 | 8.16% |
▷ Concrete classes | 90 | 91.84% |
▷ Final classes | 0 | 0.00% |
Methods | 591 | |
▷ Static methods | 88 | 14.89% |
▷ Public methods | 573 | 96.95% |
▷ Protected methods | 6 | 1.02% |
▷ Private methods | 12 | 2.03% |
Functions | 226 | |
▷ Named functions | 224 | 99.12% |
▷ Anonymous functions | 2 | 0.88% |
Constants | 17 | |
▷ Global constants | 10 | 58.82% |
▷ Class constants | 7 | 41.18% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
20 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/patterns/overlay8.png | 0.93KB | 0.10KB | ▼ 88.82% |
assets/images/patterns/overlay6.png | 0.94KB | 0.10KB | ▼ 88.95% |
assets/images/prev.png | 0.30KB | 0.29KB | ▼ 2.94% |
includes/libraries/lightbox/lightbox2/images/prev.png | 1.33KB | 1.59KB | 0.00% |
includes/libraries/lightbox/lightbox2/images/close.png | 0.27KB | 0.29KB | 0.00% |