NewsletterSubscription D

Total Complexity 372
Dependencies 10
Dependents 9
Total lines 1,983
Lines of code 1,314
Logical lines of code 921
Comment lines 290
Methods 46
Properties 7

Methods 46

Method Rating Maintainability Complexity Lines of code
shortcode_newsletter_field()
D
20
53 196
hook_newsletter_action()
D
29 35 112
update_user_from_request()
C
35 27 74
get_subscription_form()
C
33 24 92
build_subscription()
B
39 21 60
subscribe()
B
36 19 74
subscribe2()
B
38 18 64
get_form_hidden_fields()
A
47 12 33
upgrade()
A
43 11 46
shortcode_newsletter()
A
44 11 41
sanitize()
A
49 9 30
confirm()
A
45 8 40
get_default_subscription()
A
51 9 24
save_options()
A
53 9 23
get_raw_options()
A
52 8 28
get_message_key_from_request()
A
57 8 16
get_form_implicit_lists()
S
51 7 28
get_subscription_form_custom()
S
47 6 34
get_options()
S
53 6 26
shortcode_newsletter_form()
S
58 6 15
get_subscription_form_minimal()
S
49 5 30
_shortcode_label()
S
56 5 19
set_updated()
S
57 5 17
get_privacy_field()
S
55 4 20
mail()
S
55 4 19
send_message()
S
57 4 15
get_privacy_url()
S
62 4 11
hook_admin_init()
S
63 4 9
show_message()
S
59 3 14
get_text_message()
S
65 3 9
get_form()
S
60 2 12
admin_menu()
S
61 2 12
replace_lists()
S
63 2 10
hook_init()
S
63 2 10
notify_admin_on_subscription()
S
64 2 9
setup_form_options()
S
73 2 5
build_field_admin_notice()
S
71 2 6
instance()
S
71 2 6
get_form_javascript()
S
100 1 2
get_form_options()
S
80 1 3
__construct()
S
68 1 6
send_activation_email()
S
79 1 3
is_double_optin()
S
80 1 3
register_source()
S
80 1 3
first_install()
S
100 1 2
add_microdata()
S
81 1 3