Jetpack_RelatedPosts D

Total Complexity 215
Dependencies 9
Dependents 2
Total lines 1,820
Lines of code 1,078
Logical lines of code 405
Comment lines 558
Methods 44
Properties 8

Methods 44

Method Rating Maintainability Complexity Lines of code
_get_es_filters_from_args()
B
37 23 68
_get_related_post_ids()
B
37 19 70
parse_options()
A
48 17 30
render_block()
A
42 15 49
_action_frontend_init_ajax()
A
32 6 131
get_options()
A
49 12 29
print_setting_head()
A
35 4 139
_generate_related_post_image_params()
A
44 9 49
_generate_related_post_context()
A
48 9 34
render_block_item()
A
45 8 44
filter_add_target_to_dom()
S
60 7 13
get_for_post_id()
S
51 5 27
_enqueue_assets()
S
53 5 23
print_setting_html()
S
43 2 67
_enabled_for_request()
S
65 6 8
get_server_rendered_html()
S
58 5 13
__construct()
S
49 3 31
action_frontend_init()
S
58 4 15
parse_numeric_get_arg()
S
61 4 12
_get_coalesced_range()
S
57 3 16
get_client_rendered_html()
S
59 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
_filter_non_public_posts()
S
63 3 10
rest_register_related_posts()
S
60 2 14
get_related_post_data_for_post()
S
51 1 28
get_headline()
S
62 2 12
render_block_row()
S
63 2 11
_get_excerpt()
S
68 2 7
_to_utf8()
S
69 2 7
get_client_rendered_html_unsupported()
S
72 2 6
get_option()
S
69 2 7
_allow_feature_toggle()
S
70 2 6
action_admin_init()
S
64 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