rtbBooking D

Total Complexity 308
Dependencies 5
Dependents 10
Total lines 1,674
Lines of code 1,005
Logical lines of code 578
Comment lines 319
Methods 34
Properties 37

Methods 34

Method Rating Maintainability Complexity Lines of code
validate_submission()
D
5
109 379
determine_status()
B
44 20 39
is_under_max_seats()
B
39 18 53
insert_post_meta()
B
42 16 52
is_under_max_reservations()
B
40 16 50
calculate_deposit()
A
48 14 30
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_email()
S
57 7 16
is_valid_ip()
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
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
payment_failed()
S
70 1 6
is_conditional_deposit_enabled()
S
75 1 4
is_time_based_deposit_enabled()
S
76 1 4
__construct()
S
98 1 1
set_admin_request()
S
81 1 3
format_date()
S
74 1 4
load_wp_post()
S
64 1 10
is_size_based_deposit_enabled()
S
76 1 4