Orderable_Products D

Total Complexity 137
Dependencies 2
Dependents 5
Total lines 1,072
Lines of code 613
Logical lines of code 311
Comment lines 293
Methods 27
Properties 0

Methods 27

Method Rating Maintainability Complexity Lines of code
get_products_by_category()
C
30 25 127
maybe_flatten_products_by_category()
A
46 13 36
handle_adding_product_without_side_drawer()
A
44 12 46
get_add_to_cart_button()
A
42 6 58
get_available_attributes()
A
52 8 24
products_404()
S
57 7 17
remove_hidden_categories_from_terms_query()
S
59 7 13
is_product_hidden()
S
57 6 18
get_products()
S
58 6 14
remove_hidden_categories_from_sitemap()
S
56 5 19
get_available_variation_attributes()
S
57 5 17
get_quantity_roller()
S
50 3 40
remove_hidden_products_from_sitemap()
S
55 4 21
get_accordion_data()
S
56 4 18
get_update_cart_item_button()
S
48 2 36
order_categories_by_menu_order()
S
57 3 17
update_product_counter_fragments_for_removed_item()
S
60 3 13
disable_cart_link()
S
69 3 6
update_button_args_to_allow_add_to_cart_without_side_drawer()
S
64 3 10
remove_hidden_categories_from_products_query()
S
61 2 13
add_quantity_roller_class()
S
69 2 7
set_product_visibility()
S
74 2 4
get_add_to_cart_trigger()
S
73 2 4
get_product_counter()
S
61 1 14
run()
S
58 1 14
format_price_range()
S
77 1 3
is_category_hidden()
S
75 1 4