Newspack_Blocks D

Total Complexity 139
Dependencies 5
Dependents 5
Total lines 832
Lines of code 566
Logical lines of code 247
Comment lines 193
Methods 29
Properties 1

Methods 29

Method Rating Maintainability Complexity Lines of code
build_articles_query()
C
36 28 74
can_use_streamlined_donate_block()
A
57 11 15
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_term_classes()
S
52 7 24
get_sponsor_logos()
S
50 6 29
prepare_authors()
S
50 6 28
get_sponsor_byline()
S
50 6 28
block_classes()
S
57 6 16
enqueue_view_assets()
S
51 5 29
get_post_link()
S
59 6 13
is_amp()
S
64 6 9
filter_excerpt_length()
S
59 4 15
enqueue_block_editor_assets()
S
48 2 36
script_enqueue_helper()
S
57 3 16
get_sponsor_label()
S
63 4 10
template_inc()
S
61 3 13
enqueue_block_styles_assets()
S
62 3 11
sanitize_svg()
S
57 1 19
get_all_sponsors()
S
69 2 6
mark_view_script_as_amp_plus_allowed()
S
70 2 6
remove_excerpt_length_filter()
S
65 2 10
filter_excerpt_more()
S
72 2 5
add_image_sizes()
S
58 1 15
remove_wc_memberships_excerpt_limit()
S
76 1 4
more_excerpt()
S
81 1 3
remove_excerpt_more_filter()
S
78 1 3
init()
S
69 1 6