62% nd-booking

Code Review | Hotel Booking

WordPress plugin Hotel Booking scored62%from 54 tests.

About plugin

  • Plugin page: nd-booking
  • Plugin version: 3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.0
  • WordPress version: 6.3.1
  • First release: Jul 13, 2017
  • Latest release: Dec 2, 2022
  • Number of updates: 76
  • Update frequency: every 25.9 days
  • Top authors: nicdark (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

6,000+ active /61,450 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.78MB] [CPU: ▼1.29ms] Passed 4 tests

This is a short check of server-side resources used by Hotel Booking
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.95 ▲1.4952.35 ▲11.24
Dashboard /wp-admin4.81 ▲1.5056.74 ▲12.13
Posts /wp-admin/edit.php4.86 ▲1.5061.58 ▲16.87
Add New Post /wp-admin/post-new.php4.59 ▼1.3047.74 ▼45.40
Media Library /wp-admin/upload.php4.67 ▲1.4451.49 ▲18.39
Exceptions /wp-admin/edit.php?post_type=nd_booking_cpt_34.7751.04
Services /wp-admin/edit.php?post_type=nd_booking_cpt_24.7746.76
Import Export /wp-admin/admin.php?page=nd-booking-settings-import-export4.6343.66
Calendar View /wp-admin/admin.php?page=nd-booking-settings-calendar-view4.6140.71
Add New /wp-admin/post-new.php?post_type=nd_booking_cpt_44.5943.85
Themes /wp-admin/admin.php?page=nd-booking-settings-demos4.6345.45
Add New /wp-admin/post-new.php?post_type=nd_booking_cpt_34.5950.03
Branches /wp-admin/edit.php?post_type=nd_booking_cpt_44.7757.97
Add New /wp-admin/post-new.php?post_type=nd_booking_cpt_24.5945.44
Premium Addons /wp-admin/admin.php?page=nd-booking-settings-premium-addons4.6345.94

