Code Analysis: Hide Category by User Role for WooCommerce 2.2

Function Rating Maintainability Complexity Lines of code
tswchc_customize_cross_sell_products_block()
B
32 12 143
tswchc_redirect_product_pages()
B
44 18 43
tswchc_generate_plugin_options_json()
A
40 13 57
tswchc_get_hide_rules()
A
47 14 37
tswchc_get_settings_tab()
A
35 8 117
tswchc_get_hide_by_role_tab()
A
34 6 124
tswchc_import_plugin_options_json()
A
44 11 44
tswchc_get_hide_by_category_tab()
A
35 6 112
tswchc_admin_interface_render()
A
34 2 151
tswchc_customize_newest_products_block()
A
40 7 66
tswchc_reset_plugin_options()
A
47 9 35
tswchc_get_subcategory_terms()
A
53 9 21
tswchc_get_rules()
S
60 7 13
tswchc_dequeue_theme_styles_for_plugin_options_page()
S
61 6 11
tswchc_is_checked()
S
63 6 10
tswchc_css_rules_worker()
S
52 4 25
tswchc_has_hidden_parent_category()
S
61 4 13
tswchc_custom_cross_sell_ids()
S
62 4 11
tswchc_exclude_related_products()
S
62 4 11
tswchc_custom_upsell_ids()
S
62 4 11
tswchc_enqueue_css_js()
S
48 2 31
tswchc_hide_products_category()
S
60 3 13
filter_wc_check_cart_items()
S
59 3 13
tswchc_get_woo_category_childs()
S
54 2 22
tswchc_get_filter_template()
S
60 2 16
tswchc_activate_plugin()
S
71 3 5
woocommerce_pre_get_posts()
S
73 3 5
tswchc_replace_main_content()
S
61 2 13
tswchc_upgrader()
S
68 2 7
tswchc_register_settings()
S
60 1 15
filter_wc_add_to_cart_validation()
S
64 2 9
tswchc_general_admin_notice()
S
66 2 9
tswchc_get_categories_hierarchy()
S
69 2 7
tswchc_dump()
S
69 2 6
tswchc_get_woo_categories()
S
63 1 11
tswchc_load_textdomain()
S
78 1 3
tswchc_get_available_roles()
S
70 1 6
tswchc_validater_and_sanitizer()
S
76 1 4
tswchc_add_menu_links()
S
78 1 3
tswchc_enqueue_css_js_front()
S
78 1 3
tswchc_get_settings()
S
67 1 8