Code Analysis: Custom Fonts 2.1.5

Function Rating Maintainability Complexity Lines of code
BSF_Custom_Fonts_Menu::sanitize_svg()
D
21
34 219
bcf_prepare_backward_font_data()
B
36 22 89
BCF_Google_Fonts_Compatibility::get_fonts_file_url()
B
40 17 56
BCF_Google_Fonts_Compatibility::get_remote_files_from_css()
A
44 16 42
bcf_prepare_lfont_face_css()
A
44 16 40
Custom_Fonts_Update::v_2_0_2()
A
41 14 55
BCF_Google_Fonts_Compatibility::delete_theme_font_family()
A
42 14 49
BSF_Analytics::option_notice()
A
40 10 63
BCF_Google_Fonts_Compatibility::process_google_fonts_locally()
A
44 11 42
BCF_Custom_Font_Families::get_google_fonts()
A
47 11 34
BCF_Google_Fonts_Compatibility::update_fse_theme_json()
A
44 10 45
bcf_prepare_gfont_face_css()
A
49 11 28
bcf_get_font_face_css()
A
50 11 26
Bsf_Custom_Fonts_Admin::edit_taxonomy_repeater_data()
A
41 9 55
Custom_Fonts_Update::v_1_3_0()
A
51 11 24
BSF_Custom_Fonts_Admin_Ajax::bcf_edit_font()
A
48 10 30
BSF_Analytics_Loader::load_analytics()
A
50 10 27
BSF_Custom_Fonts_Admin_Ajax::bcf_add_new_google_font()
A
45 9 39
BSF_Custom_Fonts_Admin_Ajax::bcf_add_new_local_font()
A
46 9 35
Astra_Notices::dismiss_notice()
A
52 9 22
Astra_Notices::show_notices()
A
48 8 34
BSF_Analytics::handle_optin_optout()
A
51 8 27
Custom_Fonts_API_Init::get_admin_settings()
A
46 7 39
Astra_Notices::is_expired()
A
55 8 18
BSF_Custom_Fonts_Admin_Ajax::bcf_delete_font()
S
50 7 28
BCF_Google_Fonts_Compatibility::delete_all_theme_font_family()
S
51 7 26
Bsf_Custom_Fonts_White_Label::plugins_page()
S
52 7 26
BCF_Google_Fonts_Compatibility::add_or_update_theme_font_faces()
S
46 6 38
Bsf_Custom_Fonts_Render::add_custom_fonts_astra_customizer()
S
53 7 22
bcf_get_font_file_extension()
S
54 7 22
bcf_get_font_src()
S
55 7 20
BSF_Analytics::register_usage_tracking_setting()
S
50 6 29
bcf_make_font_url_meta_as_array()
S
58 6 15
BCF_Filesystem::get_filesystem()
S
54 5 20
Bsf_Custom_Fonts_Render::add_custom_fonts_spectra()
S
55 5 19
Custom_Fonts_Update::init()
S
57 5 18
Bsf_Custom_Fonts_Render::remove_custom_font_google_url()
S
58 5 16
BSF_Custom_Fonts_Admin_Ajax::bcf_preloading()
S
56 5 16
Bsf_Custom_Fonts_Render::preload_styles()
S
60 5 12
BSF_Analytics_Stats::get_default_stats()
S
46 3 35
BSF_Custom_Fonts_Menu::update_mime_types()
S
56 4 18
Bsf_Custom_Fonts_Taxonomy::get_fonts()
S
57 4 18
Bsf_Custom_Fonts_Taxonomy::get_links_by_name()
S
57 4 17
BCF_Google_Fonts_Compatibility::get_remote_url_contents()
S
59 4 15
Bsf_Custom_Fonts_Render::add_style()
S
58 4 15
BSF_Analytics::is_tracking_enabled()
S
62 5 10
Custom_Fonts_Update::v_1_2_5()
S
58 4 15
BCF_Google_Fonts_Compatibility::sanitize_form_inputs()
S
60 4 14
Bsf_Custom_Fonts_Render::add_elementor_fonts()
S
60 4 13
BSF_Analytics::is_white_label_enabled()
S
61 4 13
BSF_Custom_Fonts_Menu::styles_scripts()
S
50 3 28
BCF_Google_Fonts_Compatibility::__construct()
S
60 4 12
Bsf_Custom_Fonts_White_Label::plugin_links()
S
61 4 12
Bsf_Custom_Fonts_Render::delete_custom_fonts_fallback_astra()
S
62 4 11
Astra_Notices::get_wrap_classes()
S
61 4 11
BCF_Custom_Font_Families::get_existing_google_fonts()
S
52 3 25
Bsf_Custom_Fonts_Render::theme_update_notice()
S
59 3 18
Bsf_Custom_Fonts_Admin::select_default_edit_field()
S
59 3 16
BSF_Analytics::add_option_to_network()
S
65 4 9
BSF_Analytics::enqueue_assets()
S
66 4 7
BSF_Analytics_Stats::get_php_version()
S
69 4 6
Bsf_Custom_Fonts_Admin::save_metadata()
S
64 4 9
Bsf_Custom_Fonts_Render::bb_custom_fonts()
S
58 3 14
Bsf_Custom_Fonts_Admin::select_new_field()
S
60 3 14
wp_timezone_string()
S
59 3 14
Astra_Notices::get_notice_by_id()
S
61 3 13
BSF_Analytics_Stats::get_active_plugins()
S
62 3 11
Bsf_Custom_Fonts_Admin::manage_columns()
S
63 3 11
Bsf_Custom_Fonts_Admin::edit_new_taxonomy_data()
S
54 2 26
Bsf_Custom_Fonts_Admin::add_new_taxonomy_data()
S
53 1 36
Bsf_Custom_Fonts_Admin::select_edit_field()
S
56 2 21
BSF_Custom_Fonts_Admin_Ajax::__construct()
S
56 2 18
BSF_Analytics::render_settings_field_html()
S
56 2 18
Bsf_Custom_Fonts_Taxonomy::create_custom_fonts_taxonomies()
S
49 1 32
BSF_Custom_Fonts_Posttype::bsf_custom_fonts_post_type()
S
49 1 31
BSF_Custom_Fonts_Menu::settings_app_scripts()
S
50 1 31
bcf_sanitize_text_field_recursive()
S
66 3 9
Custom_Fonts_Update::needs_db_update()
S
68 3 7
Astra_Notices::sort_notices()
S
65 3 9
Bsf_Custom_Fonts_Render::add_block_assets_style()
S
69 3 6
BCF_Google_Fonts_Compatibility::get_filesystem()
S
64 3 10
BSF_Analytics::maybe_track_analytics()
S
64 3 10
Astra_Notices::get_notice_id()
S
69 3 6
Bsf_Custom_Fonts_White_Label::white_label_custom_fonts_title()
S
65 3 9
BSF_Analytics_Stats::get_curl_ssl_version()
S
68 3 7
BSF_Analytics_Stats::get_curl_version()
S
70 3 6
BSF_Custom_Fonts_Menu::is_custom_fonts_screen()
S
69 3 6
BSF_Analytics::sanitize_option()
S
71 3 6
Bsf_Custom_Fonts_Render::get_existing_font_posts()
S
59 2 14
BSF_Analytics::__construct()
S
60 2 14
Bsf_Custom_Fonts_Admin::select_default_new_field()
S
61 2 14
Bsf_Custom_Fonts_Admin::add_new_taxonomy_repeater_data()
S
52 1 24
BSF_Custom_Fonts_Posttype::default_args()
S
57 1 19
Bsf_Custom_Fonts_Taxonomy::default_args()
S
57 1 19
Bsf_Custom_Fonts_Admin::edit_new_taxonomy_default_data()
S
57 1 17
Astra_Notices::markup()
S
58 1 16
Bsf_Custom_Fonts_Admin::font_file_edit_field()
S
60 1 16
Bsf_Custom_Fonts_Taxonomy::get_instance()
S
71 2 6
BSF_Analytics_Stats::get_user_count()
S
66 2 9
Bsf_Custom_Fonts_White_Label::set_instance()
S
71 2 6
Custom_Fonts_Update::__construct()
S
68 2 7
Bsf_Custom_Fonts_Admin::font_edit_field()
S
61 1 15
BSF_Custom_Fonts_Posttype::get_instance()
S
71 2 6
BSF_Analytics_Stats::instance()
S
71 2 6
Astra_Notices::get_instance()
S
71 2 6
Bsf_Custom_Fonts_Render::__construct()
S
57 1 15
bcf_get_media_image_id_by_url()
S
66 2 8
BCF_Google_Fonts_Compatibility::get_instance()
S
71 2 6
Custom_Fonts_API_Init::register_routes()
S
60 1 15
BSF_Custom_Font_Admin_Loader::get_instance()
S
71 2 6
BSF_Custom_Fonts_Menu::get_instance()
S
71 2 6
BSF_Custom_Fonts_Admin_Ajax::get_instance()
S
71 2 6
BCF_Google_Fonts_Compatibility::get_base_url()
S
71 2 6
Bsf_Custom_Fonts::get_instance()
S
71 2 6
Custom_Fonts_Update::get_instance()
S
71 2 6
Bsf_Custom_Fonts_Render::get_instance()
S
71 2 6
Bsf_Custom_Fonts::__construct()
S
66 2 9
BSF_Analytics::set_actions()
S
66 2 7
BCF_Filesystem::get_instance()
S
71 2 6
BSF_Analytics::get_api_url()
S
79 2 3
Bsf_Custom_Fonts_Admin::add_new_taxonomy_default_data()
S
60 1 15
Custom_Fonts_API_Init::get_permissions_check()
S
69 2 6
BCF_Google_Fonts_Compatibility::get_base_path()
S
71 2 6
BSF_Analytics::update_analytics_option_callback()
S
74 2 5
BSF_Analytics::get_analytics_install_time()
S
67 2 8
Custom_Fonts_API_Init::get_instance()
S
71 2 6
Custom_Fonts_API_Init::get_admin_settings_option()
S
74 2 4
Bsf_Custom_Fonts_Render::get_font_values()
S
74 2 4
Bsf_Custom_Fonts_White_Label::__construct()
S
62 2 10
BSF_Analytics_Loader::get_instance()
S
71 2 6
BSF_Custom_Fonts_Admin_Ajax::get_error_msg()
S
71 2 6
BSF_Analytics::add_analytics_option_callback()
S
74 2 5
BSF_Custom_Fonts_Menu::settings_admin_scripts()
S
70 2 6
Astra_Notices::get_url()
S
64 2 9
Bsf_Custom_Fonts_Admin::get_instance()
S
71 2 6
BCF_Custom_Font_Families::get_font_weight_list()
S
60 1 13
BSF_Custom_Fonts_Menu::render_admin_dashboard()
S
75 1 11
Astra_Notices::enqueue_scripts()
S
63 1 11
Bsf_Custom_Fonts_Admin::font_file_new_field()
S
63 1 11
BSF_Analytics_Loader::set_entity()
S
80 1 3
BCF_Google_Fonts_Compatibility::get_fonts_folder()
S
73 1 5
Bsf_Custom_Fonts_Render::elementor_group()
S
72 1 5
BCF_Google_Fonts_Compatibility::get_font_slug()
S
72 1 5
BSF_Custom_Fonts_Menu::register_custom_fonts_menu()
S
64 1 10
BSF_Analytics::includes()
S
80 1 3
Astra_Notices::__construct()
S
69 1 6
Astra_Notices::get_notices()
S
76 1 4
BSF_Analytics_Loader::__construct()
S
79 1 3
Bsf_Custom_Fonts_Admin::font_new_field()
S
65 1 10
BSF_Custom_Font_Admin_Loader::__construct()
S
77 1 5
BSF_Analytics::optout()
S
79 1 3
BSF_Custom_Font_Admin_Loader::includes()
S
71 1 6
Bsf_Custom_Fonts_Taxonomy::__construct()
S
79 1 3
BSF_Analytics::get_analytics_url()
S
72 1 5
Bsf_Custom_Fonts_White_Label::action_links()
S
66 1 7
BSF_Custom_Fonts_Posttype::__construct()
S
79 1 3
Bsf_Custom_Fonts_Taxonomy::update_font_links()
S
71 1 5
Custom_Fonts_API_Init::update_admin_settings_option()
S
72 1 5
BSF_Analytics::send()
S
65 1 10
BSF_Analytics::optin()
S
79 1 3
Custom_Fonts_Update::update_db_version()
S
80 1 3
BSF_Analytics_Stats::is_content_writable()
S
75 1 4
BSF_Custom_Fonts_Menu::add_fonts_to_allowed_mimes()
S
65 1 9
BCF_Filesystem::filesystem_method()
S
82 1 3
BSF_Analytics_Stats::get_mysql_version()
S
77 1 4
Bsf_Custom_Fonts_White_Label::settings()
S
69 1 7
bcf_filesystem()
S
82 1 3
bcf_google_fonts_compatibility()
S
82 1 3
BSF_Custom_Fonts_Menu::initialize_hooks()
S
69 1 6
BCF_Filesystem::request_filesystem_credentials()
S
82 1 3
Custom_Fonts_API_Init::__construct()
S
74 1 4
Bsf_Custom_Fonts_White_Label::add_white_lavel_form()
S
80 1 3
Bsf_Custom_Fonts_Render::enque_data()
S
78 1 3
Bsf_Custom_Fonts_Render::load_textdomain()
S
81 1 3
Bsf_Custom_Fonts_Taxonomy::get_font_links()
S
74 1 4
BSF_Custom_Fonts_Menu::bsf_custom_fonts_admin_footer_link()
S
68 1 8
BSF_Custom_Fonts_Menu::__construct()
S
82 1 3
BSF_Analytics_Stats::get_stats()
S
79 1 3
BSF_Analytics_Stats::format_plugin()
S
63 1 10
Bsf_Custom_Fonts::custom_fonts_update()
S
80 1 3
Astra_Notices::add_data_attributes()
S
76 1 4
Bsf_Custom_Fonts_Render::enqueue_admin_scripts()
S
71 1 5
Bsf_Custom_Fonts_Admin::__construct()
S
67 1 7
Astra_Notices::add_notice()
S
79 1 3