Code Analysis: Hotel Management System 1.2.0

Function Rating Maintainability Complexity Lines of code
MHRS_Hotel_Search_SC::hotel_search_sc()
D
0
70 1,075
MHRS_Booking::render_details()
D
20
31 294
mhrs_get_hotel_detail()
D
26
28 178
MHRS_Misc::get_real_locations()
C
33 29 94
MHRS_Hotel::save_details()
C
34 28 94
mhrs_get_room_detail()
C
30 21 142
MHRS_My_Bookings_SC::my_bookings_sc()
C
23
10 292
MHRS_Room_Type::save_details()
B
39 21 64
mhrs_get_city_detail()
B
32 17 122
MHRS_Template_Loader::book_rooms_now_submit_handler()
B
37 17 84
mhrs_get_state_detail()
B
34 15 110
MHRS_Hotel_Search::get_required_rooms()
B
41 18 58
mhrsajax_get_available_rooms_func()
B
41 18 57
mhrs_get_bookings_by_usersearch()
B
36 16 83
MHRS_City::save_details()
B
42 18 50
MHRS_Booking::custom_column_content()
B
37 14 85
mhrs_get_country_detail()
B
35 13 98
mhrs_get_hotel_full_address()
B
40 15 66
MHRS_Settings::set_settings()
A
42 15 60
MHRS_State::save_details()
A
47 16 34
MHRS_Template_Loader::add_room_cart_submit_handler()
A
40 12 72
mhrsajax_register_user_on_checkout_func()
A
36 11 81
MHRS_Hotel::render_details()
A
32 7 138
MHRS_Template_Loader::hotel_search_submit_handler()
A
40 11 72
MHRS_Room_Type::render_details()
A
33 7 130
MHRS_Hotel_Search::get_non_booked_rooms_by_hotel_dep()
A
43 11 54
MHRS_Hotel::custom_column_content()
A
44 11 52
MHRS_Room_Type::custom_column_content()
A
44 11 50
process_ipn_request_func()
A
40 10 58
MHRS_Template_Loader::load_templates()
A
49 11 30
MHRS_Hotel_Search::get_hotels_by_location()
A
45 9 45
MHRS_Template_Loader::view_rooms_by_hotel_submit_handler()
A
44 8 53
MHRS_Settings::add_menu()
A
39 4 113
MHRS_Hotel_Search::get_rooms_by_hotel()
A
48 9 35
MHRS_Booking::save_details()
A
61 11 10
MHRS_Country::save_details()
A
61 11 10
MHRS_City::render_details()
A
39 5 80
MHRS_Hotel_Search::get_all_non_booked_rooms()
A
48 8 32
mhrsajax_login_user_on_checkout_func()
A
49 8 31
MHRS_Booking_Email::get_body()
A
37 3 104
MHRS_Hotel_Search::is_the_room_available()
S
54 7 24
mhrsajax_load_state_by_city_id()
S
53 7 24
mhrsajax_load_hotels_by_location_id()
S
52 6 26
mhrsajax_load_rooms_by_hotel_id()
S
52 6 26
MHRS_Location::get_countries()
S
52 6 25
MHRS_Misc::get_hotels()
S
52 6 25
MHRS_Location::get_cities()
S
52 6 25
MHRS_Misc::get_rooms()
S
52 6 25
MHRS_Location::get_states()
S
52 6 25
MHRS_Hotel_Search::get_available_hotels()
S
54 6 22
MHRS_Hotel_Search::get_available_rooms()
S
55 6 21
mhrsajax_load_country_by_state_id()
S
56 6 19
mhrs_booking_search_where()
S
57 6 17
GIMBGallery::render_meta_box()
S
46 4 44
MHRS_State::render_details()
S
43 3 58
GIMBGallery::__construct()
S
61 6 12
MHRS_Activate::my_bookings_page()
S
53 5 25
MHRS_Activate::room_cart_page()
S
53 5 25
MHRS_Activate::hotel_search_page()
S
53 5 25
MHRS_Activate::view_hotels_page()
S
53 5 25
MHRS_Activate::view_rooms_page()
S
53 5 25
MHRS_City::custom_column_content()
S
53 5 24
mhrs_hotel_search_form_js()
S
46 4 38
MHRS_Location::get_all_locations()
S
57 5 19
MHRS_Hotel_Search::get_non_booked_rooms_by_hotel()
S
58 5 17
MHRS_Hotel_Search::filter_rooms_available_on_dates()
S
59 5 16
GIMBGallery::save_meta_box_data()
S
64 6 8
MHRS_Booking::sort_column_title()
S
59 5 15
MHRS_Misc::is_published()
S
59 5 15
MHRS_Booking::sort_column_address()
S
60 5 14
MHRS_Booking::sort_column_city()
S
60 5 14
MHRS_Booking::sort_column_state()
S
60 5 14
MHRS_Booking::sort_column_country()
S
60 5 14
MHRS_City::sort_column_state()
S
60 5 14
MHRS_City::sort_column_country()
S
60 5 14
MHRS_Hotel::sort_column_address()
S
60 5 14
MHRS_Hotel::sort_column_city()
S
60 5 14
MHRS_Room_Type::sort_column_state()
S
60 5 14
MHRS_Hotel::sort_column_state()
S
60 5 14
MHRS_Hotel::sort_column_country()
S
60 5 14
MHRS_Hotel::sort_column_postal_code()
S
60 5 14
MHRS_Room_Type::sort_column_hotel()
S
60 5 14
MHRS_Room_Type::sort_column_address()
S
60 5 14
MHRS_Room_Type::sort_column_city()
S
60 5 14
MHRS_Room_Type::sort_column_country()
S
60 5 14
MHRS_State::sort_column_country()
S
60 5 14
MHRS_Hotel_Search::get_date_range()
S
52 4 26
MHRS_Hotel_Search::book_rooms_on()
S
59 4 14
MHRS_Room_Search::get_min_available_rooms()
S
61 4 13
MHRS_Room_Search::is_available_on()
S
64 4 11
MHRS_Location::get_city()
S
55 3 19
MHRS_Location::get_state()
S
55 3 19
MHRS_Location::get_country()
S
55 3 19
MHRS_Misc::get_hotel()
S
55 3 19
MHRS_Misc::get_room()
S
55 3 19
MHRS_Misc::get_country()
S
55 3 18
MHRS_Room_Type::register_custom_post_type()
S
44 1 46
MHRS_Booking::register_custom_post_type()
S
44 1 46
MHRS_State::register_custom_post_type()
S
44 1 46
MHRS_City::register_custom_post_type()
S
44 1 46
MHRS_Country::register_custom_post_type()
S
44 1 46
MHRS_Hotel::register_custom_post_type()
S
44 1 46
MHRS_Misc::current_url()
S
71 4 4
MHRS_State::custom_column_content()
S
59 3 14
MHRS_Hotel_Search::search_rooms()
S
61 3 13
get_option_mhrs_general()
S
63 3 11
MHRS_Hotel::register_assets()
S
56 2 18
MHRS_Misc::hotel_search_page_url()
S
66 3 9
MHRS_Misc::view_hotels_page_id()
S
66 3 9
MHRS_Misc::view_hotels_page_url()
S
66 3 9
MHRS_Misc::view_rooms_page_url()
S
66 3 9
MHRS_Misc::view_rooms_page_id()
S
66 3 9
MHRS_Misc::room_cart_page_id()
S
66 3 9
MHRS_Misc::room_cart_page_url()
S
66 3 9
MHRS_Room_Search::is_available_on_the_day()
S
65 3 10
send_mail_via_wp_mail()
S
58 2 15
MHRS_Activate::is_published()
S
66 3 9
MHRS_Misc::hotel_search_page_id()
S
66 3 9
GIMBGallery::register_js()
S
60 2 14
GIMBGallery::add_meta_box_func()
S
61 2 13
MHRS_Settings::get_settings()
S
61 2 12
MHRS_Misc::print_r()
S
62 2 12
MHRS_Country::render_details()
S
56 1 19
MHRS_Settings::register_menu()
S
60 1 16
MHRS_Init::main_menu_reg()
S
60 1 16
MHRS_Activate::get_instance()
S
72 2 6
MHRS_Template_Loader::get_instance()
S
72 2 6
MHRS_Hotel_Search_SC::get_instance()
S
72 2 6
MHRS_Settings::get_instance()
S
72 2 6
MHRS_State::get_instance()
S
72 2 6
MHRS_Init::__construct()
S
64 2 9
GIMBGallery::register_css()
S
73 2 5
MHRS_Booking_Email::from_name()
S
69 2 7
GIMBGallery::enqueue_css()
S
73 2 5
mhrs_load_loations_js()
S
58 1 15
MHRS_Country::get_instance()
S
72 2 6
MHRS_Hotel::get_instance()
S
72 2 6
GIMBGallery::enqueue_js()
S
73 2 5
MHRS_My_Bookings_SC::get_instance()
S
72 2 6
MHRS_Room_Type::get_instance()
S
72 2 6
MHRS_Booking_Email::from_email()
S
69 2 7
MHRS_Misc::is_date()
S
74 2 4
MHRS_Init::get_instance()
S
72 2 6
MHRS_City::get_instance()
S
72 2 6
MHRS_Booking::get_instance()
S
72 2 6
mhrs_hotel_rooms_gallery_admin_js()
S
59 1 14
mhrs_hotel_rooms_gallery_js()
S
59 1 14
MHRS_Hotel::add_custom_columns()
S
59 1 14
MHRS_Booking_Email::send_mail()
S
60 1 13
MHRS_Booking::add_custom_columns()
S
61 1 12
mhrs_admin_end_css()
S
63 1 12
MHRS_Hotel::__construct()
S
60 1 12
MHRS_City::__construct()
S
61 1 11
MHRS_State::__construct()
S
61 1 11
MHRS_Room_Type::__construct()
S
61 1 11
MHRS_City::add_meta_boxes()
S
75 1 4
MHRS_Hotel::custom_column_sortable()
S
68 1 8
MHRS_Hotel_Search_SC::__construct()
S
79 1 3
mhrs_jquery_ui_css()
S
75 1 4
MHRS_Room_Type::edit_custom_post_load()
S
69 1 7
mhrs_money_format()
S
79 1 3
GIMBGallery::add_action_meta_box()
S
75 1 4
mhrs_rooms_gallery_css()
S
69 1 7
MHRS_City::register_details()
S
65 1 10
MHRS_Booking::__construct()
S
64 1 9
MHRS_City::save_meta_boxes()
S
79 1 3
MHRS_Booking_Email::get_to_email()
S
70 1 6
MHRS_State::add_custom_columns()
S
65 1 9
MHRS_Init::on_plugin_deactivate()
S
100 1 2
MHRS_Misc::sort_locations()
S
78 1 3
MHRS_Init::main_menu()
S
100 1 1
GIMBGallery::add_css()
S
75 1 4
MHRS_State::save_meta_boxes()
S
79 1 3
MHRS_State::register_details()
S
65 1 10
mhrs_detect_events()
S
75 1 4
GIMBGallery::add_js()
S
75 1 4
MHRS_Init::on_plugin_activate()
S
82 1 3
yss_settings_tab()
S
77 1 4
MHRS_Booking::custom_column_sortable()
S
70 1 7
MHRS_Template_Loader::__construct()
S
76 1 4
MHRS_Settings::__construct()
S
73 1 5
MHRS_City::add_custom_columns()
S
63 1 10
MHRS_City::edit_custom_post_load()
S
76 1 4
MHRS_My_Bookings_SC::__construct()
S
79 1 3
MHRS_City::custom_column_sortable()
S
74 1 5
MHRS_Booking::register_details()
S
65 1 10
MHRS_Country::register_details()
S
65 1 10
MHRS_Country::add_gallery_meta_box()
S
72 1 5
mhrs_noimage_url()
S
77 1 4
mhrs_noimage_width()
S
76 1 4
MHRS_State::add_gallery_meta_box()
S
72 1 5
MHRS_Room_Search::get_remaining_rooms_on()
S
71 1 5
MHRS_Hotel::add_assets()
S
100 1 2
MHRS_State::add_meta_boxes()
S
75 1 4
MHRS_Booking_Email::set_content_type()
S
81 1 3
MHRS_Booking::edit_custom_post_load()
S
71 1 6
MHRS_Hotel::edit_custom_post_load()
S
69 1 7
MHRS_Room_Type::add_gallery_meta_box()
S
72 1 5
MHRS_Room_Type::add_custom_columns()
S
64 1 10
MHRS_Hotel_Search_SC::get_all_location_list()
S
100 1 2
MHRS_Room_Type::add_meta_boxes()
S
75 1 4
mhrs_set_html_content_type_func()
S
83 1 3
MHRS_Hotel::save_meta_boxes()
S
79 1 3
MHRS_Room_Type::custom_column_sortable()
S
68 1 8
MHRS_State::custom_column_sortable()
S
77 1 4
MHRS_Country::__construct()
S
66 1 8
mhrs_plugin_init()
S
83 1 3
MHRS_Room_Type::save_meta_boxes()
S
79 1 3
MHRS_Hotel::register_details()
S
65 1 10
MHRS_Activate::create_pages()
S
79 1 4
MHRS_Country::add_meta_boxes()
S
75 1 4
MHRS_Booking::add_meta_boxes()
S
79 1 3
MHRS_Hotel::add_gallery_meta_box()
S
72 1 5
MHRS_State::edit_custom_post_load()
S
79 1 3
mhrs_paginate_links()
S
63 1 10
MHRS_Hotel::add_meta_boxes()
S
75 1 4
MHRS_City::add_gallery_meta_box()
S
72 1 5
MHRS_Room_Search::get_total_rooms()
S
83 1 3
mhrs_ajax_loader_url()
S
77 1 4
MHRS_Booking::save_meta_boxes()
S
79 1 3
MHRS_Country::save_meta_boxes()
S
79 1 3
MHRS_Activate::__construct()
S
79 1 3
mhrs_init_start()
S
82 1 3
MHRS_Hotel_Search::book_room_on()
S
71 1 5
MHRS_Template_Loader::global_requests()
S
64 1 10
MHRS_Country::add_custom_columns()
S
72 1 5
MHRS_Room_Search::__construct()
S
71 1 5
mhrs_fe_style()
S
75 1 4
MHRS_Room_Type::register_details()
S
65 1 10
mhrs_noimage_height()
S
83 1 3