Code Analysis: Related Posts By Taxonomy 2.7.4

Function Rating Maintainability Complexity Lines of code
km_rpbt_query_related_posts()
D
20
53 182
km_kpbt_get_gallery_shortcode_html()
C
31 26 99
km_rpbt_get_terms()
B
43 24 41
km_rpbt_related_posts_by_taxonomy_gallery()
B
42 17 47
km_rpbt_get_gallery_editor_block_html()
B
41 16 49
Related_Posts_By_Taxonomy_Debug::wp_footer()
A
37 11 80
Related_Posts_By_Taxonomy_Cache::get_cache()
A
41 12 57
Related_Posts_By_Taxonomy::update()
A
47 13 32
km_rpbt_get_gallery_image_caption()
A
47 12 31
km_rpbt_sanitize_args()
A
49 11 28
Related_Posts_By_Taxonomy_Debug::pre_related_posts()
A
51 10 23
Related_Posts_By_Taxonomy_Rest_API::prepare_item_for_response()
A
48 9 31
km_rpbt_get_post_link()
A
49 9 30
km_rpbt_get_hierarchy_terms()
A
52 9 24
km_rpbt_get_editor_block_image()
A
51 9 23
Related_Posts_By_Taxonomy::widget()
A
48 8 31
km_rpbt_validate_shortcode_atts()
A
57 9 15
km_rpbt_get_related_posts_html()
A
47 7 37
km_rpbt_get_template()
A
53 8 21
Related_Posts_By_Taxonomy::back_compat_settings()
A
56 8 18
Related_Posts_By_Taxonomy_Cache::get_related_posts()
S
50 7 30
km_rpbt_get_term_objects()
S
47 6 33
km_rpbt_get_post_classes()
S
57 7 16
km_rpbt_validate_booleans()
S
58 7 15
Related_Posts_By_Taxonomy_Cache::set_cache()
S
50 6 27
Related_Posts_By_Taxonomy_Defaults::get_image_sizes()
S
52 6 24
Related_Posts_By_Taxonomy_Cache::wp_footer()
S
53 6 23
km_rpbt_get_feature_html()
S
53 6 22
km_rpbt_validate_gallery_args()
S
53 6 22
km_rpbt_get_related_posts()
S
55 6 20
Related_Posts_By_Taxonomy_Cache::setup()
S
50 5 27
Related_Posts_By_Taxonomy_Debug::check_cache()
S
53 5 21
km_rpbt_get_gallery_image_link()
S
52 5 21
Related_Posts_By_Taxonomy_Lazy_Loading::lazy_loading_query()
S
54 5 19
km_rpbt_validate_args()
S
57 5 17
km_rpbt_get_lazy_loading_html()
S
56 5 16
km_rpbt_get_default_settings()
S
49 4 31
Related_Posts_By_Taxonomy_Debug::debug_setup()
S
49 4 28
Related_Posts_By_Taxonomy::form()
S
51 4 27
km_kpbt_get_default_gallery_args()
S
54 4 20
Related_Posts_By_Taxonomy_Rest_API::filter_request_args()
S
55 4 19
Related_Posts_By_Taxonomy_Debug::posts_found()
S
58 4 16
Related_Posts_By_Taxonomy_Rest_API::get_item_schema()
S
44 1 60
Related_Posts_By_Taxonomy_Rest_API::get_item()
S
58 4 14
Related_Posts_By_Taxonomy_Debug::get_terms_names()
S
60 4 14
Related_Posts_By_Taxonomy_Defaults::get_post_types()
S
59 4 13
km_rpbt_get_widget_post_id()
S
61 4 13
km_rpbt_nested_array_sort()
S
60 4 13
km_rpbt_add_post_classes()
S
60 4 13
Related_Posts_By_Taxonomy_Debug::get_header()
S
53 3 22
Related_Posts_By_Taxonomy_Debug::posts_clauses()
S
54 3 20
Related_Posts_By_Taxonomy_Plugin::rest_api_init()
S
64 4 10
km_rpbt_related_posts_by_taxonomy_cmp()
S
68 4 7
km_rpbt_get_template_fields()
S
71 4 5
Related_Posts_By_Taxonomy_Debug::debug_start()
S
59 3 14
Related_Posts_By_Taxonomy_Cache::flush_cache()
S
60 3 13
Related_Posts_By_Taxonomy_Cache::display_cache_log()
S
63 3 11
Related_Posts_By_Taxonomy_Defaults::get_taxonomies()
S
62 3 11
Related_Posts_By_Taxonomy_Lazy_Loading::scripts_and_styles()
S
60 3 11
Related_Posts_By_Taxonomy::__construct()
S
55 2 19
Related_Posts_By_Taxonomy::get_instance_settings()
S
58 2 16
Related_Posts_By_Taxonomy_Cache::_flush_cache()
S
69 3 7
Related_Posts_By_Taxonomy_Cache::shutdown_flush_cache()
S
72 3 5
Related_Posts_By_Taxonomy_Rest_API::validate_args()
S
66 3 8
Related_Posts_By_Taxonomy_Rest_API::get_items_permissions_check()
S
71 3 6
Related_Posts_By_Taxonomy_Cache::is_valid_cache_args()
S
70 3 6
Related_Posts_By_Taxonomy_Debug::debug_link()
S
62 3 10
Related_Posts_By_Taxonomy_Cache::order_cache_args()
S
64 3 10
Related_Posts_By_Taxonomy_Cache::sanitize_cache_args()
S
65 3 8
Related_Posts_By_Taxonomy_Debug::widget_params()
S
63 3 10
Related_Posts_By_Taxonomy_Plugin::debug_init()
S
70 3 6
km_rpbt_get_taxonomies()
S
66 3 8
km_rpbt_get_settings_type()
S
71 3 6
km_rpbt_cache_related_posts()
S
66 3 8
Related_Posts_By_Taxonomy::is_all_taxonomies()
S
71 3 6
Related_Posts_By_Taxonomy_Debug::get_section_html()
S
59 2 14
km_rpbt_get_post_date()
S
62 2 13
km_rpbt_related_posts_by_taxonomy_shortcode()
S
60 2 13
km_rpbt_get_query_vars()
S
52 1 26
Related_Posts_By_Taxonomy::get_field()
S
63 2 11
Related_Posts_By_Taxonomy_Rest_API::register_routes()
S
53 1 23
related_posts_by_taxonomy_init()
S
58 1 16
km_rpbt_get_plugin_supports()
S
58 1 16
km_rpbt_get_comma_separated_values()
S
69 2 6
Related_Posts_By_Taxonomy_Defaults::get_instance()
S
76 2 4
km_rpbt_get_gallery_post_class()
S
64 2 9
km_rpbt_is_cache_loaded()
S
75 2 4
km_rpbt_is_valid_settings_type()
S
78 2 3
Related_Posts_By_Taxonomy_Cache::updated_postmeta()
S
72 2 6
km_rpbt_plugin()
S
72 2 6
km_rpbt_sanitize_classes()
S
63 2 10
km_rpbt_validate_ids()
S
65 2 8
km_rpbt_plugin_supports()
S
67 2 7
km_rpbt_post_class()
S
70 2 6
Related_Posts_By_Taxonomy_Cache::update_cache()
S
68 2 7
Related_Posts_By_Taxonomy_Debug::get_supports()
S
64 2 9
km_rpbt_get_permalink()
S
66 2 8
km_rpbt_flush_cache()
S
70 2 7
Related_Posts_By_Taxonomy_Plugin::cache_init()
S
68 2 7
Related_Posts_By_Taxonomy_Plugin::lazy_loading_init()
S
70 2 6
Related_Posts_By_Taxonomy_Cache::set_object_terms()
S
70 2 7
Related_Posts_By_Taxonomy_Cache::current_post()
S
75 2 4
Related_Posts_By_Taxonomy_Rest_API::sanitize_response_html()
S
65 2 9
km_rpbt_get_shortcode_atts()
S
68 2 7
Related_Posts_By_Taxonomy_Plugin::widget_init()
S
71 2 6
Related_Posts_By_Taxonomy::widget_output()
S
75 1 4
Related_Posts_By_Taxonomy_Debug::get_style()
S
72 1 6
Related_Posts_By_Taxonomy_Cache::delete_cache_transient()
S
82 1 3
Related_Posts_By_Taxonomy_Cache::add_cache()
S
76 1 4
km_rpbt_post_title_link()
S
75 1 4
Related_Posts_By_Taxonomy_Cache::set_transient()
S
78 1 3
Related_Posts_By_Taxonomy_Rest_API::get_item_permissions_check()
S
80 1 3
Related_Posts_By_Taxonomy_Cache::get_cache_settings()
S
66 1 8
km_rpbt_get_related_post_title_link()
S
75 1 4
km_rpbt_no_posts_found_notice()
S
81 1 3
Related_Posts_By_Taxonomy_Defaults::get_plugin_supports()
S
81 1 3
km_rpbt_get_default_args()
S
76 1 4
Related_Posts_By_Taxonomy_Debug::hide_empty()
S
83 1 3
Related_Posts_By_Taxonomy_Defaults::get_formats()
S
65 1 9
Related_Posts_By_Taxonomy_Defaults::plugin_supports()
S
80 1 3
km_rpbt_get_setting_types()
S
71 1 7
Related_Posts_By_Taxonomy_Defaults::_setup()
S
66 1 8
Related_Posts_By_Taxonomy_Defaults::get_default_settings()
S
80 1 3
km_rpbt_related_posts_by_taxonomy_widget()
S
73 1 5
Related_Posts_By_Taxonomy_Lazy_Loading::init()
S
72 1 5
Related_Posts_By_Taxonomy::add_related_post_id()
S
77 1 4
Related_Posts_By_Taxonomy_Defaults::has_taxonomies()
S
71 1 5
km_rpbt_related_posts_by_taxonomy_template()
S
75 1 4
Related_Posts_By_Taxonomy_Lazy_Loading::__construct()
S
82 1 3
km_rpbt_related_posts_by_taxonomy()
S
75 1 4
Related_Posts_By_Taxonomy_Cache::__construct()
S
82 1 3
km_rpbt_get_no_posts_found_notice()
S
75 1 4
Related_Posts_By_Taxonomy_Debug::after_display()
S
77 1 4
km_rpbt_post_link()
S
79 1 3
km_rpbt_get_post_types()
S
72 1 5
Related_Posts_By_Taxonomy_Plugin::shortcode_init()
S
80 1 3
Related_Posts_By_Taxonomy_Cache::get_post_meta()
S
74 1 4
Related_Posts_By_Taxonomy_Debug::get_template()
S
77 1 4
Related_Posts_By_Taxonomy::get_the_ID()
S
82 1 3
Related_Posts_By_Taxonomy_Defaults::init()
S
78 1 3
Related_Posts_By_Taxonomy_Debug::__construct()
S
83 1 3
Related_Posts_By_Taxonomy_Rest_API::get_filter_args()
S
77 1 4
km_rpbt_shortcode_get_related_posts()
S
75 1 4
Related_Posts_By_Taxonomy_Cache::get_post_meta_key()
S
75 1 4
Related_Posts_By_Taxonomy::get_related_posts()
S
75 1 4
Related_Posts_By_Taxonomy_Plugin::enqueue_scripts()
S
75 1 4
km_rpbt_validate_boolean()
S
79 1 3
km_rpbt_shortcode_output()
S
75 1 4
km_rpbt_related_posts_by_taxonomy_validate_ids()
S
75 1 4
km_rpbt_get_public_taxonomies()
S
81 1 3
Related_Posts_By_Taxonomy_Plugin::init()
S
64 1 10
Related_Posts_By_Taxonomy_Rest_API::get_related_posts()
S
65 1 8