NewsletterSubscription D

Total Complexity 341
Dependencies 11
Dependents 8
Total lines 1,796
Lines of code 1,234
Logical lines of code 859
Comment lines 235
Methods 49
Properties 3

Methods 49

Method Rating Maintainability Complexity Lines of code
shortcode_newsletter_field()
D
21
49 188
hook_newsletter_action()
D
31 32 103
get_subscription_form()
C
33 26 98
subscribe2()
C
30 24 114
build_subscription()
C
36 26 71
get_form_hidden_fields()
B
41 19 51
get_default_subscription()
A
48 12 31
hook_newsletter_page_text()
A
47 10 34
send_message()
A
48 10 33
get_button()
A
48 9 34
confirm()
A
48 7 32
hook_init()
A
54 8 17
get_form_implicit_lists()
S
50 7 29
get_subscription_form_minimal()
S
47 6 33
send_welcome_email()
S
50 6 27
redirect_to_confirmed()
S
51 6 27
shortcode_newsletter_form()
S
58 6 15
get_subscription_form_custom()
S
51 5 26
hook_wp_footer()
S
53 5 24
set_updated()
S
57 5 17
_shortcode_label()
S
58 5 15
mail()
S
55 4 19
get_privacy_field()
S
55 4 19
show_message()
S
59 4 15
get_privacy_url()
S
63 4 10
redirect_to_confirmation()
S
59 3 14
send_activation_email()
S
61 3 11
_shortcode_placeholder()
S
65 3 9
get_text_message()
S
65 3 9
hook_the_content()
S
61 2 13
get_form()
S
60 2 12
build_field_admin_notice()
S
71 2 6
replace_lists()
S
63 2 10
notify_admin_on_subscription()
S
64 2 9
instance()
S
71 2 6
get_options()
S
71 2 6
get_language_from_request()
S
77 2 3
hook_newsletter_action_popup()
S
64 2 10
hook_wp_enqueue_scripts()
S
72 2 5
get_form_javascript()
S
100 1 2
__construct()
S
75 1 4
update_user_from_request()
S
83 1 3
add_microdata()
S
81 1 3
subscribe()
S
83 1 3
save_subscription_meta()
S
100 1 2
get_form_text()
S
80 1 3
get_form_option()
S
80 1 3
get_form_options()
S
81 1 3
is_double_optin()
S
80 1 3