Jetpack_RelatedPosts D

Total Complexity 245
Dependencies 10
Dependents 2
Total lines 2,043
Lines of code 1,200
Logical lines of code 460
Comment lines 675
Methods 46
Properties 8

Methods 46

Method Rating Maintainability Complexity Lines of code
get_es_filters_from_args()
B
37 23 71
get_related_post_ids()
B
36 21 78
render_block()
B
37 21 67
parse_options()
B
47 17 32
generate_related_post_image_params()
A
41 12 67
action_frontend_init_ajax()
A
31 7 138
render_block_item()
A
40 11 62
get_options()
A
48 12 34
print_setting_head()
A
35 4 140
generate_related_post_context_block()
A
45 9 43
generate_related_post_context()
A
48 9 34
filter_add_target_to_dom()
A
55 9 19
action_frontend_init()
S
57 6 16
get_for_post_id()
S
51 5 27
enqueue_assets()
S
52 5 24
print_setting_html()
S
43 2 67
enabled_for_request()
S
65 6 8
get_server_rendered_html()
S
58 5 14
parse_numeric_get_arg()
S
60 4 13
get_client_rendered_html()
S
59 3 16
get_coalesced_range()
S
57 3 16
requires_scripts()
S
69 4 7
init()
S
64 4 10
init_raw()
S
64 4 10
get_title()
S
61 3 12
get_related_posts()
S
59 2 15
__construct()
S
62 3 10
filter_non_public_posts()
S
63 3 10
get_related_post_data_for_post()
S
50 1 29
rest_register_related_posts()
S
60 2 14
get_headline()
S
62 2 12
render_block_row()
S
63 2 11
allow_feature_toggle()
S
70 2 6
action_admin_init()
S
64 2 8
get_client_rendered_html_unsupported()
S
72 2 6
get_option()
S
69 2 7
generate_related_post_display_author()
S
66 2 8
to_utf8()
S
69 2 7
get_excerpt()
S
66 2 8
setup_shortcode()
S
74 1 4
test_for_shortcode()
S
75 1 4
render_amp_reader_mode_css()
S
79 1 3
get_blog_id()
S
80 1 3
action_frontend_init_page()
S
72 1 5
log_click()
S
91 1 2
rest_get_related_posts()
S
78 1 3