Code Analysis: Location Weather 2.0.13

Function Rating Maintainability Complexity Lines of code
SPLWT_Fields::field_data()
D
22
58 176
ShapedPlugin\Weather\Frontend\Shortcode::splw_html_show()
D
26
60 99
SPLWT_Options::add_options_html()
D
27
43 113
SPLWT_Field_typography::render()
D
19
31 272
SPLWT_Field_select::render()
D
30 43 91
SPLWT_Metabox::save_meta_box()
D
31 39 95
SPLWT_Abstract::recursive_output_css()
D
35 40 64
SPLWT_Fields::field_wp_query_data_title()
D
36 36 65
SPLWT_Options::set_options()
D
35 34 74
ShapedPlugin\Weather\Admin\Splw_Help::help_page_callback()
D
23
10 425
SPLWT_Field_border::render()
D
28
28 136
SPLWT_Metabox::add_meta_box_content()
C
31 29 99
ShapedPlugin\Weather\Admin\Splw_Help::splw_plugins_info_api_help_page()
C
27
23 165
SPLW::field()
C
35 28 70
SPLWT_Field_spacing::render()
C
33 25 87
ShapedPlugin\Weather\Admin\Admin_Notices::display_admin_offer_banner()
B
37 22 72
SPLW::add_admin_enqueue_scripts()
B
35 20 77
SPLWT_Field_box_shadow::render()
B
35 15 85
SPLWT_Field_checkbox::render()
A
40 15 55
SPLWT_Field_button_set::render()
A
46 16 33
SPLWT_Field_button_clean::render()
A
46 16 32
SPLWT_Field_image_select::render()
A
43 15 42
SPLWT_Field_radio::render()
A
44 14 41
SPLWT_Metabox::add_metabox_classes()
A
46 13 36
SPLWT_Field_typography::create_select()
A
51 13 21
SPLWT_Field_tabbed::render()
A
48 12 28
ShapedPlugin\Weather\Frontend\Shortcode::build_query_url_parameter()
A
55 12 17
SPLWT_Options::add_admin_bar_menu()
A
49 11 29
ShapedPlugin\Weather\Admin\Location_Weather_Import_Export::import()
A
46 10 38
ShapedPlugin\Weather\Admin\Admin_Notices::display_admin_notice()
A
42 8 67
SPLWT_Field_sortable::render()
A
47 10 35
SPLW::include_plugin_file()
A
51 10 24
SPLWT_Options::error_check()
A
54 10 22
SPLW::setup()
A
52 9 25
SPLWT_Fields::field_attributes()
A
53 9 22
splwt_chosen_ajax()
A
54 9 18
SPLWT_Metabox::get_meta_value()
A
54 9 18
ShapedPlugin\Weather\Admin\Admin_Notices::dismiss_review_notice()
A
51 8 26
ShapedPlugin\Weather\Frontend\Shortcode::current_weather_data()
A
44 7 40
ShapedPlugin\Weather\Admin\Location_Weather_Import_Export::export_shortcodes()
A
51 8 24
ShapedPlugin\Weather\Frontend\Scripts::lw_db_options_update()
A
53 8 24
SPLWT_Options::pre_tabs()
A
53 8 22
splwt_get_icons()
A
51 8 22
SPLWT_Metabox::__construct()
A
53 8 18
splwt_import_ajax()
A
56 8 16
ShapedPlugin\Weather\Admin\Splw_Help::disable_admin_notices()
S
59 8 14
ShapedPlugin\Weather\Admin\Location_Weather_Import_Export::import_shortcodes()
S
49 7 29
ShapedPlugin\Weather\Frontend\Scripts::load_dynamic_style()
S
53 7 22
ShapedPlugin\Weather\Frontend\Shortcode::render_shortcode()
S
52 7 21
SPLWT_Options::add_admin_menu()
S
52 7 21
ShapedPlugin\Weather\Admin\Location_Weather_Import_Export::export()
S
48 6 34
SPLW::set_used_fields()
S
56 7 18
Location_Weather::__construct()
S
52 6 21
SPLWT_Field_switcher::render()
S
56 6 15
SPLWT_Field_color_group::render()
S
56 6 15
ShapedPlugin\Weather\Admin\sp_location_weather_widget_content::widget()
S
42 3 59
ShapedPlugin\Weather\Admin\Admin_Notices::dismiss_offer_banner()
S
59 6 12
ShapedPlugin\Weather\Frontend\Shortcode::get_wind_speed()
S
52 5 27
SPLWT_Options::save_defaults()
S
62 6 11
ShapedPlugin\Weather\Admin\LW_Widget::form()
S
53 5 20
ShapedPlugin\Weather\Admin\Updater::does_need_update()
S
56 5 19
ShapedPlugin\Weather\Frontend\Shortcode::get_weather()
S
55 5 19
splwt_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
SPLWT_Options::get_options()
S
59 5 15
SPLWT_Fields::field_name()
S
62 6 10
SPLWT_Options::pre_sections()
S
59 5 15
Location_Weather::redirect_after_activation()
S
70 6 5
Location_Weather::delete_page_lw_option_on_save()
S
59 5 14
Location_Weather::init_plugin()
S
58 5 14
SPLW::constants()
S
58 5 13
splwt_array_search()
S
61 5 12
SPLWT_Field_code_editor::enqueue()
S
59 5 12
ShapedPlugin\Weather\Frontend\Shortcode::temperature_scale()
S
62 5 11
lwp_clean_open_weather_transients()
S
52 4 23
SPLW::add_typography_enqueue_styles()
S
54 4 19
ShapedPlugin\Weather\Admin\Preview\LW_Preview::backend_preview()
S
54 4 19
SPLWT_Fields::field_after()
S
65 5 7
ShapedPlugin\Weather\Frontend\Aid\City::__construct()
S
64 5 8
ShapedPlugin\Weather\Admin\Gutenberg_Block\Gutenberg_Block_Init::__construct()
S
70 5 5
Location_Weather::get_location_weather_cache_expire_time()
S
66 5 7
ShapedPlugin\Weather\Frontend\Aid\Unit::getUnit()
S
65 5 9
ShapedPlugin\Weather\Frontend\Shortcode::get_raw_weather_data()
S
58 4 15
ShapedPlugin\Weather\Admin\Post_Type::register_post_type()
S
45 2 44
ShapedPlugin\Weather\Admin\Admin_Notices::sp_fetch_offers_data()
S
59 4 14
Location_Weather::display_missing_api_key_notice()
S
60 4 13
ShapedPlugin\Weather\Frontend\Shortcode::lw_locate_template()
S
61 4 13
SPLWT_Options::save_options()
S
60 4 12
SPLWT_Metabox::pre_fields()
S
63 4 11
SPLWT_Options::pre_fields()
S
63 4 11
SPLWT_Options::add_page_on_load()
S
63 4 11
ShapedPlugin\Weather\Admin\Gutenberg_Block\Gutenberg_Block_Init::location_weather_gutenberg_shortcode_block()
S
44 1 54
ShapedPlugin\Weather\Frontend\WeatherData\CurrentWeather::__construct()
S
51 3 22
ShapedPlugin\Weather\Admin\ElementBlock\Location_Weather_Shortcode_Widget::render()
S
54 3 20
SPLWT_Options::__construct()
S
54 3 18
Location_Weather::splw_ajax_location_weather()
S
61 4 10
splwt_reset_ajax()
S
63 4 9
ShapedPlugin\Weather\Frontend\Shortcode::splw_get_transient()
S
62 3 12
ShapedPlugin\Weather\Frontend\Shortcode::parse_xml()
S
61 3 12
ShapedPlugin\Weather\Frontend\Shortcode::splw_set_transient()
S
62 3 11
ShapedPlugin\Weather\Admin\Gutenberg_Block\Gutenberg_Block_Init::location_weather_post_list()
S
55 2 21
ShapedPlugin\Weather\Admin\LW_Widget::shortcodes_list()
S
55 2 21
Location_Weather::register_all_scripts()
S
55 2 18
sp_lw_delete_plugin_data()
S
58 2 16
ShapedPlugin\Weather\Admin\ElementBlock\Location_Weather_Shortcode_Widget::sptp_post_list()
S
58 2 16
ShapedPlugin\Weather\Admin\Gutenberg_Block\Gutenberg_Block_Init::sp_location_weather_render_shortcode()
S
62 3 10
ShapedPlugin\Weather\Admin\LW_Widget::widget()
S
64 3 9
SPLWT_Abstract::__construct()
S
71 3 5
ShapedPlugin\Weather\Frontend\Scripts::get_page_data()
S
59 2 15
SPLWT_Options::get_default()
S
71 3 5
SPLWT_Metabox::get_default()
S
71 3 5
SPLWT_Field_notice::render()
S
72 3 4
ShapedPlugin\Weather\Admin\sp_location_weather_widget_content::form()
S
52 1 30
ShapedPlugin\Weather\Frontend\Aid\Location::__construct()
S
74 3 4
SPLW::maybe_include_field()
S
71 3 5
SPLWT_Field_code_editor::render()
S
58 2 14
SPLWT_Options::ajax_save()
S
61 2 13
ShapedPlugin\Weather\Admin\Scripts::lw_styles()
S
63 2 11
ShapedPlugin\Weather\Frontend\Scripts::lw_styles()
S
62 2 11
ShapedPlugin\Weather\Admin\ElementBlock\Location_Weather_Shortcode_Widget::register_controls()
S
56 1 20
ShapedPlugin\Weather\Admin\Splw_Help::help_page()
S
59 1 17
SPLWT_Field_text::render()
S
67 2 6
ShapedPlugin\Weather\Frontend::minify_output()
S
66 2 8
ShapedPlugin\Weather\Admin\Location_Weather_Shortcode_Block::instance()
S
72 2 6
ShapedPlugin\Weather\Admin::add_lw_shortcode_form()
S
66 2 9
SPLWT_Field_sortable::enqueue()
S
74 2 5
ShapedPlugin\Weather\Admin\Admin_Notices::get_cached_offers_data()
S
64 2 9
SPLWT_Field_select::enqueue()
S
74 2 5
ShapedPlugin\Weather\Frontend\Aid\Unit::getFormatted()
S
69 2 7
Location_Weather::init()
S
69 2 7
splwt_validate_email()
S
72 2 5
ShapedPlugin\Weather\Frontend\Aid\Sun::__construct()
S
69 2 7
ShapedPlugin\Weather\Frontend\Aid\City::timezoneOffsetInSecondsToHours()
S
64 2 8
ShapedPlugin\Weather\Frontend\Aid\Unit::__construct()
S
69 2 6
SPLW::add_custom_css()
S
72 2 5
splwt_customize_validate_required()
S
70 2 6
ShapedPlugin\Weather\Frontend\Shortcode::get_visibility()
S
64 2 9
Location_Weather::splw_delete_transient()
S
67 2 8
ShapedPlugin\Weather\Admin\Splw_Help::getInstance()
S
71 2 6
SPLWT_Field_color::render()
S
67 2 6
ShapedPlugin\Weather\Frontend\Shortcode::get_pressure()
S
64 2 9
SPLWT_Field_spinner::enqueue()
S
74 2 5
splwt_validate_numeric()
S
73 2 5
SPLWT_Field_subheading::render()
S
77 2 3
splwt_timeout()
S
78 2 3
splwt_validate_url()
S
72 2 5
Location_Weather::add_plugin_action_links_location()
S
63 2 10
splwt_customize_validate_email()
S
70 2 6
ShapedPlugin\Weather\Frontend\Shortcode::build_url()
S
68 2 6
splwt_validate_required()
S
73 2 5
SPLWT_Metabox::add_meta_box()
S
70 2 5
splwt_customize_validate_url()
S
70 2 6
Location_Weather::sp_splw_polylang()
S
68 2 8
SPLW::add_admin_body_class()
S
70 2 6
splwt_customize_validate_numeric()
S
70 2 6
SPLWT_Fields::field_before()
S
76 2 3
SPLWT_Field_spinner::render()
S
58 1 14
SPLW::init()
S
60 1 13
ShapedPlugin\Weather\Admin\Gutenberg_Block\Gutenberg_Block_Init::location_weather_block_editor_assets()
S
64 1 11
ShapedPlugin\Weather\Admin\Updater::do_updates()
S
82 1 3
SPLWT_Field_notice::__construct()
S
78 1 3
SPLWT_Field_color_group::__construct()
S
78 1 3
ShapedPlugin\Weather\Admin\Preview\LW_Preview::__construct()
S
82 1 3
ShapedPlugin\Weather\Frontend\Aid\Wind::__construct()
S
77 1 4
SPLWT_Field_border::__construct()
S
78 1 3
ShapedPlugin\Weather\Admin\ElementBlock\Location_Weather_Shortcode_Widget::get_icon()
S
82 1 3
SPLWT_Field_spinner::__construct()
S
78 1 3
SPLW::createOptions()
S
78 1 3
ShapedPlugin\Weather\Frontend\Aid\Temperature::getUnit()
S
81 1 3
SPLWT_Field_radio::__construct()
S
78 1 3
ShapedPlugin\Weather\Frontend\Scripts::lw_scripts()
S
81 1 3
ShapedPlugin\Weather\Admin\Updater::__construct()
S
79 1 3
ShapedPlugin\Weather\Admin\sp_location_weather_widget_content::__construct()
S
66 1 9
ShapedPlugin\Weather\Admin\Admin_Notices::__construct()
S
72 1 5
ShapedPlugin\Weather\Frontend\Aid\Weather::__construct()
S
73 1 5
ShapedPlugin\Weather\Frontend\Aid\Unit::jsonSerialize()
S
67 1 8
ShapedPlugin\Weather\Admin\Post_Type::__construct()
S
79 1 3
ShapedPlugin\Weather\Frontend\Shortcode::__construct()
S
79 1 3
ShapedPlugin\Weather\Admin\Location_Weather_Shortcode_Block::splw_block_enqueue_style()
S
77 1 4
ShapedPlugin\Weather\Admin\sp_location_weather_widget_content::update()
S
68 1 7
ShapedPlugin\Weather\Frontend::__construct()
S
77 1 4
ShapedPlugin\Weather\Admin\Location_Weather_Shortcode_Block::splw_element_block_icon()
S
78 1 3
ShapedPlugin\Weather\Admin\ElementBlock\Location_Weather_Shortcode_Widget::get_categories()
S
81 1 3
SPLW::include_plugin_url()
S
77 1 3
ShapedPlugin\Weather\Admin::init_filters_actions()
S
71 1 5
SPLWT_Field_color::__construct()
S
78 1 3
SPLWT_Field_subheading::__construct()
S
78 1 3
SPLWT_Field_custom_import::__construct()
S
78 1 3
SPLWT_Field_button_set::__construct()
S
78 1 3
SPLWT_Abstract::collect_output_css_and_typography()
S
81 1 3
SPLWT_Field_button_clean::__construct()
S
78 1 3
ShapedPlugin\Weather\Admin\Location_Weather_Shortcode_Block::on_plugins_loaded()
S
79 1 3
ShapedPlugin\Weather\Admin\Admin_Notices::render_all_admin_notices()
S
78 1 4
SPLWT_Field_checkbox::__construct()
S
78 1 3
ShapedPlugin\Weather\Frontend\Scripts::__construct()
S
82 1 3
splwt_wp_editor_api()
S
76 1 4
ShapedPlugin\Weather\Admin\Splw_Help::__construct()
S
75 1 4
ShapedPlugin\Weather\Frontend\Aid\Temperature::__toString()
S
81 1 3
SPLWT_Metabox::instance()
S
79 1 3
SPLWT_Field_preview::__construct()
S
78 1 3
SPLW::createSection()
S
75 1 4
ShapedPlugin\Weather\Admin\Scripts::scripts_handler()
S
82 1 3
ShapedPlugin\Weather\Admin\Location_Weather_Shortcode_Block::splw_block_enqueue_scripts()
S
77 1 4
ShapedPlugin\Weather\Admin\ElementBlock\Location_Weather_Shortcode_Widget::get_name()
S
82 1 3
ShapedPlugin\Weather\Admin\LW_Widget::update()
S
73 1 5
SPLW::add_admin_footer_text()
S
76 1 4
ShapedPlugin\Weather\Frontend\Aid\Temperature::getDescription()
S
81 1 3
ShapedPlugin\Weather\Admin::add_lw_shortcode_column()
S
67 1 7
ShapedPlugin\Weather\Admin\Scripts::__construct()
S
79 1 3
SPLWT_Field_custom_import::render()
S
67 1 8
ShapedPlugin\Weather\Admin\Splw_Help::install_plugin_link()
S
78 1 3
Location_Weather::splw_widget()
S
75 1 4
ShapedPlugin\Weather\Admin\Location_Weather_Shortcode_Block::__construct()
S
70 1 6
sp_location_weather()
S
79 1 3
SPLW::footer_version_text()
S
75 1 4
SPLWT_Field_switcher::__construct()
S
78 1 3
SPLW::is_active_plugin()
S
77 1 3
ShapedPlugin\Weather\Frontend\Aid\Unit::__toString()
S
81 1 3
SPLWT_Field_spacing::__construct()
S
78 1 3
ShapedPlugin\Weather\Admin\Splwi18n::load_text_domain()
S
69 1 7
SPLWT_Field_code_editor::__construct()
S
78 1 3
SPLWT_Fields::__construct()
S
69 1 7
SPLW::textdomain()
S
76 1 4
SPLWT_Field_preview::render()
S
82 1 3
SPLW::includes()
S
65 1 10
ShapedPlugin\Weather\Admin\Splw_Help::activate_plugin_link()
S
77 1 3
SPLWT_Options::instance()
S
79 1 3
ShapedPlugin\Weather\Admin\Preview\LW_Preview::preview_action()
S
79 1 3
ShapedPlugin\Weather\Frontend\Aid\Weather::getIconUrl()
S
79 1 3
ShapedPlugin\Weather\Frontend\Aid\Unit::getDescription()
S
82 1 3
ShapedPlugin\Weather\Frontend\Aid\Temperature::__construct()
S
64 1 10
SPLWT_Field_box_shadow::__construct()
S
78 1 3
ShapedPlugin\Weather\Admin\Location_Weather_Shortcode_Block::init()
S
79 1 3
SPLW::createMetabox()
S
78 1 3
ShapedPlugin\Weather\Frontend\Scripts::scripts_handler()
S
79 1 3
ShapedPlugin\Weather\Admin::admin_publish_update_notice()
S
71 1 5
ShapedPlugin\Weather\Admin\Location_Weather_Shortcode_Block::init_widgets()
S
79 1 3
ShapedPlugin\Weather\Frontend\Aid\Temperature::getValue()
S
81 1 3
splwt_sanitize_replace_a_to_b()
S
79 1 3
lw_sanitize_text()
S
76 1 4
splwt_sanitize_title()
S
81 1 3
location_weather()
S
82 1 3
ShapedPlugin\Weather\Admin\Splw_Help::is_plugin_active()
S
79 1 3
ShapedPlugin\Weather\Frontend\Aid\Weather::setIconUrlTemplate()
S
80 1 3
SPLWT_Field_text::__construct()
S
78 1 3
ShapedPlugin\Weather\Admin\LW_Widget::__construct()
S
66 1 9
ShapedPlugin\Weather\Admin\ElementBlock\Location_Weather_Shortcode_Widget::get_title()
S
79 1 3
Location_Weather::define_constants()
S
73 1 7
ShapedPlugin\Weather\Frontend\Aid\Unit::getValue()
S
82 1 3
ShapedPlugin\Weather\Frontend\Aid\Weather::__toString()
S
82 1 3
SPLWT_Field_select::__construct()
S
78 1 3
SPLW::sanitize_dirname()
S
78 1 3
SPLWT_Field_typography::__construct()
S
78 1 3
location_weather_dashboard_capability()
S
80 1 3
SPLWT_Field_sortable::__construct()
S
78 1 3
SPLWT_Field_image_select::__construct()
S
78 1 3
ShapedPlugin\Weather\Admin::__construct()
S
66 1 9
SPLWT_Field_tabbed::__construct()
S
78 1 3
ShapedPlugin\Weather\Frontend\Aid\Unit::getPrecision()
S
82 1 3
ShapedPlugin\Weather\Frontend\Aid\Temperature::getFormatted()
S
81 1 3
ShapedPlugin\Weather\Admin\Splw_Help::is_plugin_installed()
S
78 1 3