URCR_Frontend D

Total Complexity 322
Dependencies 1
Dependents 0
Total lines 1,189
Lines of code 828
Logical lines of code 530
Comment lines 165
Methods 28
Properties 0

Methods 28

Method Rating Maintainability Complexity Lines of code
urcr_woocommerce_product_query()
D
31 38 95
basic_restrictions_templates()
D
35 35 72
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
compareTaxonomy()
S
57 7 16
urcr_restrict_contents()
S
57 6 16
ur_user_can_view_woocommerce_product()
S
58 5 16
ur_user_can_purchase_woocommerce_product()
S
58 5 16
__construct()
S
58 2 15
is_wc_product_visible()
S
66 3 9
is_wc_purchasable()
S
72 2 6
urcr_elementor_after_section_render()
S
69 2 7
urcr_elementor_before_section_render()
S
71 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