URCR_Frontend D

Total Complexity 329
Dependencies 2
Dependents 0
Total lines 1,204
Lines of code 839
Logical lines of code 537
Comment lines 168
Methods 29
Properties 0

Methods 29

Method Rating Maintainability Complexity Lines of code
urcr_woocommerce_product_query()
D
31 38 95
basic_restrictions_templates()
D
34 37 73
basic_restrictions()
D
36 33 69
restrict_whole_site()
C
36 27 69
wc_advanced_restriction_with_access_rule()
B
42 22 48
advanced_restriction_wc_with_access_rule()
B
40 21 53
advanced_restriction_with_access_rules()
B
43 21 42
ur_basic_wc_product_restriction()
B
41 18 51
check_access_with_access_rules()
B
44 17 39
restrict_blog_page()
A
45 13 41
restrict_wc_product_post()
A
49 11 29
include_run_content_restrictions()
A
50 10 29
restrict_wc_shop_page()
A
51 9 26
run_content_restrictions()
S
54 7 22
urcr_restrict_contents()
S
55 7 17
compareTaxonomy()
S
57 7 16
ur_user_can_view_woocommerce_product()
S
58 5 16
ur_user_can_purchase_woocommerce_product()
S
58 5 16
__construct()
S
55 3 18
disable_elementor_element_cache()
S
69 3 6
is_wc_product_visible()
S
66 3 9
urcr_elementor_before_section_render()
S
71 2 6
urcr_elementor_after_section_render()
S
69 2 7
is_wc_purchasable()
S
72 2 6
message()
S
68 2 6
restrict_products()
S
60 1 14
urcr_restrict_contents_template()
S
65 1 10
products_restriction_message()
S
81 1 3
elementor_restrict()
S
81 1 3