Server storage [IO: ▲2.28MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 239 new files
Database: 1 new table, 6 new options
New tables
wp_nd_booking_booking
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Hotel Booking
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,060 ▲32514.10 ▼0.285.12 ▲2.8539.66 ▼3.61
Dashboard /wp-admin2,370 ▲1855.86 ▲0.05103.85 ▲3.5239.25 ▼5.27
Posts /wp-admin/edit.php2,253 ▲1612.16 ▲0.1540.59 ▼0.8636.07 ▼2.79
Add New Post /wp-admin/post-new.php1,665 ▲13123.31 ▲0.20582.85 ▼26.6455.13 ▲10.04
Media Library /wp-admin/upload.php1,549 ▲1644.09 ▼0.1895.41 ▼10.3444.61 ▲0.11
Exceptions /wp-admin/edit.php?post_type=nd_booking_cpt_31,2172.0133.0528.51
Services /wp-admin/edit.php?post_type=nd_booking_cpt_21,2261.9532.0631.04
Import Export /wp-admin/admin.php?page=nd-booking-settings-import-export1,0632.0323.9127.64
Calendar View /wp-admin/admin.php?page=nd-booking-settings-calendar-view1,3751.7623.2031.42
Add New /wp-admin/post-new.php?post_type=nd_booking_cpt_42,6517.76182.8370.68
Themes /wp-admin/admin.php?page=nd-booking-settings-demos1,1482.0230.6831.67
Add New /wp-admin/post-new.php?post_type=nd_booking_cpt_32,4507.89176.7556.83
Branches /wp-admin/edit.php?post_type=nd_booking_cpt_41,2261.9930.8329.81
Add New /wp-admin/post-new.php?post_type=nd_booking_cpt_22,6277.84173.1957.85
Premium Addons /wp-admin/admin.php?page=nd-booking-settings-premium-addons1,3552.0323.1032.15

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_nd_booking_booking
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=nd-booking-settings-calendar-view
    • > Notice in wp-content/plugins/nd-booking/addons/calendar-view/index.php+27
    Undefined index: nd_booking_month
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/addons/alert/index.php+262
    Undefined index: nd_booking_meta_box_alert_text
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/addons/alert/index.php+271
    Undefined index: nd_booking_meta_box_alert_color
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/addons/alert/index.php+280
    Undefined index: nd_booking_meta_box_alert_icon
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/addons/alert/index.php+289
    Undefined index: nd_booking_meta_box_alert_time
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/addons/alert/index.php+299
    Undefined index: nd_booking_meta_box_alert_pages
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/addons/coupon/index.php+96
    Undefined index: nd_booking_meta_box_cpt_5_percentage
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/addons/coupon/index.php+105
    Undefined index: nd_booking_meta_box_cpt_5_code
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-1.php+795
    Undefined index: nd_booking_meta_box_max_people
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-1.php+804
    Undefined index: nd_booking_meta_box_room_size
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-1.php+813
    Undefined index: nd_booking_meta_box_color
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-1.php+822
    Undefined index: nd_booking_meta_box_text_preview
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-1.php+831
    Undefined index: nd_booking_meta_box_branches
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-1.php+840
    Undefined index: nd_booking_meta_box_qnt
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-1.php+849
    Undefined index: nd_booking_meta_box_min_booking_day
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-1.php+860
    Undefined index: nd_booking_meta_box_price
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-1.php+869
    Undefined index: nd_booking_meta_box_week_price_mon
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-1.php+878
    Undefined index: nd_booking_meta_box_week_price_tue
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-1.php+887
    Undefined index: nd_booking_meta_box_week_price_wed
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-1.php+896
    Undefined index: nd_booking_meta_box_week_price_thu
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-1.php+905
    Undefined index: nd_booking_meta_box_week_price_fri
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-1.php+914
    Undefined index: nd_booking_meta_box_week_price_sat
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-1.php+923
    Undefined index: nd_booking_meta_box_week_price_sun
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-1.php+932
    Undefined index: nd_booking_meta_box_min_price
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-1.php+942
    Undefined index: nd_booking_meta_box_normal_services
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-1.php+951
    Undefined index: nd_booking_meta_box_additional_services
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-1.php+961
    Undefined index: nd_booking_meta_box_exceptions
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-1.php+970
    Undefined index: nd_booking_meta_box_exceptions_block
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-1.php+980
    Undefined index: nd_booking_meta_box_image
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-1.php+989
    Undefined index: nd_booking_meta_box_image_position
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-1.php+998
    Undefined index: nd_booking_meta_box_page_layout
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-1.php+1007
    Undefined index: nd_booking_meta_box_featured_image_size
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-1.php+1029
    Undefined index: nd_booking_meta_box_featured_image_replace
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-1.php+1040
    Undefined index: nd_booking_meta_box_title_packages
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-1.php+1049
    Undefined index: nd_booking_meta_box_packages
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-1.php+1058
    Undefined index: nd_booking_meta_box_packages_image_size
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-1.php+1067
    Undefined index: nd_booking_meta_box_similar_rooms
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-1.php+1077
    Undefined index: nd_booking_post_id_room
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-1.php+1086
    Undefined index: nd_booking_id_room
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-2.php+238
    Undefined index: nd_booking_meta_box_cpt_2_service_type
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-2.php+247
    Undefined index: nd_booking_meta_box_cpt_2_icon
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-2.php+256
    Undefined index: nd_booking_meta_box_cpt_2_color
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-2.php+265
    Undefined index: nd_booking_meta_box_cpt_2_text_preview
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-2.php+275
    Undefined index: nd_booking_meta_box_cpt_2_price
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-2.php+284
    Undefined index: nd_booking_meta_box_cpt_2_price_type_1
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-2.php+293
    Undefined index: nd_booking_meta_box_cpt_2_price_type_2
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-2.php+303
    Undefined index: nd_booking_meta_box_cpt_2_mandatory
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-3.php+160
    Undefined index: nd_booking_meta_box_cpt_3_exceptions_type
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-3.php+169
    Undefined index: nd_booking_meta_box_cpt_3_price
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-3.php+178
    Undefined index: nd_booking_meta_box_cpt_3_date_range_from
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-3.php+187
    Undefined index: nd_booking_meta_box_cpt_3_date_range_to
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-4.php+255
    Undefined index: nd_booking_meta_box_cpt_4_phone
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-4.php+264
    Undefined index: nd_booking_meta_box_cpt_4_address
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-4.php+273
    Undefined index: nd_booking_meta_box_cpt_4_city
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-4.php+282
    Undefined index: nd_booking_meta_box_cpt_4_state
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-4.php+291
    Undefined index: nd_booking_meta_box_cpt_4_email
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-4.php+300
    Undefined index: nd_booking_meta_box_cpt_4_color
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-4.php+309
    Undefined index: nd_booking_meta_box_cpt_4_stars
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-4.php+319
    Undefined index: nd_booking_meta_box_image_cpt_4
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-4.php+328
    Undefined index: nd_booking_meta_box_image_cpt_4_position
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=nd_booking_cpt_2
    • > Notice in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-4.php+337
    Undefined index: nd_booking_meta_box_page_layout_cpt_4

SRP 0% 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
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/nd-booking/addons/customizer/styles/default-style.php
  • 113× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/nd-booking/inc/admin/orders/include/orders.php on line 23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/nd-booking/addons/elementor/search/layout/layout-3.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/nd-booking/inc/shortcodes/include/booking/nd_booking_booking_additional_services.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/nd-booking/inc/shortcodes/include/account/nd_booking_register.php:279
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nd-booking/inc/metabox/mtb-cpt-1.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/nd-booking/inc/shortcodes/include/account/nd_booking_login.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/nd-booking/addons/visual/rooms/index.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nd-booking/inc/cpt/cpt-4.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/nd-booking/inc/shortcodes/nd_booking_order.php:154
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_permalink() in wp-content/plugins/nd-booking/addons/visual/order/layout/layout-1.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: hotel, book, travel, booking

nd-booking/nd-booking.php 92% from 13 tests

The primary PHP file in "Hotel Booking" version 3.4 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 203 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin16,952 lines of code in 146 files:
LanguageFilesBlank linesComment linesLines of code
PHP946,3621,10514,374
SVG372341,410
CSS313451789
JavaScript12211100379

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity6.60
▷ Minimum class complexity2.00
▷ Maximum class complexity11.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods32
▷ Static methods13.12%
▷ Public methods2475.00%
▷ Protected methods825.00%
▷ Private methods00.00%
Functions146
▷ Named functions146100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
9 PNG files occupy 0.08MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
addons/visual/rooms/layout/icon-plan-white.png18.15KB0.67KB▼ 96.31%
addons/visual/rooms/layout/icon-user-white.png19.42KB2.12KB▼ 89.10%
inc/shortcodes/include/search-results/icon-info.png1.57KB0.92KB▼ 41.59%
assets/img/icons/icon-plan-white.png18.15KB0.67KB▼ 96.31%
addons/calendar-view/img/cancel.png0.45KB0.21KB▼ 52.63%