rtbBooking D

Total Complexity 309
Dependencies 5
Dependents 10
Total lines 1,700
Lines of code 1,011
Logical lines of code 581
Comment lines 331
Methods 36
Properties 39

Methods 36

Method Rating Maintainability Complexity Lines of code
validate_submission()
D
4
111 379
determine_status()
B
44 20 39
insert_post_meta()
B
42 16 52
is_under_max_seats()
B
40 16 51
is_under_max_reservations()
A
42 13 47
is_time_based_deposit_applicable()
A
45 13 39
calculate_deposit()
A
50 12 26
under_max_confirm_seats()
A
45 9 36
is_duplicate_booking()
A
47 9 33
insert_post_data()
A
50 8 28
under_max_confirm_reservations()
A
46 7 34
is_valid_ip()
S
57 7 16
is_valid_email()
S
57 7 16
is_valid_table()
S
60 7 11
is_field_empty()
S
61 6 12
load_post()
S
62 6 11
insert_booking()
S
55 5 22
load_post_metadata()
S
44 3 48
get_location_slug()
S
65 4 9
prepare_request_data()
S
67 3 7
field_has_error()
S
67 3 8
set_location_name()
S
64 3 10
add_log()
S
65 3 9
format_timestamp()
S
68 2 6
is_valid_submission()
S
71 2 6
is_size_based_deposit_applicable()
S
69 2 7
get_timeslot()
S
70 2 6
payment_paid()
S
69 2 7
__construct()
S
98 1 1
load_wp_post()
S
64 1 10
format_date()
S
74 1 4
set_admin_request()
S
81 1 3
payment_failed()
S
70 1 6
is_conditional_deposit_enabled()
S
75 1 4
is_time_based_deposit_enabled()
S
76 1 4
is_size_based_deposit_enabled()
S
76 1 4