Code Analysis: Location Weather 1.2.1

Function Rating Maintainability Complexity Lines of code
csf_get_google_fonts()
D
5
1 1,007
CSF_Fields::field_data()
D
25
52 138
CSF_Options::add_options_html()
D
28
39 104
CSF_Abstract::recursive_output_css()
D
35 40 64
CSF_Field_typography::render()
D
22
29 220
CSF_Field_select::render()
D
33 38 76
CSF_Fields::field_wp_query_data_title()
D
36 36 65
CSF_Options::set_options()
D
35 34 74
CSF_Field_border::output()
D
44 35 31
CSF_Metabox::add_meta_box_content()
C
31 30 97
CSF_Field_background::render()
C
25
21 189
SPLW::field()
C
36 27 69
CSF_Comment_Metabox::add_comment_meta_box_content()
C
36 27 67
CSF_Taxonomy_Options::save_taxonomy()
C
37 26 68
CSF_Comment_Metabox::save_comment_meta_box()
C
37 26 67
CSF_Metabox::save_meta_box()
C
37 26 67
ShapedPlugin\Weather\Frontend\Shortcode::render_shortcode()
C
39 27 49
CSF_Nav_Menu_Options::wp_update_nav_menu_item()
C
37 25 67
CSF_Profile_Options::save_profile()
C
37 25 67
CSF_Field_group::render()
C
35 23 76
CSF_Shortcoder::get_shortcode()
C
40 25 46
CSF_Field_spacing::output()
B
47 24 27
CSF_Field_spacing::render()
B
36 20 71
CSF_Field_border::render()
B
34 18 90
CSF_Customize_Options::add_section()
B
40 20 51
CSF_Taxonomy_Options::render_taxonomy_form_fields()
B
45 21 33
CSF_Field_typography::enqueue_google_fonts()
B
45 20 39
SPLW::add_admin_enqueue_scripts()
B
38 18 63
CSF_Field_dimensions::render()
B
41 17 51
CSF_Field_typography::output()
B
43 17 45
CSF_Profile_Options::render_profile_form_fields()
B
47 18 29
CSF_Shortcoder::add_footer_modal_shortcode()
B
40 16 56
ShapedPlugin\Weather\Frontend\Shortcode::current_weather_html()
B
51 18 18
CSF_Field_checkbox::render()
A
41 15 52
CSF_Field_radio::render()
A
41 15 50
CSF_Field_link_color::output()
A
54 17 16
CSF_Field_button_set::render()
A
47 16 30
CSF_Field_background::output()
A
46 15 33
CSF_Nav_Menu_Options::wp_nav_menu_item_custom_fields()
A
48 15 28
CSF_Field_repeater::render()
A
40 12 56
CSF_Metabox::add_metabox_classes()
A
47 13 35
CSF_Field_typography::create_select()
A
51 13 21
CSF_Field_sorter::render()
A
47 12 34
CSF_Customize_Options::add_customize_options()
A
49 12 28
CSF_Field_tabbed::render()
A
48 12 27
CSF_Field_media::render()
A
41 10 53
CSF_Options::add_admin_bar_menu()
A
50 11 25
WP_Customize_Control_CSF::render_content()
A
45 10 38
CSF_Field_number::output()
A
52 11 21
CSF_Field_slider::output()
A
52 11 21
CSF_Field_spinner::output()
A
52 11 21
WP_Customize_Control_CSF::render()
A
46 10 36
CSF_Field_sortable::render()
A
47 10 35
CSF_Field_dimensions::output()
A
56 11 14
SPLW::include_plugin_file()
A
51 10 24
CSF_Options::error_check()
A
54 10 22
CSF_Field_accordion::render()
A
49 9 26
SPLW::setup()
A
52 9 25
CSF_Fields::field_attributes()
A
53 9 22
csf_chosen_ajax()
A
54 9 18
CSF_Field_color::output()
A
54 9 18
CSF_Customize_Options::save_defaults()
A
56 9 17
CSF_Field_image_select::render()
A
50 8 24
CSF_Shortcoder::pre_tabs()
A
53 8 22
CSF_Options::pre_tabs()
A
53 8 22
csf_get_icons()
A
51 8 22
CSF_Field_palette::render()
A
53 8 21
CSF_Metabox::__construct()
A
53 8 18
csf_import_ajax()
A
56 8 16
CSF_Metabox::get_meta_value()
A
56 8 16
CSF_Nav_Menu_Options::get_meta_value()
S
57 8 15
CSF_Profile_Options::get_meta_value()
S
57 8 15
CSF_Comment_Metabox::get_meta_value()
S
57 8 15
CSF_Taxonomy_Options::get_meta_value()
S
57 8 15
CSF_Options::add_admin_menu()
S
52 7 21
SPLW::set_used_fields()
S
56 7 18
CSF_Field_map::render()
S
44 5 45
ShapedPlugin\Weather\Frontend\Shortcode::get_wind_speed()
S
54 6 23
CSF_Field_typography::enqueue()
S
40 3 64
CSF_Widget::form()
S
55 6 18
CSF_Customize_Options::pre_tabs()
S
57 6 17
CSF_Field_color_group::render()
S
56 6 15
CSF_Field_switcher::render()
S
56 6 15
CSF_Field_fieldset::render()
S
58 6 13
ShapedPlugin\Weather\Admin\sp_location_weather_widget_content::widget()
S
43 3 57
CSF_Field_image_select::output()
S
60 6 11
CSF_Options::save_defaults()
S
62 6 11
ShapedPlugin\Weather\Admin\LW_Widget::form()
S
51 5 25
CSF_Field_link_color::render()
S
47 4 35
ShapedPlugin\Weather\Admin\Updater::does_need_update()
S
56 5 19
csf_export()
S
56 5 17
ShapedPlugin\Weather\Admin\Updater::perform_updates()
S
58 5 16
ShapedPlugin\Weather\Frontend\Aid\Time::__construct()
S
57 5 16
CSF_Options::get_options()
S
59 5 15
CSF_Options::pre_sections()
S
59 5 15
CSF_Fields::field_name()
S
62 6 10
CSF_Shortcoder::pre_sections()
S
61 5 14
SPLW::constants()
S
58 5 13
csf_array_search()
S
61 5 12
CSF_Field_code_editor::enqueue()
S
60 5 11
ShapedPlugin\Weather\Frontend\Shortcode::temperature_scale()
S
63 5 11
CSF_Field_textarea::shortcoder()
S
61 5 11
CSF_Field_wp_editor::render()
S
52 4 24
CSF_Field_gallery::render()
S
51 4 23
CSF_Widget::__construct()
S
56 4 18
CSF_Field_upload::render()
S
55 4 17
SPLW::add_typography_enqueue_styles()
S
56 4 16
ShapedPlugin\Weather\Frontend\Scripts::__construct()
S
72 5 4
CSF_Taxonomy_Options::__construct()
S
60 5 10
CSF_Widget::update()
S
61 5 10
CSF_Fields::field_after()
S
65 5 7
ShapedPlugin\Weather\Admin\Scripts::__construct()
S
72 5 4
ShapedPlugin\Weather\Frontend\Aid\City::__construct()
S
64 5 8
ShapedPlugin\Weather\Frontend\Aid\Unit::getUnit()
S
65 5 9
CSF_Options::save_options()
S
61 4 12
CSF_Options::add_page_on_load()
S
61 4 12
ShapedPlugin\Weather\Frontend\Shortcode::parse_xml()
S
60 4 12
CSF_Metabox::pre_fields()
S
63 4 11
CSF_Comment_Metabox::pre_fields()
S
63 4 11
CSF_Field_map::enqueue()
S
62 4 11
CSF_Options::pre_fields()
S
63 4 11
CSF_Customize_Options::pre_fields()
S
63 4 11
CSF_Field_date::render()
S
51 3 24
ShapedPlugin\Weather\Frontend\Scripts::lw_styles()
S
52 3 22
ShapedPlugin\Weather\Admin\Splw_Help::help_page_callback()
S
52 1 51
ShapedPlugin\Weather\Frontend\Shortcode::current_weather_data()
S
47 2 36
CSF_Shortcoder::__construct()
S
54 3 18
CSF_Options::__construct()
S
54 3 18
CSF_Field_slider::render()
S
55 3 18
ShapedPlugin\Weather\Frontend\WeatherData\CurrentWeather::__construct()
S
53 3 18
CSF_Field_callback::render()
S
69 4 6
CSF_Widget::get_widget_value()
S
70 4 5
ShapedPlugin\Weather\Admin\Post_Type::register_post_type()
S
45 1 45
csf_reset_ajax()
S
63 4 9
CSF_Customize_Options::get_options()
S
63 3 11
CSF_Field_wp_editor::setup_wp_editor_settings()
S
63 3 11
ShapedPlugin\Weather\Admin\LW_Widget::shortcodes_list()
S
56 2 20
sp_lw_delete_plugin_data()
S
58 2 16
CSF_Field_icon::render()
S
56 2 16
ShapedPlugin\Weather\Admin\sp_location_weather_widget_content::form()
S
52 1 30
ShapedPlugin\Weather\Frontend\Aid\Location::__construct()
S
74 3 4
CSF_Metabox::get_default()
S
71 3 5
CSF_Field_group::enqueue()
S
68 3 8
CSF_Nav_Menu_Options::wp_edit_nav_menu_walker()
S
64 3 10
CSF_Nav_Menu_Options::get_default()
S
71 3 5
CSF_Profile_Options::get_default()
S
71 3 5
CSF_Field_notice::render()
S
72 3 4
CSF_Comment_Metabox::get_default()
S
71 3 5
CSF_Shortcoder::get_default()
S
71 3 5
CSF_Abstract::__construct()
S
71 3 5
CSF_Shortcoder::once_editor_setup()
S
67 3 8
CSF_Taxonomy_Options::get_default()
S
71 3 5
CSF_Customize_Options::get_default()
S
71 3 5
SPLW::maybe_include_field()
S
71 3 5
CSF_Widget::get_default()
S
71 3 5
CSF_Field_wp_editor::enqueue()
S
68 3 7
CSF_Options::get_default()
S
71 3 5
ShapedPlugin\Weather\Admin\LW_Widget::widget()
S
64 3 9
CSF_Field_code_editor::render()
S
58 2 14
CSF_Customize_Options::__construct()
S
58 2 14
SPLW::includes()
S
63 2 12
CSF_Comment_Metabox::__construct()
S
60 2 11
CSF_Field_number::render()
S
61 2 11
Location_Weather::add_plugin_action_links_location()
S
61 2 11
CSF_Field_icon::add_footer_modal_icon()
S
59 1 24
csf_validate_required()
S
73 2 5
ShapedPlugin\Weather\Admin\Splw_Help::getInstance()
S
71 2 6
CSF_Field_select::enqueue()
S
74 2 5
CSF_Shortcoder::add_media_buttons()
S
70 2 5
CSF_Field_date::enqueue()
S
74 2 5
CSF_Field_repeater::enqueue()
S
74 2 5
CSF_Field_subheading::render()
S
77 2 3
CSF_Options::ajax_save()
S
66 2 8
csf_customize_validate_email()
S
70 2 6
csf_timeout()
S
78 2 3
ShapedPlugin\Weather\Frontend\Aid\Unit::__construct()
S
69 2 6
csf_customize_validate_numeric()
S
70 2 6
CSF_Field_slider::enqueue()
S
74 2 5
CSF_Options::add_admin_footer_text()
S
74 2 4
SPLW::add_custom_css()
S
72 2 5
csf_validate_email()
S
72 2 5
csf_customize_validate_required()
S
70 2 6
CSF_Field_sortable::enqueue()
S
74 2 5
Location_Weather::init_plugin()
S
69 2 7
ShapedPlugin\Weather\Frontend\Aid\City::timezoneOffsetInSecondsToHours()
S
64 2 8
CSF_Shortcoder::add_guteberg_blocks()
S
64 2 9
CSF_Field_content::render()
S
73 2 5
ShapedPlugin\Weather\Frontend\Aid\Unit::getFormatted()
S
69 2 7
SPLW::add_admin_body_class()
S
70 2 6
CSF_Metabox::add_meta_box()
S
70 2 5
CSF_Comment_Metabox::add_comment_metabox_classes()
S
71 2 6
CSF_Field_color::render()
S
67 2 6
ShapedPlugin\Weather\Frontend\Shortcode::build_query_url_parameter()
S
67 2 8
csf_customize_validate_url()
S
70 2 6
CSF_Field_sorter::enqueue()
S
74 2 5
ShapedPlugin\Weather\Frontend\Aid\Sun::__construct()
S
69 2 7
CSF_Field_spinner::enqueue()
S
74 2 5
CSF_Field_submessage::render()
S
72 2 4
ShapedPlugin\Weather\Frontend\Shortcode::build_url()
S
68 2 6
CSF_Field_text::render()
S
67 2 6
Location_Weather::init()
S
69 2 7
Location_Weather::redirect_after_activation()
S
72 2 5
CSF_Fields::field_before()
S
76 2 3
ShapedPlugin\Weather\Admin::add_lw_shortcode_form()
S
64 2 10
CSF_Field_heading::render()
S
77 2 3
csf_validate_numeric()
S
73 2 5
csf_validate_url()
S
72 2 5
CSF_Field_backup::render()
S
57 1 14
SPLW::init()
S
61 1 12
CSF_Field_spinner::render()
S
60 1 11
CSF_Field_slider::__construct()
S
78 1 3
ShapedPlugin\Weather\Frontend\Scripts::scripts_handler()
S
82 1 3
ShapedPlugin\Weather\Admin\Scripts::scripts_handler()
S
82 1 3
CSF_Abstract::collect_output_css_and_typography()
S
81 1 3
ShapedPlugin\Weather\Frontend\Aid\Weather::getIconUrl()
S
79 1 3
SPLW::include_plugin_url()
S
77 1 3
ShapedPlugin\Weather\Frontend::__construct()
S
77 1 4
ShapedPlugin\Weather\Frontend\Aid\Temperature::__construct()
S
64 1 10
CSF_Field_spacing::__construct()
S
78 1 3
ShapedPlugin\Weather\Admin\Post_Type::__construct()
S
79 1 3
ShapedPlugin\Weather\Admin::__construct()
S
69 1 7
SPLW::createMetabox()
S
78 1 3
CSF_Field_radio::__construct()
S
78 1 3
CSF_Comment_Metabox::instance()
S
79 1 3
ShapedPlugin\Weather\Admin\sp_location_weather_widget_content::update()
S
69 1 7
ShapedPlugin\Weather\Admin\Scripts::lw_styles()
S
77 1 3
ShapedPlugin\Weather\Admin\Updater::do_updates()
S
82 1 3
ShapedPlugin\Weather\Frontend\Aid\Unit::getPrecision()
S
82 1 3
ShapedPlugin\Weather\Admin::admin_publish_button_remove()
S
79 1 3
CSF_Field_background::__construct()
S
78 1 3
Location_Weather::define_constants()
S
72 1 9
ShapedPlugin\Weather\Frontend\Aid\Temperature::getDescription()
S
81 1 3
ShapedPlugin\Weather\Admin\sp_location_weather_widget_content::__construct()
S
68 1 8
CSF_Profile_Options::add_profile_options()
S
70 1 6
ShapedPlugin\Weather\Frontend\Aid\Unit::jsonSerialize()
S
67 1 8
SPLW::is_active_plugin()
S
78 1 3
CSF_Field_upload::__construct()
S
78 1 3
CSF_Metabox::instance()
S
79 1 3
CSF_Field_content::__construct()
S
78 1 3
CSF_Field_button_set::__construct()
S
78 1 3
CSF_Field_map::__construct()
S
78 1 3
ShapedPlugin\Weather\Frontend\Aid\Weather::setIconUrlTemplate()
S
80 1 3
csf_wp_editor_api()
S
76 1 4
CSF_Field_image_select::__construct()
S
78 1 3
ShapedPlugin\Weather\Admin::add_lw_shortcode_column()
S
67 1 7
CSF_Field_border::__construct()
S
78 1 3
CSF_Field_spinner::__construct()
S
78 1 3
CSF_Field_submessage::__construct()
S
78 1 3
location_weather_dashboard_capability()
S
80 1 3
CSF_Field_gallery::__construct()
S
78 1 3
CSF_Field_sorter::__construct()
S
78 1 3
CSF_Shortcoder::instance()
S
79 1 3
CSF_Field_subheading::__construct()
S
78 1 3
ShapedPlugin\Weather\Frontend\Shortcode::get_weather()
S
71 1 5
CSF_Field_group::__construct()
S
78 1 3
CSF_Comment_Metabox::add_comment_meta_box()
S
76 1 3
CSF_Field_wp_editor::__construct()
S
78 1 3
CSF_Field_dimensions::__construct()
S
78 1 3
ShapedPlugin\Weather\Admin\Updater::__construct()
S
79 1 3
CSF_Field_typography::__construct()
S
78 1 3
CSF_Field_color_group::__construct()
S
78 1 3
ShapedPlugin\Weather\Frontend\Aid\Weather::__construct()
S
73 1 5
ShapedPlugin\Weather\Frontend\Aid\Temperature::__toString()
S
81 1 3
ShapedPlugin\Weather\Frontend\Shortcode::get_raw_weather_data()
S
69 1 6
CSF_Field_icon::__construct()
S
78 1 3
CSF_Widget::instance()
S
79 1 3
CSF_Field_select::__construct()
S
78 1 3
CSF_Field_number::__construct()
S
78 1 3
CSF_Field_text::__construct()
S
78 1 3
CSF_Field_link_color::__construct()
S
78 1 3
CSF_Nav_Menu_Options::__construct()
S
64 1 8
CSF_Field_repeater::__construct()
S
78 1 3
CSF_Field_accordion::__construct()
S
78 1 3
ShapedPlugin\Weather\Frontend\Aid\Temperature::getValue()
S
81 1 3
SPLW::sanitize_dirname()
S
78 1 3
Location_Weather::splw_widget()
S
75 1 4
CSF_Field_wp_editor::setup_wp_editor_media_buttons()
S
64 1 10
ShapedPlugin\Weather\Admin\Splw_Help::help_page()
S
77 1 3
CSF_Profile_Options::__construct()
S
68 1 6
ShapedPlugin\Weather\Admin\LW_Widget::update()
S
73 1 5
CSF_Profile_Options::instance()
S
79 1 3
CSF_Field_code_editor::__construct()
S
78 1 3
CSF_Taxonomy_Options::add_taxonomy_options()
S
69 1 6
ShapedPlugin\Weather\Frontend\Aid\Unit::getValue()
S
82 1 3
CSF_Field_palette::__construct()
S
78 1 3
CSF_Field_textarea::__construct()
S
78 1 3
CSF_Field_switcher::__construct()
S
78 1 3
CSF_Widget::widget()
S
79 1 3
SPLW::createSection()
S
75 1 4
ShapedPlugin\Weather\Admin::admin_publish_update_notice()
S
71 1 5
CSF_Options::instance()
S
79 1 3
Location_Weather::__construct()
S
67 1 7
csf_get_default_icons()
S
56 1 6
ShapedPlugin\Weather\Frontend\Aid\Wind::__construct()
S
77 1 4
ShapedPlugin\Weather\Frontend\Aid\Temperature::getUnit()
S
81 1 3
CSF_Field_textarea::render()
S
69 1 6
ShapedPlugin\Weather\Admin::init_filters_actions()
S
67 1 7
ShapedPlugin\Weather\Frontend\Shortcode::__construct()
S
79 1 3
location_weather()
S
82 1 3
ShapedPlugin\Weather\Admin\LW_Widget::__construct()
S
66 1 9
CSF_Field_sortable::__construct()
S
78 1 3
CSF_Field_media::__construct()
S
78 1 3
CSF_Field_date::__construct()
S
78 1 3
CSF_Field_notice::__construct()
S
78 1 3
CSF_Field_callback::__construct()
S
78 1 3
CSF_Field_heading::__construct()
S
78 1 3
ShapedPlugin\Weather\Frontend\Aid\Unit::__toString()
S
81 1 3
CSF_Field_icon::enqueue()
S
75 1 4
CSF_Customize_Options::instance()
S
79 1 3
csf_sanitize_title()
S
81 1 3
CSF_Field_fieldset::__construct()
S
78 1 3
CSF_Nav_Menu_Options::instance()
S
79 1 3
csf_get_default_icons()
S
53 1 6
CSF_Field_backup::__construct()
S
78 1 3
CSF_Walker_Nav_Menu_Edit::start_el()
S
65 1 8
ShapedPlugin\Weather\Frontend\Aid\Temperature::getFormatted()
S
81 1 3
CSF_Taxonomy_Options::instance()
S
79 1 3
CSF_Field_color::__construct()
S
78 1 3
CSF_Fields::__construct()
S
69 1 7
SPLW::createOptions()
S
78 1 3
ShapedPlugin\Weather\Admin\Splw_Help::__construct()
S
78 1 3
csf_sanitize_replace_a_to_b()
S
79 1 3
ShapedPlugin\Weather\Frontend\Aid\Weather::__toString()
S
82 1 3
CSF_Field_checkbox::__construct()
S
78 1 3
ShapedPlugin\Weather\Admin::remove_lw_post_column()
S
77 1 4
ShapedPlugin\Weather\Frontend\Aid\Unit::getDescription()
S
82 1 3
CSF_Field_tabbed::__construct()
S
78 1 3
CSF_Customize_Options::add_customize_save_after()
S
71 1 5