PWS_Map_Service B

Total Complexity 81
Dependencies 3
Dependents 0
Total lines 566
Lines of code 318
Logical lines of code 182
Comment lines 119
Methods 27
Properties 5

Methods 27

Method Rating Maintainability Complexity Lines of code
enqueue_scripts()
A
54 13 16
validate_map_location_field()
A
52 10 22
calculate_user_distance()
A
47 7 36
calculate_real_distance()
S
44 6 45
init_hooks()
S
45 6 42
calculate_direct_distance()
S
48 4 30
is_iran_location()
S
59 5 14
save_map_location_meta()
S
61 3 12
is_admin_tools_page()
S
77 3 3
register_rest_api()
S
60 1 15
disable_map_location_field_get_value()
S
70 2 6
store_default_location()
S
70 2 6
user_default_location()
S
70 2 6
store_marker_image()
S
71 2 6
user_marker_color()
S
72 2 6
user_marker_image()
S
71 2 6
__construct()
S
61 1 12
do_map_shortcode()
S
80 1 3
add_map_location_field_to_checkout_form()
S
67 1 8
add_map_shortcode()
S
79 1 3
shortcode_callback()
S
82 1 3
get_provider()
S
82 1 3
set_provider()
S
81 1 3
get_api_key()
S
82 1 3
set_api_key()
S
81 1 3
get_map_params()
S
82 1 3
set_map_params()
S
80 1 3