Code Analysis: HeadlessWC: Ultimate eCommerce Decoupler 1.1.0

Function Rating Maintainability Complexity Lines of code
headlesswc_handle_cart_request()
B
31 21 104
headlesswc_handle_cart_request()
B
31 21 104
headlesswc_handle_order_request()
A
41 13 50
headlesswc_handle_order_request()
A
41 13 50
headlesswc_handle_products_request()
A
36 11 77
headlesswc_handle_products_request()
A
40 11 58
headlesswc_apply_cart_products()
A
56 9 17
headlesswc_apply_cart_products()
A
56 9 17
headlesswc_generate_lqip()
S
47 6 35
headlesswc_generate_lqip()
S
47 6 35
HWC_Variable_Product::get_attributes_data()
S
44 5 49
headlesswc_handle_product_request()
S
40 4 63
HWC_Simple_Product::get_base_data()
S
47 6 33
headlesswc_redirect_after_order_received()
S
57 6 17
headlesswc_handle_product_request()
S
46 4 41
headlesswc_apply_shipping_method()
S
54 5 20
headlesswc_apply_shipping_method()
S
54 5 20
HWC_Simple_Product::get_gallery_images()
S
60 4 13
headlesswc_apply_cupon()
S
67 4 8
headlesswc_apply_cupon()
S
67 4 8
headlesswc_get_all_image_sizes()
S
62 3 12
headlesswc_get_all_image_sizes()
S
62 3 12
headlesswc_get_image_sizes()
S
62 3 12
headlesswc_check_woocommerce_active()
S
62 3 11
HWC_Simple_Product::get_sale_price()
S
63 3 11
HWC_Simple_Product::get_detailed_data()
S
53 2 22
headlesswc_map_customer_data()
S
57 2 16
headlesswc_map_customer_data()
S
57 2 16
HWC_Variable_Product::get_variations()
S
61 2 13
HWC_Product::get_product_type()
S
68 2 8
HWC_Simple_Product::get_regular_price()
S
69 2 7
nvl()
S
79 2 3
HWC_Simple_Product::get_meta_data()
S
69 2 7
HWC_Variable_Product::get_attributes()
S
69 2 7
HeadlessWC::__construct()
S
64 1 11
HWC_Variable_Product::get_detailed_data()
S
64 1 10
HWC_Product::__construct()
S
81 1 3
HWC_Simple_Product::__construct()
S
81 1 3
HWC_Variable_Product::get_base_data()
S
65 1 9
HWC_Product::get_base_data()
S
81 1 3
HWC_Product::get_detailed_data()
S
81 1 3