Code Analysis: Hide Category by User Role for WooCommerce 2.1.0

Function Rating Maintainability Complexity Lines of code
tswchc_redirect_product_pages()
B
43 20 45
tswchc_get_hide_rules()
A
47 14 37
tswchc_get_hide_by_role_tab()
A
35 7 114
tswchc_get_hide_by_category_tab()
A
36 7 106
tswchc_admin_interface_render()
A
38 2 139
tswchc_get_settings_tab()
A
37 3 122
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_generate_plugin_options_json()
S
53 4 21
tswchc_import_plugin_options_json()
S
55 4 20
tswchc_dysplay_custom_message()
S
52 3 30
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
filter_wc_check_cart_items()
S
59 3 13
tswchc_hide_products_category()
S
60 3 13
tswchc_get_woo_category_childs()
S
54 2 22
tswchc_reset_plugin_options()
S
55 2 19
tswchc_get_filter_template()
S
60 2 16
tswchc_activate_plugin()
S
71 3 5
woocommerce_pre_get_posts()
S
73 3 5
tswchc_enqueue_css_js()
S
57 2 15
tswchc_get_categories_hierarchy()
S
69 2 7
tswchc_general_admin_notice()
S
68 2 9
tswchc_upgrader()
S
68 2 7
tswchc_register_settings()
S
60 1 15
filter_wc_add_to_cart_validation()
S
64 2 9
tswchc_dump()
S
69 2 6
tswchc_get_woo_categories()
S
63 1 11
tswchc_get_settings()
S
67 1 8
tswchc_enqueue_css_js_front()
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