CUAR_PostOwnerAddOn D

Total Complexity 172
Dependencies 5
Dependents 5
Total lines 1,130
Lines of code 643
Logical lines of code 293
Comment lines 286
Methods 43
Properties 8

Methods 43

Method Rating Maintainability Complexity Lines of code
save_post_owners()
A
42 11 53
group_tile_owners()
A
42 8 62
print_owner_link()
A
50 9 31
get_private_storage_directory()
A
50 9 29
get_legacy_owner_storage_directory()
A
51 9 26
protect_single_post_access()
A
50 8 28
get_legacy_owner_file_path()
A
56 8 17
print_owner_fields()
S
51 7 25
get_owners_from_get_data()
S
52 7 25
get_post_displayable_owners()
S
53 7 24
decode_owners()
S
53 7 24
get_legacy_private_file_path()
S
56 7 17
get_private_file_path()
S
57 7 16
get_legacy_private_storage_directory()
S
55 5 22
get_current_content_type()
S
57 5 20
get_owners_from_post_data()
S
58 5 16
get_base_private_storage_directory()
S
61 5 12
get_legacy_base_private_storage_directory()
S
61 5 12
is_post_protected()
S
60 4 13
get_displayable_owners_for_log()
S
57 3 17
encode_owners()
S
59 3 15
is_user_owner_of_post()
S
61 3 13
get_owners_meta_query_component()
S
63 3 11
is_post_type_protected()
S
65 3 9
run_addon()
S
59 2 14
get_post_owner_user_ids()
S
62 2 11
count_grouped_tile_owners()
S
69 2 7
get_selectable_owner_types()
S
67 2 8
get_owner_types()
S
69 2 7
print_owner_fields_readonly()
S
69 1 7
get_owner_submenu_links()
S
78 1 3
__construct()
S
80 1 3
get_post_owners()
S
71 1 5
get_addon_name()
S
79 1 3
is_multiple_selection_enabled()
S
78 1 3
is_valid_owner_type()
S
75 1 4
get_owner_display_name()
S
75 1 4
get_base_private_storage_url()
S
80 1 3
register_query_var()
S
77 1 4
get_owner_meta_query_component()
S
68 1 7
get_meta_query_post_owned_by()
S
67 1 8
ajax()
S
82 1 3
plugin_version_upgrade()
S
91 1 2