WC_Brands D

Total Complexity 142
Dependencies 6
Dependents 0
Total lines 1,160
Lines of code 671
Logical lines of code 311
Comment lines 330
Methods 41
Properties 1

Methods 41

Method Rating Maintainability Complexity Lines of code
output_product_brand()
A
44 12 45
output_product_brand_list()
A
41 11 59
init_taxonomy()
A
41 6 54
output_product_brand_thumbnails()
A
44 6 49
post_type_link()
S
50 7 28
rest_api_add_brands_to_product()
S
55 7 18
output_product_brand_thumbnails_description()
S
45 5 47
configure_product_brand_block()
S
58 6 15
hook_product_brand_block()
S
60 6 12
add_structured_data()
S
57 5 17
rest_api_prepare_brands_to_product()
S
57 5 15
recount_after_stock_change()
S
60 5 13
register_hooks()
S
46 3 36
template_loader()
S
56 4 19
wc_brands_on_block_template_register()
S
55 3 20
brand_description()
S
56 3 19
woocommerce_brands_update_layered_nav_link()
S
55 3 18
update_product_query_tax_query()
S
59 3 14
duplicate_add_product_brand_terms()
S
61 3 13
get_brand_products_query_args()
S
60 3 12
show_brand()
S
60 3 11
duplicate_store_temporary_brands()
S
62 3 11
reset_layered_nav_counts_on_status_change()
S
73 3 5
template_already_has_brand_block()
S
70 3 6
rest_api_maybe_set_brands()
S
69 3 6
output_brand_products()
S
61 2 11
rest_api_register_routes()
S
63 2 11
body_class()
S
73 2 5
rest_api_filter_products_by_brand()
S
64 2 10
add_brand_products_shortcode_atts()
S
74 2 4
invalidate_wc_layered_nav_counts_cache()
S
75 1 4
remove_terms_with_empty_products()
S
69 1 8
add_body_class()
S
74 1 5
rest_api_product_collection_params()
S
65 1 9
add_brands_to_terms()
S
77 1 4
styles()
S
74 1 4
get_brand_name_first_character()
S
74 1 4
recount_all_brands()
S
64 1 10
register_shortcodes()
S
68 1 7
init_widgets()
S
67 1 8
__construct()
S
72 1 5