Jetpack_RelatedPosts D

Total Complexity 251
Dependencies 12
Dependents 2
Total lines 2,057
Lines of code 1,202
Logical lines of code 469
Comment lines 684
Methods 46
Properties 8

Methods 46

Method Rating Maintainability Complexity Lines of code
get_es_filters_from_args()
B
37 23 71
render_block()
B
38 23 60
get_related_post_ids()
B
36 21 78
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 61
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
rest_get_related_posts()
S
60 5 13
parse_numeric_get_arg()
S
60 4 13
get_coalesced_range()
S
57 3 16
get_client_rendered_html()
S
59 3 16
init()
S
64 4 10
init_raw()
S
64 4 10
requires_scripts()
S
69 4 7
get_title()
S
61 3 12
__construct()
S
62 3 10
get_related_posts()
S
59 2 15
filter_non_public_posts()
S
63 3 10
rest_register_related_posts()
S
60 2 14
get_related_post_data_for_post()
S
50 1 29
get_headline()
S
62 2 12
render_post_list()
S
63 2 11
allow_feature_toggle()
S
70 2 6
get_option()
S
69 2 7
action_admin_init()
S
64 2 8
to_utf8()
S
69 2 7
get_excerpt()
S
66 2 8
get_client_rendered_html_unsupported()
S
72 2 6
generate_related_post_display_author()
S
66 2 8
log_click()
S
91 1 2
get_blog_id()
S
80 1 3
action_frontend_init_page()
S
72 1 5
test_for_shortcode()
S
75 1 4
render_amp_reader_mode_css()
S
79 1 3
setup_shortcode()
S
74 1 4