YITH_WCAF_Affiliate_Handler D

Total Complexity 358
Dependencies 7
Dependents 1
Total lines 2,117
Lines of code 1,228
Logical lines of code 636
Comment lines 583
Methods 55
Properties 2

Methods 55

Method Rating Maintainability Complexity Lines of code
get_affiliates()
D
22
60 169
save_affiliate_extra_fields()
B
39 23 60
check_affiliate()
B
43 24 39
process_bulk_actions()
B
40 22 54
handle_switch_status_panel_actions()
B
41 17 52
render_affiliate_extra_fields()
B
36 14 90
per_status_count()
A
38 14 73
register_affiliate()
A
49 15 25
become_an_affiliate()
A
45 9 38
print_top_fields()
A
50 9 28
get_affiliates_via_ajax()
S
50 7 26
print_affiliate_fields()
S
60 7 13
process_dangling_commissions()
S
48 5 36
is_valid_token()
S
58 6 15
get_affiliate_by_token()
S
51 5 28
get_affiliate_by_user_id()
S
51 5 28
get_affiliate_by_id()
S
51 5 28
handle_process_dangling_commissions_panel_action()
S
54 5 21
add_affiliate()
S
54 5 20
get_affiliate_balance()
S
55 5 19
add()
S
49 4 31
print_ban_message()
S
61 5 12
update()
S
60 5 12
is_user_banned_affiliate()
S
62 5 11
get_readable_status()
S
60 4 14
get_user_by_token()
S
61 4 13
add_screen_columns()
S
52 3 23
set_screen_option()
S
76 4 3
add_screen_option()
S
64 4 9
can_user_see_section()
S
64 4 10
add_role()
S
65 4 8
is_user_valid_affiliate()
S
60 3 14
print_bottom_fields()
S
61 3 13
is_user_rejected_affiliate()
S
63 3 10
get_instance()
S
65 3 10
update_affiliate_refunds()
S
66 3 8
is_user_pending_affiliate()
S
63 3 10
is_user_enabled_affiliate()
S
64 3 10
is_user_affiliate()
S
64 3 10
remove_role()
S
66 3 8
update_affiliate_payments()
S
66 3 8
__construct()
S
50 1 28
count_affiliates()
S
55 1 21
get_affiliate_payments()
S
69 2 7
update_affiliate_total()
S
69 2 6
get_affiliate_total()
S
69 2 7
update_affiliate_rate()
S
64 2 9
get_affiliate_rate()
S
69 2 7
get_affiliate_refunds()
S
69 2 7
has_unpaid_commissions()
S
68 1 7
get_role_name()
S
81 1 3
print_affiliate_panel()
S
73 1 5
get_ref_name()
S
79 1 3
get_default_user_token()
S
75 1 4
delete()
S
72 1 5