PWS_Map_Service A

Total Complexity 69
Dependencies 4
Dependents 0
Total lines 576
Lines of code 310
Logical lines of code 175
Comment lines 142
Methods 28
Properties 5

Methods 28

Method Rating Maintainability Complexity Lines of code
validate_map_location_field()
A
52 10 22
calculate_user_distance()
A
47 7 36
calculate_real_distance()
S
44 6 45
initialize_hooks()
S
46 6 40
calculate_direct_distance()
S
48 4 30
is_iran_location()
S
59 5 14
save_map_location_meta()
S
61 3 12
get_checkout_placement()
S
69 3 6
register_rest_api()
S
60 1 15
__construct()
S
58 1 15
disable_map_location_field_get_value()
S
70 2 6
user_marker_image()
S
71 2 6
enqueue_scripts()
S
64 2 9
store_marker_image()
S
71 2 6
user_marker_color()
S
72 2 6
set_api_key()
S
81 1 3
enabled_shipping_methods()
S
77 1 3
required_location()
S
74 1 4
set_map_params()
S
80 1 3
get_map_params()
S
82 1 3
shortcode_callback()
S
100 1 0
get_api_key()
S
82 1 3
add_map_shortcode()
S
79 1 3
get_provider()
S
82 1 3
is_enable()
S
78 1 3
add_map_location_field_to_checkout_form()
S
67 1 8
do_map_shortcode()
S
80 1 3
set_provider()
S
81 1 3