WC_Coupon_Data_Store_CPT A

Total Complexity 68
Dependencies 3
Dependents 0
Total lines 735
Lines of code 430
Logical lines of code 169
Comment lines 218
Methods 21
Properties 3

Methods 21

Method Rating Maintainability Complexity Lines of code
update_post_meta()
A
42 14 52
check_and_hold_coupon()
A
43 8 47
check_and_hold_coupon_for_user()
A
43 7 47
read()
S
45 6 38
update()
S
50 5 25
add_coupon_used_by()
S
55 4 20
create()
S
50 3 29
delete()
S
55 3 21
decrease_usage_count()
S
55 3 20
increase_usage_count()
S
60 3 13
update_usage_count_meta()
S
58 2 14
get_tentative_usage_query_for_user()
S
55 1 22
get_tentative_usage_query()
S
59 1 17
get_code_by_id()
S
63 1 13
get_usage_by_user_id()
S
62 1 12
get_usage_by_email()
S
62 1 12
get_tentative_held_time()
S
77 1 3
get_tentative_usages_for_user()
S
71 1 6
refresh_coupon_data()
S
76 1 4
get_tentative_usage_count()
S
72 1 6
get_ids_by_code()
S
66 1 9