Code Analysis: Fonts Plugin | Google Fonts Typography 3.6.51

Function Rating Maintainability Complexity Lines of code
ogf_generate_css()
C
36 28 80
ogf_customize_register()
C
21
9 332
ogf_generate_css_gutenberg()
B
40 22 58
olympus_google_fonts_block_render()
B
42 18 45
OGF_Classic_Editor::tinymce_custom_options()
B
46 17 36
ogf_build_customizer_controls()
A
35 6 118
OGF_Typekit::get_kits()
A
45 11 39
ogf_panels_customize_register()
A
31 2 170
ogf_return_custom_font_css()
A
51 10 24
ogf_generate_css_variables()
A
52 10 23
OGF_Fonts::get_choices()
A
55 9 20
OGF_Customize_Typography_Control::get_font_weight_choices()
A
44 7 45
ogf_build_font_stack()
A
51 8 27
OGF_Dashboard_Widget::display_rss_dashboard_widget()
A
44 6 51
OGF_Customize_Repeater_Control::render_content()
A
46 6 47
ogf_get_elements()
S
34 1 119
OGF_Typekit::render_results_section()
S
49 7 28
OGF_Typekit::manage_kits()
S
56 7 18
OGF_Notifications::display_admin_notice()
S
46 2 91
OGF_Customize_Repeater_Control::input_control()
S
47 5 46
ogf_woocommerce_controls()
S
38 1 95
OGF_Customize_Typography_Control::to_json()
S
55 6 19
OGF_Customize_Typography_Control::content_template()
S
45 1 83
ogf_system_fonts()
S
39 1 81
OGF_Typekit::get_fonts()
S
55 5 21
OGF_Optimization_Controls::register_settings()
S
41 1 79
OGF_Classic_Editor::tinymce_add_fonts()
S
56 5 17
Olympus_Google_Fonts::enqueue()
S
58 5 15
OGF_Notifications::set_no_bug()
S
68 6 6
OGF_Fonts_Taxonomy::get_fonts()
S
55 4 20
OGF_Fonts::build_url()
S
54 4 19
OGF_Fonts_Taxonomy::get_links_by_name()
S
57 4 17
Olympus_Google_Fonts::resource_hints()
S
58 4 16
OGF_Notifications::seconds_to_words()
S
57 4 15
OGF_Upload_Fonts_Screen::add_to_allowed_mimes()
S
64 5 8
ogf_gutenberg_build_css()
S
47 2 43
OGF_Classic_Editor::typekit_fonts_enqueue()
S
61 4 12
OGF_Typekit::enqueue_css()
S
62 4 11
Olympus_Google_Fonts::constants()
S
65 4 11
OGF_Fonts::has_google_fonts()
S
64 4 11
olympus_google_fonts_register_block()
S
49 2 40
OGF_Welcome_Screen::render_welcome_page()
S
50 2 34
OGF_Customize_Repeater_Control::iterate_array()
S
58 3 19
ogf_output_css()
S
58 3 18
ogf_gutenberg_output_css()
S
59 3 17
OGF_Customize_Multiple_Checkbox_Control::to_json()
S
57 3 16
ogf_redirect()
S
65 4 9
OGF_Upload_Fonts_Screen::customize_output()
S
60 3 15
OGF_Notifications::check_installation_date()
S
64 4 9
ogf_fonts_array()
S
59 3 14
OGF_Typekit::standardize_variant_names()
S
51 2 27
OGF_Clear_Cache::clear()
S
62 3 12
Olympus_Google_Fonts::compatibility()
S
61 3 12
OGF_Fonts::get_remote_url_contents()
S
61 3 12
ogf_get_custom_elements()
S
62 3 11
OGF_Fonts_Taxonomy::update_font_links()
S
62 3 11
OGF_Upload_Fonts_Screen::manage_columns()
S
63 3 11
OGF_Upload_Fonts_Screen::update_mime_types()
S
63 3 11
OGF_Fonts_Taxonomy::register_fonts_taxonomy()
S
50 1 31
OGF_Clear_Cache::ajax_customizer_clear_cache()
S
65 3 10
OGF_Welcome::display_admin_notice()
S
61 2 15
ogf_is_google_font()
S
66 3 9
ogf_is_system_font()
S
66 3 9
ogf_is_custom_font()
S
66 3 9
OGF_Classic_Editor::__construct()
S
57 2 15
ogf_is_typekit_font()
S
66 3 9
Olympus_Google_Fonts::__construct()
S
58 2 14
OGF_Typekit::render_settings_page()
S
60 2 14
OGF_Welcome_Screen::add_plugin_page()
S
53 1 29
OGF_Upload_Fonts_Screen::register_custom_fonts_menu()
S
61 2 13
OGF_Notifications::__construct()
S
60 2 13
OGF_Welcome::__construct()
S
61 2 12
OGF_Reset::reset_customizer()
S
62 2 11
OGF_Customize_Multiple_Checkbox_Control::content_template()
S
67 1 26
OGF_Notifications::review()
S
53 1 25
ogf_font_variants()
S
52 1 23
Olympus_Google_Fonts::includes()
S
56 1 20
OGF_Customize_Multiple_Fonts_Control::content_template()
S
62 1 19
OGF_Clear_Cache::customize_register()
S
57 1 18
OGF_Reset::customize_register()
S
58 1 17
OGF_Upload_Fonts_Screen::font_file_edit_field()
S
60 1 16
OGF_Customize_Typography_Control::__construct()
S
57 1 16
OGF_Reset::ajax_customizer_reset()
S
69 2 7
OGF_Typekit::get_api_key()
S
68 2 7
OGF_Fonts::filter_selected_weights()
S
66 2 8
ogf_is_woocommerce_activated()
S
70 2 7
OGF_Welcome_Screen::enqueue()
S
68 2 6
OGF_Typekit::css_styles()
S
71 2 6
OGF_Welcome::dismiss_notice()
S
69 2 6
Olympus_Google_Fonts::links()
S
62 2 10
OGF_Classic_Editor::google_fonts_enqueue()
S
71 2 6
ogf_gutenberg_enqueue_fonts()
S
69 2 7
OGF_Fonts_Taxonomy::get_instance()
S
71 2 6
OGF_Optimization_Controls::__construct()
S
66 2 8
OGF_Classic_Editor::add_font_sizes()
S
70 2 6
ogf_is_forced()
S
71 2 6
OGF_Upload_Fonts_Screen::get_instance()
S
71 2 6
ogf_sanitize_select()
S
72 2 5
OGF_Upload_Fonts_Screen::save_metadata()
S
70 2 6
OGF_Fonts::get_font_subsets()
S
65 2 9
OGF_Upload_Fonts_Screen::enqueue()
S
68 2 7
ogf_register_typography_control()
S
71 2 6
OGF_Fonts::stored_css()
S
63 2 10
ogf_is_fpp_activated()
S
70 2 7
OGF_Fonts::get_font_name()
S
68 2 7
OGF_Fonts::get_font_weights()
S
67 2 8
OGF_Typekit::get_kit_from_api()
S
63 2 10
OGF_Dashboard_Widget::show_widget()
S
69 2 7
OGF_Welcome::dismiss_notice_backup()
S
72 2 5
OGF_Customize_Upsell_Control::render_content()
S
62 1 13
OGF_Upload_Fonts_Screen::__construct()
S
60 1 12
ogf_lyrathemes_elements()
S
61 1 12
OGF_Fonts_Taxonomy::default_args()
S
64 1 11
ogf_edgethemes_elements()
S
62 1 11
OGF_Upload_Fonts_Screen::font_file_new_field()
S
63 1 11
olympus_google_fonts_block_js()
S
63 1 11
OGF_Customize_Typography_Control::enqueue()
S
71 1 5
ogf_activate()
S
80 1 3
OGF_Optimization_Controls::customize_controls_enqueue()
S
77 1 3
OGF_Fonts::get_font_id()
S
79 1 3
OGF_Clear_Cache::customize_scripts()
S
65 1 10
OGF_Fonts_Taxonomy::__construct()
S
82 1 3
Olympus_Google_Fonts::load_textdomain()
S
77 1 3
ogf_wporg_elements()
S
73 1 5
OGF_Dashboard_Widget::add_dashboard_widget()
S
66 1 10
OGF_Customize_Typography_Control::get_font_style_choices()
S
65 1 9
OGF_Reset::customize_scripts()
S
65 1 10
OGF_Upload_Fonts_Screen::edit_taxonomy_data()
S
66 1 7
ogf_typekit_fonts()
S
82 1 3
OGF_Reset::__construct()
S
72 1 5
Olympus_Google_Fonts::remove_pro_sections()
S
77 1 4
ogf_themefreesia_elements()
S
66 1 8
OGF_Upload_Fonts_Screen::add_new_taxonomy_data()
S
69 1 6
OGF_Customize_Multiple_Fonts_Control::to_json()
S
70 1 6
OGF_Welcome_Screen::__construct()
S
72 1 5
OGF_Welcome::enqueue()
S
77 1 3
OGF_Fonts::has_custom_fonts()
S
81 1 3
ogf_panels_customize_controls_scripts()
S
78 1 3
OGF_Customize_Repeater_Control::enqueue()
S
70 1 5
OGF_Customize_Multiple_Checkbox_Control::enqueue()
S
77 1 3
OGF_Typekit::add_settings_page()
S
65 1 10
OGF_Optimization_Controls::register_section()
S
65 1 10
OGF_Typekit::render_config_section()
S
80 1 3
OGF_Classic_Editor::tinymce_add_buttons()
S
72 1 6
OGF_Typekit::render_settings()
S
74 1 4
OGF_Typekit::__construct()
S
65 1 9
Olympus_Google_Fonts::customize_controls_enqueue()
S
63 1 9
ogf_custom_fonts()
S
82 1 3
ogf_silverks_elements()
S
73 1 5
OGF_Typekit::register_settings()
S
68 1 6
OGF_Welcome_Screen::dismiss_guide()
S
80 1 3
OGF_Clear_Cache::__construct()
S
72 1 5
OGF_Fonts::__construct()
S
76 1 4
OGF_Customize_Multiple_Checkbox_Control::render_content()
S
98 1 1
ogf_add_styles_to_site_editor()
S
71 1 6
OGF_Fonts_Taxonomy::get_font_links()
S
74 1 4
OGF_Customize_Typography_Control::render_content()
S
98 1 1
OGF_Customize_Typography_Control::get_text_transform_choices()
S
63 1 10
ogf_echo_custom_font_css()
S
82 1 3
Olympus_Google_Fonts::customize_preview_enqueue()
S
65 1 8
ogf_themegrill_elements()
S
76 1 4
OGF_Dashboard_Widget::__construct()
S
79 1 3
OGF_Customize_Multiple_Fonts_Control::enqueue()
S
77 1 3
ogf_colorlib_elements()
S
76 1 4
ogf_initiate()
S
83 1 3
OGF_Customize_Panel::json()
S
65 1 8
ogf_themeisle_elements()
S
65 1 9
OGF_Customize_Multiple_Fonts_Control::render_content()
S
98 1 1