rtbBooking D

Total Complexity 280
Dependencies 5
Dependents 9
Total lines 1,507
Lines of code 951
Logical lines of code 536
Comment lines 280
Methods 32
Properties 3

Methods 32

Method Rating Maintainability Complexity Lines of code
validate_submission()
D
5
105 379
is_under_max_seats()
B
40 17 51
determine_status()
B
46 18 35
is_under_max_reservations()
A
41 15 48
insert_post_meta()
A
44 13 46
is_time_based_deposit_applicable()
A
45 13 39
under_max_confirm_seats()
A
45 9 36
is_duplicate_booking()
A
47 9 33
under_max_confirm_reservations()
A
46 7 34
insert_post_data()
S
52 6 25
is_valid_ip()
S
57 6 16
is_valid_email()
S
57 6 16
calculate_deposit()
S
60 6 12
is_field_empty()
S
61 6 12
load_post()
S
62 6 11
insert_booking()
S
54 5 22
is_valid_table()
S
62 6 10
load_post_metadata()
S
45 3 44
field_has_error()
S
67 3 8
prepare_request_data()
S
67 3 7
add_log()
S
65 3 9
format_timestamp()
S
70 2 5
payment_paid()
S
69 2 7
is_size_based_deposit_applicable()
S
69 2 7
is_valid_submission()
S
71 2 6
is_time_based_deposit_enabled()
S
76 1 4
is_conditional_deposit_enabled()
S
75 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