Code Analysis: Feeds for YouTube 1.4.5

Function Rating Maintainability Complexity Lines of code
SBY_Feed::add_remote_posts()
D
19
61 227
SBY_Feed::get_the_feed_html()
D
26
52 114
SBY_Admin::settings_init()
D
11
2 805
SB_YOUTUBE_Admin::add_settings_field()
D
29
41 120
sby_get_next_post_set()
D
29
35 114
SBY_Admin::cache()
D
32 34 86
SB_YOUTUBE_Admin::cache()
D
32 34 85
sby_youtube_feed()
C
33 24 92
sby_admin_init()
C
20
7 347
SBY_Notifications::verify()
C
41 26 49
SBY_Notifications::output()
C
34 22 92
sby_init()
B
35 21 89
SBY_New_User::output()
B
35 20 85
SB_YOUTUBE_Admin::text()
B
39 21 55
SBY_Settings::set_feed_type_and_terms()
B
37 18 89
SBY_Feed_Locator::add_or_update_entry()
B
40 19 60
SB_YOUTUBE_Admin::types()
B
40 19 56
SBY_New_User::verify_active()
B
44 20 38
sby_admin_hide_unrelated_notices()
B
44 18 42
sby_uninstall()
B
33 13 116
SBY_Feed::get_play_list_for_term()
B
37 16 69
SBY_Notifications::verify_active()
B
47 18 31
sby_process_wp_posts()
B
40 16 54
SBY_Display_Elements::get_feed_style()
B
47 17 32
SBY_Display_Elements::get_style_att()
A
44 16 41
SB_YOUTUBE_Admin::sub_option()
A
41 14 56
SBY_New_User::dismiss()
A
43 14 50
SBY_Feed::merge_posts()
A
48 15 34
SBY_Feed::set_remote_header_data()
A
41 13 49
SBY_API_Connect::set_url()
A
47 14 32
SB_YOUTUBE_Admin::select()
A
47 14 31
sby_process_access_token()
A
43 13 44
sby_activate()
A
43 13 43
SBY_Admin::gdpr()
A
34 8 115
sby_get_feed_template_part()
A
43 12 50
SB_YOUTUBE_Admin::layout()
A
43 12 46
sby_check_for_db_updates()
A
43 11 45
sby_admin_icon()
A
50 12 26
SBY_Cron_Updater::do_feed_updates()
A
44 11 41
SBY_Display_Elements::get_basic_icons()
A
49 11 37
SB_YOUTUBE_Admin::create_menus()
A
47 11 35
SBY_Notifications::dismiss()
A
46 11 34
SB_YOUTUBE_Admin::checkbox()
A
53 12 18
SBY_RSS_Connect::connect()
A
38 8 71
SBY_Feed::should_use_pagination()
A
51 11 24
SB_YOUTUBE_Admin::validate_options()
A
49 10 30
SB_YOUTUBE_Admin::multi_checkbox()
A
50 10 25
SBY_Posts_Manager::delete_all_sby_posts()
A
45 8 43
sby_do_locator()
A
50 9 25
SBY_Settings::__construct()
A
47 8 37
sbspf_account_search()
A
47 8 34
SBY_API_Connect::handle_youtube_error()
A
47 8 33
SBY_Feed::set_cron_cache()
A
56 9 16
SB_YOUTUBE_Admin::settings_init()
A
33 1 136
SBY_Cron_Updater::start_cron_job()
A
50 8 27
SBY_Parse::get_media_url()
A
52 8 25
sby_custom_css()
A
55 8 20
sby_scripts_enqueue()
A
48 7 32
SBY_Parse::get_media_src_set()
A
50 7 31
sby_delete_connected_account()
S
53 7 22
sby_debug_report()
S
50 6 34
sby_clear_page_caches()
S
56 7 18
SBY_GDPR_Integrations::gdpr_plugins_active()
S
57 7 18
SBY_Notifications::get()
S
56 7 17
SBY_Parse::get_avatar()
S
56 7 17
SBY_New_User::verify()
S
57 7 17
SBY_Feed_Locator::summary()
S
45 5 44
sby_attempt_connection()
S
45 5 43
SBY_Notifications::get_option()
S
59 7 13
SBY_Settings::get_cache_time_in_seconds()
S
58 7 13
SBY_WP_Post::update_video_details()
S
50 6 27
sby_add_caps()
S
47 5 41
SB_YOUTUBE_Admin::add_settings_section()
S
56 6 17
sby_get_first_connected_account()
S
51 5 29
SB_YOUTUBE_Admin::textarea()
S
59 6 13
SBY_Notifications::add()
S
53 5 24
SBY_New_User::add()
S
53 5 24
SBY_Settings::set_transient_name()
S
54 5 21
SBY_Feed::merge_cached_posts()
S
48 4 34
SBY_Feed::maybe_set_post_data_from_backup()
S
49 4 33
SBY_Display_Elements::get_subscribe_styles()
S
57 5 16
SBY_Display_Elements::get_load_button_styles()
S
57 5 16
SB_YOUTUBE_Admin::next_step()
S
58 5 15
SBY_Feed::sort_posts()
S
58 5 15
sby_reset_cron()
S
62 6 10
SBY_Feed::set_post_data_from_cache()
S
60 5 13
SBY_New_User::get()
S
61 5 12
SBY_API_Connect::__construct()
S
62 5 11
SBY_Display_Elements::should_show_element()
S
61 5 11
SBY_Feed_Locator::create_table()
S
53 4 25
SBY_Cron_Updater::do_single_feed_cron_update()
S
52 4 24
SBY_Notifications::replace_merge_fields()
S
55 4 19
SBY_Feed::cache_feed_data()
S
56 4 18
sby_settings_defaults()
S
41 1 61
SBY_Posts_Manager::image_resizing_disabled()
S
65 5 8
sby_access_token_warning_modal()
S
66 5 7
sby_error_report()
S
59 4 15
SBY_Notifications::enqueues()
S
51 3 28
SBY_Parse::get_timestamp()
S
59 4 13
SBY_Display_Elements::get_optimum_media_url()
S
59 4 13
sby_delete_wp_posts()
S
61 4 13
sby_process_post_set_caching()
S
60 4 13
SBY_Settings::feed_type_and_terms_display()
S
62 4 12
sby_lite_dismiss()
S
61 4 12
SBY_API_Connect::handle_wp_remote_get_error()
S
60 4 11
SBY_Feed_Locator::count_unique()
S
53 3 24
sby_custom_js()
S
54 3 23
SBY_WP_Post::update_meta()
S
53 3 21
SBY_WP_Post::update_post()
S
56 3 17
SBY_Feed::remove_duplicate_posts()
S
57 3 17
sby_hextorgb()
S
56 3 17
sby_get_future_date()
S
58 3 15
SbyWidget::widget()
S
61 4 10
SBY_Feed::get_channel_cache()
S
63 4 10
SBY_Feed::need_header()
S
72 4 4
SBY_Feed::can_get_more_posts()
S
67 4 7
SBY_Blocks::is_gb_editor()
S
76 4 3
SBY_Feed::posts_loop()
S
58 3 15
SBY_GDPR_Integrations::doing_gdpr()
S
63 4 10
SBY_Parse::get_video_id()
S
64 4 10
SBY_Admin::access_token_listener()
S
72 4 5
SBY_WP_Post::get_wp_post_id()
S
59 3 14
SBY_Display_Elements::get_item_classes()
S
59 3 14
SBY_Notifications::fetch_feed()
S
61 3 12
SBY_Feed_Locator::should_do_locating()
S
61 3 11
SbyWidget::form()
S
61 3 11
SBY_Parse::get_item_avatar()
S
63 3 11
SB_YOUTUBE_Admin::__construct()
S
54 2 21
sby_clear_cache()
S
52 1 35
SBY_Feed::get_the_items_html()
S
57 2 18
SBY_WP_Post::maybe_get_channel_id_for_channel_title()
S
59 2 16
sby_maybe_clear_cache_using_cron()
S
69 3 7
sby_is_admin_page()
S
66 3 8
sby_icon()
S
66 3 8
sby_maybe_start_cron_clear_cache()
S
68 3 7
SBY_WP_Post::get_post_content()
S
62 3 10
SBY_Notifications::recently_installed()
S
64 3 10
SB_YOUTUBE_Admin::set_active_tab()
S
69 3 7
SBY_Feed::need_to_start_cron_job()
S
77 3 3
SBY_Feed::need_posts()
S
68 3 6
SBY_Feed::cache_header_data()
S
67 3 8
SbyWidget::update()
S
69 3 6
SBY_API_Connect::get_data()
S
68 3 7
SBY_Parse::get_post_id()
S
67 3 7
SBY_Parse::get_permalink()
S
66 3 8
SBY_Parse::get_video_title()
S
66 3 8
SBY_Parse::get_channel_id()
S
66 3 8
SBY_Posts_Manager::maybe_start_ajax_test()
S
65 3 8
SBY_Posts_Manager::should_add_ajax_test_notice()
S
76 3 3
SBY_Posts_Manager::max_total_records_reached()
S
64 3 9
SBY_Display_Elements::get_display_avatar()
S
69 3 6
SBY_Parse::get_channel_title()
S
66 3 8
SBY_Display_Elements::escaped_data_att_string()
S
63 3 10
SBY_Feed_Locator::delete_old_locations()
S
59 2 13
SBY_Blocks::enqueue_block_editor_assets()
S
51 1 28
SBY_Cron_Updater::get_feed_cache_option_names()
S
61 2 13
sby_admin_scripts()
S
61 2 12
sby_on_delete_blog()
S
63 2 11
SBY_Feed::maybe_set_header_data_from_backup()
S
63 2 11
SBY_Blocks::register_block()
S
53 1 26
sby_register_cpt()
S
53 1 22
SBY_Feed_Locator::insert_entry()
S
56 1 21
SBY_Feed::__construct()
S
55 1 19
sby_update_or_connect_account()
S
58 1 17
SBY_Feed::get_ajax_page_load_html()
S
56 1 17
SBY_Feed_Locator::should_clear_old_locations()
S
70 2 5
sby_clear_wp_posts()
S
64 2 9
SBY_RSS_Connect::__construct()
S
68 2 7
SBY_Parse::get_channel_description()
S
70 2 6
SBY_Feed::get_channel_status()
S
68 2 7
SBY_API_Connect::get_wp_error()
S
69 2 7
SBY_Display_Elements::get_header_text_color_styles()
S
67 2 7
SBY_Settings::get_transient_name()
S
70 2 7
SBY_Posts_Manager::update_ajax_status()
S
69 2 6
SBY_API_Connect::refresh_token()
S
63 2 9
sby_cron_updater()
S
71 2 6
sby_admin_style()
S
65 2 9
SBY_Feed::trim_posts_to_max()
S
68 2 7
sby_do_background_tasks()
S
70 2 7
SBY_Feed::get_first_user()
S
69 2 7
sby_on_create_blog()
S
72 2 6
SBY_Display_Elements::get_items_wrap_style()
S
69 2 6
sby_dismiss_connect_warning_notice()
S
68 2 7
sby_date_sort()
S
65 2 9
SB_YOUTUBE_Admin::set_display_table_sections()
S
67 2 8
sby_dismiss_at_warning_notice()
S
68 2 7
SBY_Feed::set_channel_cache()
S
70 2 6
SBY_Posts_Manager::add_api_request_delay()
S
68 2 7
SBY_Feed::should_use_backup()
S
79 2 3
SBY_Feed::set_header_data_from_cache()
S
68 2 7
sby_get_channel_id_from_channel_name()
S
68 2 7
SBY_Blocks::get_feed_html()
S
67 2 7
SB_YOUTUBE_Admin::get_connected_accounts()
S
70 2 7
sby_json_encode()
S
70 2 7
SBY_API_Connect::get_next_page()
S
69 2 7
SBY_API_Connect::connect()
S
63 2 10
SBY_API_Connect::is_youtube_error()
S
78 2 3
SB_YOUTUBE_Admin::get_textarea_fields()
S
71 2 6
SBY_Admin::get_connected_accounts()
S
70 2 7
SBY_Settings::get_feed_type_and_terms()
S
70 2 7
SBY_Parse::get_caption()
S
68 2 7
SBY_Display_Elements::get_cols()
S
70 2 6
SBY_Display_Elements::get_cols_mobile()
S
70 2 6
SBY_Posts_Manager::remove_error()
S
70 2 6
SBY_Display_Elements::get_header_size_class()
S
73 2 4
SB_YOUTUBE_Admin::format_title()
S
64 2 9
SBY_Settings::get_connected_accounts_in_feed()
S
70 2 7
SB_YOUTUBE_Admin::get_sections()
S
71 2 6
SBY_Vars::plugin_name()
S
89 2 1
SBY_Notifications::has_access()
S
69 2 7
SB_YOUTUBE_Admin::get_false_fields()
S
71 2 6
SB_YOUTUBE_Admin::connect_account()
S
59 1 14
SBY_Feed_Locator::entries_need_locating()
S
59 1 14
SBY_New_User::update()
S
62 1 13
SBY_Notifications::update()
S
62 1 13
sby_cron_custom_interval()
S
63 1 11
SBY_Posts_Manager::__construct()
S
71 1 6
SBY_Admin::connect_account()
S
80 1 3
SBY_Settings::get_settings()
S
82 1 3
SBY_Parse::get_channel_permalink()
S
78 1 3
SB_YOUTUBE_Admin::set_feed_types()
S
81 1 3
sby_load_widget()
S
82 1 3
sby_get_current_time()
S
77 1 4
SBY_Feed::get_misc_data()
S
82 1 3
SBY_API_Connect::set_url_from_args()
S
81 1 3
SBY_Vars::max_records()
S
92 1 1
sby_strip_after_hash()
S
72 1 5
SB_YOUTUBE_Admin::get_path()
S
79 1 3
SBY_Feed::make_workaround_connection()
S
79 1 3
SBY_Posts_Manager::are_current_api_request_delays()
S
74 1 4
SBY_Notifications::source_url()
S
81 1 3
SBY_Notifications::option_name()
S
81 1 3
SBY_GDPR_Integrations::gdpr_tests_successful()
S
81 1 3
SBY_Vars::social_network()
S
92 1 1
SBY_Feed::add_report()
S
80 1 3
SbyWidget::__construct()
S
69 1 7
SBY_Vars::support_url()
S
92 1 1
SBY_Vars::text_domain()
S
92 1 1
SB_YOUTUBE_Admin::instructions()
S
73 1 7
SB_YOUTUBE_Admin::after_create_menues()
S
91 1 2
SB_YOUTUBE_Admin::create_options_page()
S
79 1 3
SBY_Notifications::init()
S
82 1 3
SBY_Feed::successful_video_api_request_made()
S
82 1 3
SBY_Vars::pro_logo()
S
92 1 1
SB_YOUTUBE_Admin::add_textarea_field()
S
80 1 3
SB_YOUTUBE_Admin::additional_settings_init()
S
91 1 2
SB_YOUTUBE_Admin::blank()
S
91 1 2
SBY_Posts_Manager::remove_all_errors()
S
80 1 3
SBY_Feed_Locator::__construct()
S
72 1 5
SBY_RSS_Connect::get_url()
S
82 1 3
SBY_Feed::regular_cache_exists()
S
76 1 4
SBY_New_User::hooks()
S
75 1 4
SBY_Feed::regular_header_cache_exists()
S
76 1 4
SBY_Feed::set_post_data()
S
81 1 3
SBY_Blocks::allow_load()
S
80 1 3
SBY_Settings::get_connected_accounts()
S
82 1 3
SBY_Posts_Manager::add_error()
S
71 1 5
SBY_Feed::get_header_data()
S
82 1 3
SBY_WP_Post::maybe_get_channel_id_for_name()
S
89 1 2
SB_YOUTUBE_Admin::color()
S
76 1 4
SBY_Posts_Manager::max_resizing_per_time_period_reached()
S
66 1 7
SBY_Feed_Locator::should_do_ajax_locating()
S
72 1 5
sby_get_account_bottom()
S
83 1 3
SB_YOUTUBE_Admin::get_vars()
S
82 1 3
SBY_Feed_Locator::retrieve_matching_entries()
S
63 1 10
SBY_Feed::make_api_connection()
S
79 1 3
SB_YOUTUBE_Admin::get_option_name()
S
82 1 3
SBY_Vars::plugin_basename()
S
92 1 1
SBY_Settings::after_settings_set()
S
91 1 2
sby_set_channel_id_from_channel_name()
S
72 1 5
SBY_RSS_Connect::set_url_from_args()
S
81 1 3
SBY_New_User::enqueues()
S
91 1 2
SBY_Posts_Manager::update_successful_ajax_test()
S
80 1 3
SBY_WP_Post::__construct()
S
77 1 4
SBY_Posts_Manager::get_frontend_errors()
S
82 1 3
SBY_Vars::plugin_url()
S
92 1 1
sby_rand_sort()
S
80 1 3
SBY_Vars::setup_url()
S
92 1 1
SBY_WP_Post::post_content_description_is_incomplete()
S
74 1 4
SBY_Feed::update_channel_status()
S
72 1 5
SBY_Feed::add_remote_non_pageable()
S
91 1 2
SBY_GDPR_Integrations::gdpr_tests_error_message()
S
81 1 3
sby_replace_double_quotes()
S
79 1 3
sby_get_database_settings()
S
73 1 5
sby_text_domain()
S
78 1 3
SBY_Feed::do_page_cache_all()
S
82 1 3
SB_YOUTUBE_Admin::get_slug()
S
82 1 3
SBY_Vars::slug()
S
92 1 1
SBY_Posts_Manager::get_ajax_status()
S
82 1 3
SBY_API_Connect::get_url()
S
82 1 3
SBY_Feed::feed_is_complete()
S
82 1 3
SB_YOUTUBE_Admin::default_tooltip_text()
S
77 1 3
SBY_New_User::source_url()
S
81 1 3
SBY_Vars::demo_url()
S
92 1 1
SBY_Blocks::load()
S
82 1 3
SBY_Feed::is_pageable()
S
75 1 4
SB_YOUTUBE_Admin::verify_post()
S
78 1 3
SBY_Notifications::hooks()
S
70 1 6
SBY_Feed::add_remote_pageable_posts()
S
91 1 2
SB_YOUTUBE_Admin::get_plugin_name()
S
82 1 3
SB_YOUTUBE_Admin::set_feed_layouts()
S
81 1 3
SBY_Feed::filter_posts()
S
82 1 3
SBY_Blocks::hooks()
S
75 1 4
sby_is_pro_version()
S
81 1 3
SB_YOUTUBE_Admin::init()
S
72 1 5
SBY_Notifications::get_count()
S
80 1 3
SBY_New_User::option_name()
S
81 1 3
SBY_Display_Elements::get_icon()
S
78 1 3
sby_notice_not_dismissed()
S
74 1 4
SBY_Feed::can_try_another_request()
S
82 1 3
SBY_Feed::get_image_ids_post_set()
S
82 1 3
SBY_Feed::get_next_pages()
S
82 1 3
SBY_Posts_Manager::delete_least_used_image()
S
91 1 2
SBY_GDPR_Integrations::init()
S
89 1 2
SBY_Feed::set_header_data()
S
81 1 3
SB_YOUTUBE_Admin::update_options()
S
76 1 4
SBY_WP_Post::update_content()
S
70 1 6
SBY_Feed::add_other_atts()
S
82 1 3
sby_esc_attr_with_br()
S
78 1 3
sby_notices_html()
S
100 1 2
SBY_Feed::get_post_data()
S
82 1 3
SBY_Posts_Manager::reset_frontend_errors()
S
80 1 3
SBY_Posts_Manager::get_errors()
S
82 1 3
SBY_Vars::plugin_dir()
S
92 1 1
SB_YOUTUBE_Admin::get_tabs()
S
82 1 3
SBY_Feed_Locator::update_entry()
S
66 1 8
SBY_Feed::get_report()
S
82 1 3
SBY_Feed::maybe_refresh_token()
S
82 1 3
SBY_API_Connect::is_wp_error()
S
80 1 3
SB_YOUTUBE_Admin::hidden_fields_for_tab()
S
70 1 6
SBY_Feed::get_different_connected_account()
S
82 1 3
sby_get_account_top()
S
83 1 3
SBY_RSS_Connect::set_url()
S
75 1 4
sby_deactivate()
S
72 1 6
SBY_Posts_Manager::add_frontend_error()
S
80 1 3
SBY_Vars::oauth_processor_url()
S
92 1 1
SB_YOUTUBE_Admin::add_false_field()
S
80 1 3
SBY_Feed::requires_workaround_connection()
S
82 1 3
SBY_Feed::is_efficient_type()
S
82 1 3
SBY_Vars::version()
S
92 1 1
SBY_RSS_Connect::get_data()
S
82 1 3
SBY_Posts_Manager::does_resizing_tables_exist()
S
82 1 3
sby_add_settings_link()
S
71 1 5
SBY_Feed::should_update_last_requested()
S
79 1 3
SBY_Settings::get_public_db_settings_keys()
S
75 1 5
SBY_Vars::cron_update_cache_time()
S
92 1 1
sby_get_utc_offset()
S
79 1 3
SB_YOUTUBE_Admin::get_active_tab()
S
82 1 3