NewsletterSubscription D

Total Complexity 372
Dependencies 9
Dependents 8
Total lines 1,938
Lines of code 1,309
Logical lines of code 917
Comment lines 264
Methods 45
Properties 3

Methods 45

Method Rating Maintainability Complexity Lines of code
shortcode_newsletter_field()
D
21
48 186
get_subscription_form()
D
27
38 149
hook_newsletter_action()
D
30 34 109
update_user_from_request()
C
35 27 74
build_subscription()
B
38 22 62
subscribe2()
B
36 21 74
subscribe()
B
36 19 74
get_form_hidden_fields()
A
45 15 38
get_default_subscription()
A
48 12 31
send_message()
A
46 11 36
confirm()
A
44 9 45
sanitize()
A
49 9 30
hook_init()
A
54 8 17
get_form_implicit_lists()
S
50 7 29
get_subscription_form_minimal()
S
47 6 34
shortcode_newsletter_form()
S
58 6 15
get_subscription_form_custom()
S
50 5 28
show_message()
S
52 5 25
hook_wp_footer()
S
53 5 24
hook_newsletter_page_text()
S
55 5 17
set_updated()
S
57 5 17
_shortcode_label()
S
58 5 15
send_activation_email()
S
61 5 13
get_privacy_field()
S
55 4 19
mail()
S
55 4 19
get_privacy_url()
S
63 4 10
get_text_message()
S
65 3 9
_shortcode_placeholder()
S
65 3 9
hook_the_content()
S
61 2 13
get_form()
S
60 2 12
get_language_from_request()
S
77 2 3
hook_wp_enqueue_scripts()
S
72 2 5
hook_newsletter_action_popup()
S
64 2 10
notify_admin_on_subscription()
S
64 2 9
replace_lists()
S
63 2 10
instance()
S
71 2 6
get_options()
S
71 2 6
build_field_admin_notice()
S
71 2 6
get_form_option()
S
80 1 3
get_form_text()
S
80 1 3
get_form_javascript()
S
100 1 2
is_double_optin()
S
80 1 3
add_microdata()
S
81 1 3
__construct()
S
75 1 4
get_form_options()
S
81 1 3