Code Analysis: Yet Another Related Posts Plugin (YARPP) 5.27.7

Function Rating Maintainability Complexity Lines of code
YARPP_Cache::sql()
D
27
34 134
YARPP::get_template_content()
C
35 23 78
YARPP_Block::yarpp_block_render_callback()
B
39 23 58
YARPP_Cache::extract_keywords()
B
36 21 74
YARPP::upgrade()
B
44 22 41
YARPP::optin_data()
B
29 13 140
YARPP_Meta_Box_Display_Web::display()
B
31 12 112
YARPP_Block::yarpp_gutenberg_block_func()
A
37 11 77
YARPP::display_related()
A
38 11 73
YARPP_Meta_Box_Relatedness::disabled_warning()
A
38 9 95
YARPP::display_pro()
A
50 13 26
YARPP::upgrade_3_4_4b2()
A
45 11 42
YARPP_Shortcode::render()
A
46 11 40
YARPP_Cache_Postmeta::related()
A
48 11 32
YARPP::__construct()
A
41 9 53
yarpp_get_option_thumbnail()
A
54 11 19
shareaholic_deactivate_feedback()
A
44 9 48
YARPP::parse_args()
A
46 9 40
YARPP_Admin::optin_notice()
A
45 9 40
YARPP::display_basic()
A
55 10 19
YARPP::set_option()
A
48 9 32
YARPP::upgrade_3_4b2()
A
37 6 77
YARPP_Admin::ui_register()
A
49 9 27
YARPP_Admin::ajax_display_preview()
A
41 7 57
YARPP_Cache_Bypass::related()
A
51 9 27
YARPP_Rest_Api::get_related_posts()
A
41 7 56
YARPP_Admin::enqueue()
A
45 8 35
YARPP::ensure_resized_post_thumbnail()
A
56 9 16
YARPP_Admin::deactivation_survey_data()
A
38 5 76
YARPP_Meta_Box::template_checkbox()
A
59 9 12
YARPP::get_query_post_types()
A
52 8 24
YARPP_Cache_Tables::upgrade()
A
53 8 23
YARPP_Cache_Tables::update()
A
47 7 38
YARPP_Cache::enforce()
A
54 8 23
YARPP_Admin::check_plugin_review()
A
52 8 22
YARPP_Admin::ajax_switch()
A
48 7 35
YARPP_Cache_Tables::related()
A
49 7 34
YARPP_Meta_Box_Display_Feed::display()
A
42 6 48
YARPP::maybe_enqueue_thumbnails_stylesheet()
A
57 8 16
YARPP::version_info()
S
56 8 15
YARPP_Widget::widget()
S
51 7 25
YARPP_Cache_Demo_Bypass::demo_request_filter()
S
44 5 52
YARPP_Admin::__construct()
S
53 7 20
YARPP_Widget::update()
S
55 7 20
YARPP_Cache::transition_post_status()
S
57 7 17
YARPP_Cache_Postmeta::update()
S
50 6 31
YARPP_Meta_Box::displayorder()
S
56 7 15
YARPP_Widget::get_heading()
S
59 7 14
YARPP::get_related()
S
45 5 43
YARPP::setup_active_cache()
S
52 6 26
yarpp_get_image_sizes()
S
51 6 26
YARPP::related_exist()
S
47 5 40
YARPP_Widget::form()
S
52 6 23
YARPP_Admin::metabox()
S
48 5 34
YARPP::optin_ping()
S
57 6 16
YARPP_Admin::check_review_dismissal()
S
57 6 16
YARPP_Admin::yarpp_save_meta_box()
S
58 6 15
YARPP_Cache_Tables::is_cached()
S
52 5 26
yarpp_thumbnail_inline_css()
S
47 4 38
YARPP::upgrade_3_4b8()
S
54 5 23
YARPP::get_option()
S
56 5 19
YARPP_Cache_Demo_Bypass::related()
S
56 5 19
YARPP_Rest_Api::get_item_permissions_check()
S
55 5 19
YARPP::post_type_filter()
S
58 5 18
YARPP_Admin::ajax_display()
S
56 5 17
YARPP_Cache_Postmeta::get_keywords()
S
58 5 16
YARPP_Admin::ajax_display_exclude_terms()
S
50 4 29
YARPP::diagnostic_using_thumbnails()
S
62 5 12
YARPP::upgrade_3_5_2b2()
S
62 5 11
YARPP_Meta_Box::weight()
S
59 5 11
YARPP_Meta_Box_Pool::exclude()
S
52 4 24
YARPP::load_default_options()
S
40 1 66
YARPP_Admin::the_optin_button()
S
55 4 20
YARPP_Meta_Box_Pool::include_post_type()
S
53 4 20
YARPP_Cache_Tables::get_keywords()
S
58 4 17
YARPP_Cache::get_keywords()
S
58 4 16
YARPP::activate()
S
60 4 15
YARPP_Admin::settings_screen()
S
51 3 30
YARPP_Admin::options_page()
S
64 5 8
YARPP::set_transient()
S
58 4 15
related_posts()
S
59 4 14
related_pages()
S
59 4 14
YARPP_DB_Schema::database_supports_fulltext_indexes()
S
59 4 14
YARPP::enable_fulltext()
S
62 4 13
YARPP_Cache::set_score_override_flag()
S
61 4 13
YARPP_Admin::display_review_notice()
S
44 1 57
YARPP_Cache::tax_criteria()
S
61 4 12
YARPP_Cache_Bypass::fields_filter()
S
61 4 11
YARPP::display_demo_related()
S
52 3 26
YARPP::the_content()
S
63 4 11
YARPP_Cache_Postmeta::fields_filter()
S
61 4 11
yarpp_get_file_url_for_environment()
S
62 4 11
YARPP_DB_Schema::create_cache_table()
S
55 3 22
YARPP::diagnostic_hidden_metaboxes()
S
58 3 16
YARPP_Cache_Postmeta::orderby_filter()
S
68 4 7
YARPP::diagnostic_generate_thumbnails()
S
69 4 6
YARPP::yarpp_disabled_for_this_post()
S
63 4 10
YARPP::the_content_feed()
S
60 3 15
YARPP::the_excerpt_rss()
S
64 4 9
YARPP::kick_other_caches()
S
67 4 8
YARPP_Cache_Bypass::orderby_filter()
S
70 4 6
YARPP::thumbnail_dimensions()
S
60 3 14
YARPP_Admin::help_faq()
S
60 3 14
YARPP_Admin::help_dev()
S
60 3 14
YARPP_DB_Schema::cache_table_exists()
S
59 3 14
YARPP_Cache_Postmeta::begin_yarpp_time()
S
59 3 13
YARPP_Meta_Box_Contact::display()
S
52 2 28
YARPP_Admin::ajax_register()
S
59 3 13
YARPP_DB_Schema::posts_table_database_engine()
S
60 3 13
YARPP::enable_fulltext_titles()
S
63 3 12
YARPP::enable_fulltext_contents()
S
63 3 12
YARPP_Cache_Postmeta::where_filter()
S
60 3 12
YARPP_Cache_Tables::where_filter()
S
61 3 12
YARPP_Cache_Tables::clear()
S
61 3 11
YARPP_Cache_Bypass::where_filter()
S
61 3 11
YARPP::diagnostic_myisam_posts()
S
64 3 11
YARPP_Admin::ajax_clear_cache()
S
63 3 11
YARPP_Rest_Api::register_api_routes()
S
53 2 25
YARPP_Admin::help_optin()
S
50 1 38
switchYarppPro()
S
58 2 16
YARPP::diagnostic_happy()
S
63 3 9
related_entries()
S
62 3 10
YARPP::get_thumbnail_option_name()
S
65 3 10
YARPP::get_templates()
S
64 3 10
YARPP::get_template_data()
S
59 2 15
YARPP::upgrade_3_4_4b3()
S
63 3 10
YARPP::get_post_types()
S
64 3 10
YARPP::get_taxonomies()
S
64 3 10
YARPP::taxonomy_filter()
S
66 3 9
YARPP_Cache_Postmeta::upgrade()
S
70 3 6
YARPP_Cache_Postmeta::is_cached()
S
64 3 10
YARPP::do_not_query_for_related()
S
75 3 4
YARPP_Cache_Postmeta::clear()
S
64 3 10
YARPP_Admin::can_copy_templates()
S
63 3 10
YARPP_Rest_Api::cache_endpoints()
S
70 3 6
YARPP_Cache_Tables::orderby_filter()
S
69 3 7
YARPP_Cache_Tables::limit_filter()
S
69 3 7
YARPP::array_flatten()
S
65 3 9
YARPP::enforce()
S
65 3 10
YARPP::db_supports_fulltext()
S
67 3 8
YARPP::get_all_templates()
S
59 2 14
YARPP_Admin::optin_button_script()
S
61 2 13
YARPP_Meta_Box_Relatedness::display()
S
60 2 13
YARPP::restore_post_context()
S
62 2 12
YARPP::get_pro_options()
S
62 2 12
YARPP_Rest_Api::get_related_posts_args()
S
52 1 27
YARPP::disable_fulltext()
S
62 2 11
YARPP_Cache::body_keywords()
S
62 2 11
YARPP_Cache::query_safely()
S
64 2 11
YARPP_Cache_Bypass::begin_yarpp_time()
S
52 1 25
YARPP_Meta_Box_Optin::display()
S
54 1 25
YARPP_Admin::markdown()
S
57 1 17
wp_get_additional_image_sizes()
S
70 2 7
YARPP_Admin::default_hidden_meta_boxes()
S
71 2 6
YARPP_DB_Schema::content_column_has_index()
S
63 2 10
YARPP_Meta_Box::template_file()
S
71 2 5
yarpp_make_optin_classy()
S
71 2 6
YARPP::is_protected_meta()
S
72 2 6
YARPP_Admin::the_donothing_button()
S
66 2 9
yarpp_related()
S
67 2 8
YARPP_Block::__construct()
S
64 2 9
wp_parse_list()
S
70 2 6
YARPP_Admin::upgrade_notice()
S
75 2 4
YARPP_Cache_Postmeta::limit_filter()
S
72 2 6
YARPP::diagnostic_big_db()
S
65 2 9
YARPP::enqueue_thumbnails_stylesheet()
S
64 2 9
yarpp_related_exist()
S
67 2 8
YARPP_Cache_Demo_Bypass::demo_thumbnails_size_filter()
S
72 2 6
YARPP_Meta_Box::offer_copy_templates()
S
79 2 3
YARPP_DB_Schema::title_column_has_index()
S
63 2 10
YARPP::get_transient()
S
66 2 8
YARPP_Cache_Tables::join_filter()
S
68 2 7
YARPP_Admin::install_notice()
S
74 2 4
YARPP::enabled()
S
69 2 7
YARPP_Cache_Bypass::limit_filter()
S
75 2 4
YARPP::diagnostic_fulltext_indices()
S
79 2 3
YARPP::upgrade_3_4_4b4()
S
66 2 8
YARPP_Cache_Demo_Bypass::begin_demo_time()
S
57 1 15
YARPP::maybe_regenerate_thumbnails()
S
71 2 6
YARPP_Cache::delete_post()
S
71 2 6
YARPP::is_noyarpp()
S
66 2 8
YARPP_Rest_Api::maybe_set_caching_headers()
S
62 2 10
YARPP_Admin::copy_templates()
S
63 2 10
YARPP_Admin::get_term_ids_from_tt_ids()
S
65 2 8
related_posts_exist()
S
63 2 10
YARPP_Rest_Api::get_posts_controller()
S
71 2 6
YARPP_Cache_Tables::fields_filter()
S
70 2 7
YARPP_Admin::settings_link()
S
67 2 7
related_pages_exist()
S
63 2 10
clean()
S
64 2 10
YARPP::upgrade_3_6b7()
S
69 2 6
YARPP_Cache_Tables::uncached()
S
61 1 14
YARPP_Cache_Postmeta::uncached()
S
61 1 14
YARPP_Cache::orderby_score()
S
61 1 14
YARPP_Cache_Tables::graph_data()
S
62 1 13
YARPP_Meta_Box::__construct()
S
62 1 12
YARPP_Cache_Demo_Bypass::end_demo_time()
S
60 1 12
YARPP_Meta_Box_Display_Rest_Api::display()
S
60 1 12
YARPP_Cache_Postmeta::end_yarpp_time()
S
62 1 11
YARPP::load_pro_default_options()
S
63 1 11
YARPP_Block::yarpp_block_categories()
S
64 1 11
YARPP_Admin::review_register()
S
78 1 4
YARPP::enqueue_thumbnails()
S
75 1 4
YARPP_Cache::discovering_keywords()
S
82 1 3
YARPP_Cache_Tables::end_yarpp_time()
S
63 1 10
YARPP_Admin::render_screen_settings()
S
76 1 4
YARPP_Cache_Demo_Bypass::is_enabled()
S
82 1 3
YARPP_Rest_Api::ignore_post_type_filter_callback()
S
73 1 5
YARPP_DB_Schema::add_content_index()
S
66 1 8
YARPP_Cache_Tables::begin_yarpp_time()
S
63 1 10
YARPP_Cache_Tables::is_enabled()
S
81 1 3
YARPP_Widget::hide_yarpp_widget_legacy_editor()
S
77 1 4
YARPP::upgrade_3_4b5()
S
64 1 10
YARPP_DB_Options::update_fulltext_db_record()
S
74 1 4
YARPP::clean_pre()
S
69 1 6
YARPP_Cache_Tables::cache_status()
S
66 1 9
YARPP_Cache_Demo_Bypass::demo_image_downsize_filter()
S
80 1 3
YARPP_DB_Options::add_upgrade_flag()
S
79 1 3
yarpp_widget_init()
S
82 1 3
YARPP_Meta_Box::tax_weight()
S
71 1 5
YARPP_Cache_Postmeta::cache_status()
S
66 1 9
YARPP_Block::yarpp_enqueue_block_editor_assets()
S
74 1 5
YARPP_Cache_Demo_Bypass::demo_has_thumbnails_filter()
S
82 1 3
YARPP_DB_Options::get_yarpp_options()
S
75 1 4
yarpp_get_related()
S
76 1 4
YARPP_Cache_Demo_Bypass::__construct()
S
80 1 3
YARPP_Rest_Api::__construct()
S
74 1 4
YARPP_Cache::upgrade()
S
91 1 2
YARPP_DB_Options::after_activation()
S
79 1 3
YARPP_Cache::is_yarpp_time()
S
82 1 3
YARPP::diagnostic_fulltext_disabled()
S
82 1 3
YARPP_Cache_Demo_Bypass::uncached()
S
82 1 3
YARPP_Cache_Bypass::end_yarpp_time()
S
64 1 9
YARPP_Cache_Tables::flush()
S
72 1 5
YARPP_Admin::get_templates()
S
81 1 3
YARPP_Rest_Api::get_public_item_schema()
S
63 1 10
YARPP_Cache_Postmeta::stats()
S
73 1 4
YARPP_Admin::ajax_set_display_code()
S
75 1 4
YARPP_Cache_Demo_Bypass::stats()
S
82 1 3
YARPP::diagnostic_post_thumbnails()
S
79 1 3
YARPP::pretty_echo()
S
67 1 7
YARPP_Cache::clear()
S
91 1 2
YARPP_Cache_Postmeta::is_enabled()
S
82 1 3
YARPP_Admin::ajax_optin_disable()
S
67 1 8
YARPP_Cache_Tables::setup()
S
82 1 3
YARPP_Admin::ajax_display_demo()
S
75 1 4
YARPP_Cache_Bypass::end_demo_time()
S
73 1 5
get_the_score()
S
73 1 5
YARPP_DB_Options::has_fulltext_db_error()
S
79 1 3
YARPP_DB_Options::delete_activation_flag()
S
80 1 3
YARPP_Meta_Box::yarpp_select_option()
S
80 1 3
YARPP_Admin::ajax_optin_enable()
S
66 1 9
YARPP_Cache_Demo_Bypass::cache_status()
S
82 1 3
YARPP_Cache_Tables::__construct()
S
81 1 3
YARPP::recent_units()
S
68 1 7
YARPP_DB_Options::delete_fulltext_db_error_record()
S
80 1 3
YARPP::delete_transient()
S
77 1 4
YARPP_DB_Options::set_fulltext_disabled()
S
79 1 3
YARPP_Cache_Postmeta::setup()
S
91 1 2
YARPP_Cache::flush()
S
91 1 2
YARPP_Shortcode::register()
S
72 1 6
YARPP::upgrade_4_2()
S
72 1 5
YARPP_Cache::is_cached()
S
82 1 3
YARPP_Cache_Demo_Bypass::demo_image_metadata_filter()
S
64 1 10
YARPP_DB_Schema::add_title_index()
S
66 1 8
YARPP::add_to_bbpress()
S
81 1 3
YARPP_Cache_Demo_Bypass::demo_post_thumbnail_html()
S
71 1 5
yarpp_set_option()
S
76 1 4
YARPP_DB_Options::get_fulltext_db_error()
S
78 1 3
YARPP_Cache_Postmeta::__construct()
S
81 1 3
YARPP_Cache_Bypass::uncached()
S
82 1 3
YARPP_DB_Options::delete_upgrade_flag()
S
80 1 3
yarpp_get_option()
S
77 1 4
YARPP_Block::yarpp_get_block_templates()
S
73 1 5
yarpp_init()
S
77 1 4
YARPP_Cache::__construct()
S
77 1 4
YARPP_Meta_Box_Pool::display()
S
68 1 8
YARPP_Meta_Box::radio()
S
80 1 3
YARPP_Cache_Bypass::stats()
S
82 1 3
YARPP_Widget::__construct()
S
66 1 8
YARPP_Meta_Box::beforeafter()
S
80 1 3
YARPP_Cache_Bypass::is_enabled()
S
82 1 3
YARPP_Cache_Bypass::begin_demo_time()
S
71 1 5
YARPP_DB_Options::set_yarpp_options()
S
79 1 3
YARPP_Cache_Tables::stats()
S
74 1 4
YARPP::diagnostic_custom_templates()
S
80 1 3
yarpp_get_thumbnail_image_dimensions()
S
67 1 8
YARPP_Meta_Box::textbox()
S
75 1 4
YARPP_Cache_Demo_Bypass::demo_post_thumbnail_id()
S
81 1 3
YARPP_DB_Options::plugin_version_in_db()
S
80 1 3
YARPP_DB_Options::is_fulltext_disabled()
S
79 1 3
YARPP_Cache::title_keywords()
S
77 1 3
YARPP::upgrade_4_0_1()
S
81 1 3
YARPP::save_post_context()
S
71 1 6
YARPP::prep_query()
S
71 1 6
YARPP_Cache_Demo_Bypass::demo_thumbnails_src_filter()
S
67 1 8
yarpp_plugin_activate()
S
80 1 3
the_score()
S
82 1 3
YARPP_Cache_Bypass::__construct()
S
81 1 3
YARPP_Cache_Bypass::cache_status()
S
82 1 3
YARPP_Cache::add_signature()
S
82 1 3
YARPP_DB_Options::after_upgrade()
S
80 1 3
YARPP_Cache::setup()
S
91 1 2
related_entries_exist()
S
69 1 6
YARPP_Admin::ajax_optin_data()
S
67 1 8
YARPP_Cache_Bypass::demo_request_filter()
S
72 1 5
YARPP::maybe_enqueue_thumbnails()
S
75 1 4
YARPP_Cache_Postmeta::flush()
S
77 1 4
YARPP_Cache_Postmeta::cache_keywords()
S
67 1 8
YARPP_DB_Options::update_plugin_version_in_db()
S
79 1 3
YARPP_Meta_Box::checkbox()
S
80 1 3
YARPP_Cache::update()
S
82 1 3