NewsletterSubscription D

Total Complexity 383
Dependencies 13
Dependents 9
Total lines 2,007
Lines of code 1,393
Logical lines of code 976
Comment lines 249
Methods 54
Properties 4

Methods 54

Method Rating Maintainability Complexity Lines of code
shortcode_newsletter_field()
D
21
51 192
hook_newsletter_action()
D
31 32 103
subscribe2()
C
28
28 128
get_subscription_form()
C
31 29 105
build_subscription()
C
35 27 75
get_form_hidden_fields()
B
40 20 54
get_default_subscription()
A
46 14 35
hook_newsletter_page_text()
A
44 12 43
send_message()
A
48 10 33
hook_init()
A
51 10 23
hook_newsletter_action_dummy()
A
49 9 34
get_button()
A
48 9 34
get_subscription_form_custom()
A
48 8 32
confirm()
A
48 7 32
get_form_implicit_lists()
S
50 7 29
get_subscription_form_minimal()
S
47 6 33
redirect_to_confirmation()
S
51 6 27
redirect_to_confirmed()
S
51 6 27
shortcode_newsletter_form()
S
58 6 15
send_activation_email()
S
51 5 27
send_welcome_email()
S
51 5 26
set_updated()
S
57 5 17
_shortcode_label()
S
58 5 15
mail()
S
54 4 20
get_privacy_field()
S
55 4 19
hook_wp_footer()
S
61 4 16
show_message()
S
59 4 15
get_default_activation_email_id()
S
59 3 16
hook_the_content()
S
58 3 16
get_privacy_url()
S
63 4 10
get_default_welcome_email_id()
S
59 3 15
notify_admin_on_subscription()
S
61 3 12
get_text_message()
S
65 3 9
_shortcode_placeholder()
S
65 3 9
get_form()
S
59 2 13
instance()
S
71 2 6
build_field_admin_notice()
S
71 2 6
hook_wp_enqueue_scripts()
S
64 2 8
hook_newsletter_action_popup()
S
64 2 10
get_language_from_request()
S
77 2 3
replace_lists()
S
63 2 10
get_options()
S
71 2 6
get_form_options()
S
81 1 3
send_confirmation_email()
S
80 1 3
get_form_option()
S
80 1 3
__construct()
S
75 1 4
save_subscription_meta()
S
100 1 2
subscribe()
S
83 1 3
add_microdata()
S
81 1 3
get_form_javascript()
S
100 1 2
update_user_from_request()
S
83 1 3
is_double_optin()
S
80 1 3
get_default_confirmation_email_id()
S
81 1 3
get_form_text()
S
80 1 3