rtbBooking D

Total Complexity 296
Dependencies 5
Dependents 10
Total lines 1,588
Lines of code 996
Logical lines of code 570
Comment lines 293
Methods 33
Properties 3

Methods 33

Method Rating Maintainability Complexity Lines of code
validate_submission()
D
5
105 379
determine_status()
B
45 19 39
is_under_max_seats()
B
40 17 51
is_under_max_reservations()
A
41 15 48
insert_post_meta()
A
43 14 49
calculate_deposit()
A
47 14 31
is_time_based_deposit_applicable()
A
45 13 39
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_table()
S
60 7 11
is_valid_email()
S
57 6 16
is_valid_ip()
S
57 6 16
is_field_empty()
S
61 6 12
load_post()
S
62 6 11
insert_booking()
S
54 5 22
load_post_metadata()
S
44 3 48
field_has_error()
S
67 3 8
prepare_request_data()
S
67 3 7
add_log()
S
65 3 9
set_location_name()
S
64 3 10
payment_paid()
S
69 2 7
is_valid_submission()
S
71 2 6
is_size_based_deposit_applicable()
S
69 2 7
format_timestamp()
S
68 2 6
is_conditional_deposit_enabled()
S
75 1 4
is_time_based_deposit_enabled()
S
76 1 4
__construct()
S
98 1 1
payment_failed()
S
70 1 6
format_date()
S
74 1 4
load_wp_post()
S
64 1 10
is_size_based_deposit_enabled()
S
76 1 4