Code Analysis: WP Store Locator 2.2.241

Function Rating Maintainability Complexity Lines of code
wpsl_check_upgrade()
D
11
90 286
WPSL_Settings::sanitize_settings()
D
21
56 177
WPSL_Frontend::show_store_address()
D
28
37 112
WPSL_Frontend::add_frontend_scripts()
C
27
23 139
WPSL_Settings::get_api_option_list()
C
17
9 335
WPSL_Metaboxes::save_post()
C
37 26 63
WPSL_Shortcode_Generator::show_thickbox_iframe_content()
C
24
11 288
WPSL_Frontend::get_store_meta_data()
C
36 24 71
WPSL_Frontend::show_store_map()
B
33 21 94
WPSL_Frontend::check_sl_shortcode_atts()
B
45 23 35
WPSL_Frontend::check_map_shortcode_atts()
B
45 20 38
WPSL_Metaboxes::opening_hours()
B
36 15 91
EDD_SL_Plugin_Updater::show_update_notification()
B
36 15 85
WPSL_Frontend::get_css_classes()
A
50 17 25
wpsl_get_gmap_api_params()
A
47 16 32
EDD_SL_Plugin_Updater::get_version_from_remote()
A
43 15 46
EDD_SL_Plugin_Updater::plugins_api_filter()
A
45 15 43
WPSL_Metaboxes::create_meta_fields()
A
43 13 46
wpsl_single_location_export()
A
41 12 54
WPSL_Templates::get_template_details()
A
49 12 27
WPSL_Frontend::find_nearby_locations()
A
41 10 55
WPSL_Frontend::create_category_filter()
A
41 9 55
WPSL_Frontend::get_custom_css()
A
50 11 24
wpsl_create_underscore_templates()
A
36 6 93
WPSL_Admin::setting_warnings()
A
49 10 25
WPSL_Frontend::create_opening_hours_tabel()
A
48 9 33
WPSL_Exit_Survey::is_live_site()
A
43 7 54
EDD_SL_Plugin_Updater::show_changelog()
A
52 9 22
WPSL_Frontend::create_transient_name()
A
53 9 22
wpsl_uninstall()
A
45 8 37
EDD_SL_Plugin_Updater::check_update()
A
54 9 20
wpsl_cpt_conversion()
A
47 8 32
WPSL_Post_Types::sort_columns()
A
51 8 31
WPSL_Borlabs_Cookie::update_content_blocker()
A
46 7 40
wpsl_more_info_template()
A
45 7 40
WPSL_Geocode::get_latlng()
A
52 8 21
WPSL_Settings::validate_server_key()
A
47 7 34
WPSL_Frontend::store_search()
A
56 8 17
WPSL_Geocode::geocode_location()
A
49 7 31
WPSL_Frontend::show_opening_hours()
S
51 7 27
WPSL_Frontend::set_selected_category()
S
54 7 22
WPSL_Metaboxes::format_opening_hours()
S
53 7 21
WPSL_License_Manager::license_actions()
S
56 7 19
WPSL_Settings::maybe_flush_rewrite_and_transient()
S
57 7 17
WPSL_Settings::get_available_markers()
S
58 7 14
WPSL_Frontend::cpt_template()
S
59 7 13
WPSL_Geocode::validate_latlng()
S
60 7 13
WPSL_Settings::create_dropdown()
S
39 3 73
wpsl_get_location_fields()
S
53 6 23
WPSL_Settings::show_zoom_levels()
S
52 6 23
wpsl_install()
S
54 6 22
wpsl_get_default_settings()
S
35 1 97
WPSL_Exit_Survey::deactivate()
S
53 6 21
WPSL_Admin::admin_scripts()
S
53 6 19
wpsl_store_header_template()
S
50 5 31
wpsl_cpt_dialog_html()
S
44 1 89
WPSL_Post_Types::register_post_types()
S
44 4 44
WPSL_i18n::check_multilingual_code()
S
60 6 13
WPSL_License_Manager::activate_license()
S
50 5 28
WPSL_Metaboxes::check_missing_meta_data()
S
60 6 12
WPSL_Metaboxes::opening_hours_dropdown()
S
51 5 24
WPSL_Notices::show()
S
48 4 38
WPSL_Settings::show_marker_options()
S
53 5 23
WPSL_Frontend::get_map_controls()
S
54 5 22
wpsl_address_format_placeholders()
S
54 5 21
wpsl_add_roles()
S
48 4 36
WPSL_Metaboxes::textarea_input()
S
55 5 19
WPSL_Metaboxes::store_update_messages()
S
47 4 33
wpsl_remove_caps_and_roles()
S
57 5 17
wpsl_add_caps()
S
58 5 16
WPSL_Metaboxes::validate_hour()
S
57 5 16
WPSL_Post_Types::custom_columns()
S
58 5 16
WPSL_Metaboxes::get_prefilled_field_data()
S
58 5 15
WPSL_Settings::ajax_validate_server_key()
S
66 6 8
WPSL_i18n::get_translation()
S
59 5 14
EDD_SL_Plugin_Updater::get_cached_version_info()
S
59 5 14
WPSL_Metaboxes::find_hour_format()
S
59 5 13
WPSL_Geocode::check_geocode_error_msg()
S
58 5 13
WPSL_Settings::show_cluster_options()
S
50 4 28
WPSL_Admin::js_settings()
S
53 4 22
WPSL_Post_Types::register_taxonomies()
S
47 3 36
WPSL_Frontend::get_dropdown_list()
S
54 4 20
WPSL_Metaboxes::dropdown_input()
S
55 4 19
WPSL_Notices::save()
S
56 4 19
WPSL_Admin::admin_js_l10n()
S
47 3 33
WPSL_License_Manager::handle_activation_errors()
S
57 4 17
WPSL_Settings::show_opening_hours_format()
S
56 4 17
wpsl_deregister_other_gmaps()
S
65 5 8
EDD_SL_Plugin_Updater::convert_object_to_array()
S
63 5 10
WP_Store_locator::define_constants()
S
66 5 10
WPSL_Settings::manually_clear_transient()
S
62 5 10
wpsl_cpt_update_state()
S
58 4 14
wpsl_litespeed_optimize_js_excludes()
S
58 4 14
wpsl_remaining_cpt_count()
S
58 4 14
WPSL_Settings::settings_error()
S
59 4 14
WPSL_Templates::get_default_template()
S
61 4 13
EDD_SL_Plugin_Updater::api_request()
S
61 4 13
WPSL_Metaboxes::meta_box_fields()
S
43 1 58
WPSL_i18n::maybe_get_wpml_id()
S
60 4 12
WP_Store_locator::includes()
S
61 4 12
WPSL_Geocode::filter_country_name()
S
60 4 12
wpsl_wp_rocket_optimize_js_excludes()
S
60 4 12
WPSL_Templates::get_template_list()
S
62 4 11
EDD_SL_Plugin_Updater::request_recently_failed()
S
63 4 11
WPSL_Geocode::create_geocode_address()
S
62 4 11
WPSL_Settings::show_template_options()
S
61 4 11
wpsl_get_term_ids()
S
62 4 11
WPSL_Admin::create_admin_menu()
S
53 3 24
WPSL_Settings::set_delete_transient_option()
S
55 3 21
WPSL_Frontend::frontend_meta_fields()
S
46 1 49
EDD_SL_Plugin_Updater::get_repo_api_data()
S
57 3 19
WPSL_Geocode::check_geocode_data()
S
57 3 18
WPSL_License_Manager::deactivate_license()
S
56 3 18
WPSL_Settings::create_marker_html()
S
56 3 17
EDD_SL_Plugin_Updater::__construct()
S
57 3 15
WPSL_Borlabs_Cookie::__construct()
S
64 4 9
WPSL_Frontend::check_store_filter()
S
66 4 8
WPSL_Metaboxes::set_required_class()
S
64 4 10
WPSL_Frontend::add_frontend_styles()
S
65 4 8
WPSL_Notices::create_notice_content()
S
63 4 9
WPSL_Admin::disable_setting_notices()
S
62 4 10
WPSL_Admin::maybe_delete_autoload_transient()
S
69 4 6
WPSL_Admin::check_icon_font_usage()
S
66 4 7
wpsl_autoptimize_optimize_js_excludes()
S
65 4 8
wpsl_bool_check()
S
62 4 10
wpsl_convert_cpt_count()
S
57 3 15
WPSL_Admin::includes()
S
60 3 13
WPSL_Frontend::get_dropdown_defaults()
S
61 3 12
WPSL_Admin::maybe_show_pointer()
S
60 3 12
WPSL_Frontend::get_default_filter_value()
S
61 3 11
WPSL_Settings::get_map_style()
S
63 3 11
wpsl_get_address_latlng()
S
61 3 11
wpsl_check_latlng_transient()
S
62 3 11
WPSL_Admin::welcome_pointer_script()
S
53 1 33
wpsl_default_opening_hours()
S
56 2 18
WPSL_License_Manager::call_license_api()
S
57 2 17
WPSL_License_Manager::auto_updater()
S
58 2 16
wpsl_is_multi_array()
S
71 3 6
WPSL_Exit_Survey::enqueue_scripts()
S
65 3 7
WPSL_Geocode::clickable_error_links()
S
63 3 9
WPSL_Frontend::shortcode_atts_boolean()
S
67 3 8
WPSL_Frontend::use_category_filter()
S
66 3 8
WPSL_Admin::admin_footer_text()
S
67 3 7
WPSL_Metaboxes::is_required_field()
S
70 3 6
WPSL_Exit_Survey::__construct()
S
64 3 9
WPSL_Metaboxes::add_meta_boxes()
S
62 3 9
WPSL_Settings::set_flush_rewrite_option()
S
63 3 10
WPSL_Admin::load_template()
S
65 3 10
WPSL_Shortcode_Generator::add_wpsl_media_button()
S
65 3 7
WPSL_Geocode::format_latlng()
S
66 3 8
WPSL_Templates::get_template()
S
67 3 8
wpsl_plugin_update_message()
S
69 3 6
EDD_SL_Plugin_Updater::http_request_args()
S
69 3 6
wpsl_get_ajax_url()
S
65 3 9
wpsl_valid_zoom_level()
S
68 3 7
WPSL_Geocode::save_store_location()
S
67 3 7
WPSL_i18n::qtrans_exists()
S
70 3 6
WPSL_Admin::delete_autoload_transient()
S
63 3 10
WPSL_Frontend::__construct()
S
58 2 15
WPSL_Frontend::not_always_closed()
S
69 3 7
wpsl_get_max_zoom_levels()
S
62 2 13
WPSL_Metaboxes::text_input()
S
60 2 13
wpsl_labels()
S
53 1 27
EDD_SL_Plugin_Updater::set_version_info_cache()
S
61 2 11
WPSL_Frontend::get_marker_props()
S
63 2 11
WPSL_Borlabs_Cookie::enable()
S
54 1 24
WPSL_Settings::get_default_cluster_option()
S
56 1 21
WPSL_Frontend::show_store_locator()
S
55 1 20
wpsl_get_post_caps()
S
58 1 18
WPSL_Admin::__construct()
S
57 1 16
WPSL_Admin::add_action_links()
S
66 2 7
WPSL_Post_Types::change_default_title()
S
68 2 7
WPSL_Metaboxes::get_store_meta()
S
65 2 9
wpsl_convert_cpt()
S
69 2 7
wpsl_set_default_settings()
S
71 2 6
WPSL_License_Manager::get_license_option()
S
70 2 6
WPSL_i18n::wpml_exists()
S
71 2 6
wpsl_get_templates()
S
59 1 15
wpsl_get_settings()
S
68 2 8
WPSL_License_Manager::includes()
S
74 2 5
WPSL_Admin::get_default_lat_lng()
S
68 2 8
WPSL_Admin::show_warning()
S
72 2 5
WPSL_Borlabs_Cookie::disable()
S
74 2 5
WPSL_Frontend::get_directions_travel_mode()
S
65 2 9
WPSL_Frontend::check_allowed_filter_value()
S
64 2 9
WPSL_Frontend::get_opening_hours()
S
66 2 9
WPSL_Templates::find_template_path()
S
65 2 9
WPSL_Post_Types::maybe_show_in_rest()
S
74 2 4
wpsl_valid_map_type()
S
69 2 7
WPSL_Admin::add_plugin_meta_row()
S
63 2 10
WPSL_Borlabs_Cookie::maybe_enable_bct()
S
71 2 6
WPSL_Frontend::get_infobox_settings()
S
60 1 13
WPSL_License_Manager::add_license_field()
S
62 1 12
wpsl_get_weekdays()
S
61 1 12
WPSL_License_Manager::__construct()
S
61 1 11
wpsl_get_address_formats()
S
62 1 11
wpsl_call_geocode_api()
S
72 1 5
WP_Store_locator::install()
S
76 1 4
WPSL_Metaboxes::show_store_closed()
S
76 1 3
WPSL_Post_Types::sortable_columns()
S
65 1 9
WPSL_Post_Types::edit_columns()
S
67 1 7
WPSL_Settings::__construct()
S
68 1 7
EDD_SL_Plugin_Updater::get_active_plugins()
S
72 1 5
WPSL_Frontend::create_retina_filename()
S
72 1 5
EDD_SL_Plugin_Updater::init()
S
69 1 6
WPSL_Settings::register_settings()
S
79 1 3
WPSL_Frontend::borlabs_cookie()
S
80 1 3
WP_Store_locator::__construct()
S
64 1 10
WPSL_Metaboxes::checkbox_input()
S
63 1 10
WPSL_Admin::ajax_validate_server_key()
S
82 1 3
wpsl_sgo_optimize_js_excludes()
S
71 1 6
WPSL_Exit_Survey::load_survey()
S
82 1 3
EDD_SL_Plugin_Updater::log_failed_request()
S
79 1 3
WPSL_Borlabs_Cookie::update_content_blocker_backwards_compatibility()
S
80 1 3
WPSL_Shortcode_Generator::__construct()
S
75 1 4
WPSL_Frontend::get_map_tab_anchor()
S
75 1 4
WPSL_Frontend::geolocation_errors()
S
65 1 9
wpsl_convert_cpt_js()
S
63 1 10
WPSL_Post_Types::__construct()
S
63 1 10
WPSL_Metaboxes::map_preview()
S
65 1 10
EDD_SL_Plugin_Updater::verify_ssl()
S
78 1 3
wpsl_sanitize_multi_array()
S
81 1 3
WPSL_Notices::__construct()
S
75 1 4
WPSL_Frontend::get_store_thumb()
S
66 1 8
WPSL_i18n::load_plugin_textdomain()
S
68 1 6
WPSL_Metaboxes::set_post_pending()
S
71 1 5
WP_Store_locator::plugin_settings()
S
73 1 5
WPSL_Metaboxes::hidden_input()
S
69 1 7
wpsl_install_data()
S
66 1 9
wpsl_random_chars()
S
75 1 4
WPSL_Frontend::get_store_thumb_size()
S
75 1 4
wpsl_get_default_setting()
S
77 1 4
WPSL_Metaboxes::meta_field_nav()
S
70 1 5
WPSL_Geocode::geocode_failed()
S
73 1 5
WPSL_Metaboxes::export_data()
S
64 1 9
WPSL_Metaboxes::remove_message_arg()
S
79 1 3
WPSL_Metaboxes::__construct()
S
73 1 5
EDD_SL_Plugin_Updater::get_cache_key()
S
74 1 4
wpsl_get_map_types()
S
65 1 9
wpsl_get_distance_unit()
S
75 1 4
WPSL_Metaboxes::wp_editor_input()
S
63 1 10
WPSL_License_Manager::set_license_notice()
S
78 1 3
WPSL_Admin::init()
S
71 1 6
WPSL_Frontend::includes()
S
80 1 3
WPSL_i18n::__construct()
S
79 1 3