Newspack_Blocks D

Total Complexity 197
Dependencies 10
Dependents 5
Total lines 1,389
Lines of code 902
Logical lines of code 411
Comment lines 353
Methods 45
Properties 3

Methods 45

Method Rating Maintainability Complexity Lines of code
build_articles_query()
D
25
43 148
filter_posts_clauses_when_co_authors()
A
39 10 67
image_size_for_orientation()
A
42 5 68
manage_view_scripts()
A
49 7 31
get_patterns_for_post_type()
S
52 7 24
get_sponsor_logos()
S
50 6 29
prepare_authors()
S
50 6 28
get_sponsor_byline()
S
50 6 28
hide_post_content_when_iframe_block_is_fullscreen()
S
54 6 22
get_term_classes()
S
54 6 21
enqueue_block_editor_assets()
S
44 4 48
block_classes()
S
57 6 16
enqueue_view_assets()
S
51 5 29
get_post_link()
S
59 6 13
get_all_sponsors()
S
58 5 15
filter_excerpt()
S
55 4 19
filter_excerpt_length()
S
59 4 15
is_rendering_stripe_payment_form()
S
64 5 10
disable_jetpack_donate()
S
60 4 13
get_color_for_contrast()
S
51 3 26
script_enqueue_helper()
S
57 3 16
get_sponsor_label()
S
63 4 10
template_include()
S
60 3 14
template_inc()
S
61 3 13
enqueue_block_styles_assets()
S
62 3 11
enqueue_placeholder_blocks_assets()
S
58 2 17
is_amp()
S
71 3 6
get_post_status_label()
S
60 2 14
init()
S
59 2 13
sanitize_svg()
S
57 1 19
newspack_display_sponsors_and_categories()
S
70 2 6
remove_excerpt_filter()
S
73 2 5
add_image_sizes()
S
58 1 15
remove_excerpt_length_filter()
S
65 2 10
filter_excerpt_more()
S
72 2 5
group_by_post_id_filter()
S
69 2 7
newspack_display_sponsors_and_authors()
S
70 2 6
can_render_tiers_based_layout()
S
66 2 8
mark_view_script_as_amp_plus_allowed()
S
69 2 6
iframe_document_accepted_file_mimes()
S
62 1 12
remove_wc_memberships_excerpt_limit()
S
76 1 4
more_excerpt()
S
81 1 3
remove_excerpt_more_filter()
S
78 1 3
iframe_archive_accepted_file_mimes()
S
79 1 3
iframe_accepted_file_mimes()
S
71 1 6