EDD_Discount D

Total Complexity 226
Dependencies 4
Dependents 33
Total lines 1,964
Lines of code 717
Logical lines of code 395
Comment lines 968
Methods 62
Properties 40

Methods 62

Method Rating Maintainability Complexity Lines of code
insert_discount()
C
39 28 54
build_meta()
B
43 25 41
is_product_requirements_met()
B
40 19 63
is_used()
A
39 14 63
is_valid()
A
54 10 19
save()
A
49 8 33
setup_discount()
A
45 7 40
is_active()
S
57 8 15
find_by_code()
S
54 6 21
find_by_name()
S
54 6 21
add()
S
53 5 23
__construct()
S
57 5 18
get_status_label()
S
59 4 15
is_expired()
S
59 4 15
decrease_usage()
S
59 4 15
is_started()
S
59 4 14
is_maxed_out()
S
63 4 10
increase_usage()
S
60 3 14
__set()
S
60 3 13
get_discounted_amount()
S
61 3 12
update()
S
57 2 16
update_meta()
S
65 3 8
get_excluded_products()
S
69 3 6
is_min_price_met()
S
62 3 10
get_product_reqs()
S
69 3 6
__get()
S
63 3 10
update_status()
S
60 2 14
__isset()
S
68 2 7
exists()
S
72 2 6
is_single_use()
S
78 1 3
get_is_single_use()
S
78 1 3
get_is_not_global()
S
78 1 3
get_product_condition()
S
79 1 3
get_max_uses()
S
78 1 3
get_min_price()
S
78 1 3
get_amount()
S
78 1 3
get_uses()
S
78 1 3
setup_uses()
S
75 1 4
array_convert()
S
80 1 3
setup_name()
S
76 1 4
setup_code()
S
75 1 4
setup_status()
S
75 1 4
setup_type()
S
75 1 4
setup_amount()
S
75 1 4
setup_product_requirements()
S
75 1 4
setup_excluded_products()
S
75 1 4
setup_start()
S
75 1 4
setup_expiration()
S
75 1 4
setup_max_uses()
S
75 1 4
get_expiration()
S
79 1 3
setup_min_price()
S
75 1 4
setup_is_single_use()
S
75 1 4
setup_is_not_global()
S
75 1 4
setup_product_condition()
S
75 1 4
get_meta()
S
74 1 4
get_ID()
S
82 1 3
get_name()
S
82 1 3
get_code()
S
79 1 3
get_status()
S
79 1 3
get_type()
S
79 1 3
get_start()
S
79 1 3
edit_url()
S
77 1 3