Newspack_Blocks D

Total Complexity 212
Dependencies 10
Dependents 5
Total lines 1,517
Lines of code 998
Logical lines of code 438
Comment lines 379
Methods 46
Properties 3

Methods 46

Method Rating Maintainability Complexity Lines of code
build_articles_query()
D
23
50 164
filter_posts_clauses_when_co_authors()
A
39 10 67
image_size_for_orientation()
A
39 6 82
get_term_classes()
A
49 9 29
manage_view_scripts()
A
49 7 31
get_patterns_for_post_type()
S
52 7 24
get_specific_posts_from_blocks()
S
53 7 24
enqueue_block_editor_assets()
S
43 5 51
get_sponsor_logos()
S
50 6 29
get_sponsor_byline()
S
50 6 28
filter_excerpt()
S
51 6 27
hide_post_content_when_iframe_block_is_fullscreen()
S
54 6 22
block_classes()
S
57 6 16
get_post_link()
S
59 6 13
get_all_sponsors()
S
58 5 15
enqueue_view_assets()
S
52 4 26
prepare_authors()
S
54 4 20
is_rendering_stripe_payment_form()
S
64 5 10
filter_excerpt_length()
S
59 4 15
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
get_custom_taxonomies()
S
52 2 29
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
get_post_status_label()
S
60 2 14
init()
S
60 2 12
get_sanitized_image_attributes()
S
57 1 20
sanitize_svg()
S
57 1 19
add_image_sizes()
S
56 1 18
remove_excerpt_filter()
S
73 2 5
newspack_display_sponsors_and_categories()
S
70 2 6
remove_excerpt_length_filter()
S
65 2 10
filter_excerpt_more()
S
72 2 5
newspack_display_sponsors_and_authors()
S
70 2 6
group_by_post_id_filter()
S
69 2 7
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
should_deduplicate_block()
S
77 1 3
iframe_accepted_file_mimes()
S
71 1 6
iframe_archive_accepted_file_mimes()
S
79 1 3