Newspack_Newsletters_Editor A

Total Complexity 71
Dependencies 7
Dependents 3
Total lines 653
Lines of code 429
Logical lines of code 150
Comment lines 169
Methods 25
Properties 2

Methods 25

Method Rating Maintainability Complexity Lines of code
enqueue_block_editor_assets()
A
34 10 103
strip_editor_modifications()
A
48 7 34
newspack_font_sizes()
A
48 7 34
maybe_exclude_sponsored_posts()
S
52 6 24
get_color_palette_css()
S
53 6 22
newspack_get_author_info()
S
53 4 24
newsletters_allowed_block_types()
S
51 2 31
add_newspack_author_info()
S
52 2 30
register_meta()
S
56 2 19
disable_autosave()
S
70 3 6
filter_excerpt_length()
S
62 2 12
maybe_filter_excerpt_length()
S
68 2 7
get_current_user_test_emails()
S
65 2 9
maybe_reset_excerpt_length()
S
72 2 6
instance()
S
72 2 6
strip_block_patterns()
S
71 2 6
is_editing_email()
S
74 2 4
__construct()
S
58 1 14
is_editing_newsletter_ad()
S
79 1 3
is_editing_newsletter()
S
79 1 3
add_custom_block_category()
S
65 1 10
remove_excerpt_length_filter()
S
68 1 8
remove_wc_memberships_excerpt_limit()
S
76 1 4
get_email_editor_cpts()
S
69 1 7
newspack_get_sponsors_info()
S
77 1 3