Woo_Variation_Swatches_Product_Page D

Total Complexity 168
Dependencies 2
Dependents 1
Total lines 956
Lines of code 641
Logical lines of code 372
Comment lines 52
Methods 48
Properties 1

Methods 48

Method Rating Maintainability Complexity Lines of code
dropdown()
D
30 33 98
get_available_variation_images()
A
49 13 27
add_inline_style()
A
49 10 27
get_swatch_data()
A
43 7 46
add_variation_data()
S
59 8 12
enqueue_scripts()
S
51 5 24
radio_attribute()
S
46 4 35
get_variation_data_by_attribute_name()
S
57 5 16
cache_ajax_response()
S
57 5 16
stop_prevent_ajax_caching()
S
59 5 14
get_image_attribute()
S
60 5 11
get_available_variation_image()
S
53 3 22
item_start()
S
53 3 20
disable_out_of_stock_item()
S
69 4 6
variable_children_args()
S
65 4 9
get_all_variations()
S
62 3 12
add_to_cart_variation_params()
S
62 3 11
get_variation_gallery_img_src()
S
55 2 21
get_variation_img_src()
S
57 2 18
item_end()
S
66 3 8
js_options()
S
58 2 14
get_cached_variation_attributes()
S
63 2 10
is_archive()
S
78 2 3
instance()
S
72 2 6
image_attribute()
S
64 2 8
color_attribute()
S
65 2 8
implode_css_property_value()
S
67 2 7
get_image_attribute_id()
S
67 2 7
get_item_css_classes()
S
67 2 8
get_item_tooltip_attribute()
S
63 2 10
get_variation_image_id()
S
74 2 4
get_variation_by_attribute_name_value()
S
67 2 8
button_attribute()
S
67 2 7
before_variations_form()
S
60 1 13
hooks()
S
60 1 12
inline_style_declaration()
S
62 1 11
__construct()
S
71 1 6
wrapper_end()
S
82 1 3
wrapper_start()
S
73 1 4
wrapper_html_attribute()
S
62 1 10
inline_svg()
S
79 1 3
inline_svg_encode()
S
71 1 5
get_variation_threshold_max()
S
78 1 3
ajax_variation_threshold()
S
82 1 3
after_variations_form()
S
82 1 3
init()
S
91 1 2
includes()
S
91 1 2
wrapper_class()
S
66 1 8