WC_Coupon_Data_Store_CPT A

Total Complexity 67
Dependencies 3
Dependents 0
Total lines 713
Lines of code 420
Logical lines of code 162
Comment lines 209
Methods 20
Properties 3

Methods 20

Method Rating Maintainability Complexity Lines of code
update_post_meta()
A
42 14 52
check_and_hold_coupon()
A
44 8 46
check_and_hold_coupon_for_user()
A
44 7 46
read()
S
45 6 37
update()
S
50 5 25
add_coupon_used_by()
S
56 4 19
create()
S
50 3 29
delete()
S
55 3 21
decrease_usage_count()
S
56 3 19
increase_usage_count()
S
60 3 13
update_usage_count_meta()
S
59 2 13
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
get_tentative_usage_count()
S
72 1 6
get_ids_by_code()
S
66 1 9