Better_Messages_Functions D

Total Complexity 618
Dependencies 8
Dependents 2
Total lines 3,643
Lines of code 2,618
Logical lines of code 1,399
Comment lines 262
Methods 166
Properties 1

Methods 166

Method Rating Maintainability Complexity Lines of code
new_message()
D
23
43 170
add_hash_arg()
C
35 23 83
get_link()
B
44 19 39
is_thread_super_moderator()
B
42 16 53
delete_message()
A
37 14 72
get_thread_type()
A
45 16 38
is_network_subsite_and_has_license()
A
46 14 35
find_existing_threads()
A
38 10 78
get_group_page()
A
44 12 41
get_private_conversation_id()
A
45 10 43
can_invite()
A
53 11 21
get_unique_conversation_id()
A
43 8 50
get_avatar()
A
43 8 46
get_friends_sorted()
A
49 8 30
get_users_sorted()
A
47 7 36
can_start_conversation()
A
48 7 35
messages_classes()
A
50 7 31
update_message()
S
44 6 45
get_page()
S
50 7 26
hex2rgba()
S
52 7 24
truncate()
S
52 7 24
minify_html()
S
44 5 48
get_member_id()
S
57 7 17
rest_user_item()
S
48 6 32
get_message_ranges()
S
52 6 26
get_client_ip()
S
62 7 11
format_message()
S
55 6 18
get_search_stacks()
S
44 4 48
can_leave()
S
58 6 14
filter_message_content()
S
49 5 28
get_displayed_user_id()
S
61 6 13
get_recipients()
S
51 5 27
add_participant_to_thread()
S
53 5 24
remove_participant_from_thread()
S
53 5 23
get_messages()
S
50 4 35
create_new_conversation()
S
53 5 20
create_conversation_link()
S
55 5 20
get_starred_stacks()
S
44 3 49
check_access()
S
56 5 18
get_user_muted_threads()
S
56 5 17
is_valid_user_id()
S
59 5 16
get_thread_title()
S
59 5 13
can_reply_in_conversation()
S
56 4 20
license_proposal()
S
56 4 18
record_message_edit_history()
S
58 4 16
is_user_exists()
S
61 4 14
array_insert_after()
S
61 4 13
user_has_role()
S
61 4 13
get_microtime()
S
60 4 13
array_insert_before()
S
61 4 13
update_message_update_time()
S
62 4 12
check_this_is_multsite()
S
63 4 12
get_undeleted_recipients()
S
62 4 12
is_thread_participant()
S
55 3 21
decrease_unread()
S
55 3 19
get_missed_message_ids()
S
56 3 17
clear_thread()
S
57 3 17
erase_thread()
S
56 3 16
messages_mark_thread_read()
S
57 3 16
get_participants()
S
58 3 16
minify_css()
S
51 2 31
pm_link()
S
59 3 15
render_login_form()
S
50 1 43
get_thread()
S
60 3 13
clean_no_subject()
S
62 3 12
get_user_secret_key()
S
63 3 11
get_user_roles()
S
63 3 11
get_restrict_to_roles()
S
62 3 11
check_chat_room_access()
S
63 3 11
is_user_participant()
S
62 3 11
minify_js()
S
57 2 19
get_total_threads_for_user()
S
62 3 10
get_rest_avatar()
S
68 3 7
is_response_good()
S
65 3 9
is_ajax()
S
69 3 6
get_threads()
S
66 3 8
get_recipients_ids()
S
64 3 9
get_message_last_edit()
S
64 3 9
get_name()
S
63 3 10
is_friends()
S
68 3 7
check_created_time()
S
63 3 10
can_start_new_conversation()
S
59 2 15
can_moderate_thread()
S
66 3 9
get_user_unread_messages()
S
62 2 12
get_user_messages_url()
S
63 2 11
thread_updated_for_user()
S
62 2 11
get_message_by_order()
S
62 2 11
container_placeholder()
S
59 1 18
get_starred_count()
S
57 1 17
threads_placeholder()
S
65 2 9
threads_order_sql()
S
65 2 10
random_string()
S
65 2 8
plugin_mode()
S
72 2 6
generateRandomString()
S
64 2 9
clean_thread_notifications()
S
70 2 6
remove_moderator()
S
64 2 9
add_moderator()
S
64 2 9
is_thread_moderator()
S
66 2 8
get_moderators()
S
68 2 7
get_current_user_id()
S
69 2 7
delete_user_meta()
S
69 2 7
get_user_meta()
S
69 2 7
redirect_to_messages_link()
S
68 2 7
can_use_premium_code_premium_only()
S
72 2 6
can_use_premium_code()
S
72 2 6
update_user_meta()
S
68 2 7
array_map_recursive()
S
70 2 6
instance()
S
69 2 7
remove_re()
S
66 2 8
is_only_followers_mode()
S
75 2 4
strip_all_tags()
S
66 2 8
is_conversation_exists()
S
69 2 7
get_thread_image()
S
70 2 6
get_thread_url()
S
70 2 6
is_only_friends_mode()
S
75 2 4
get_formatted_time()
S
62 2 10
bp_core_get_user_domain()
S
69 2 7
is_message_starred()
S
66 2 8
can_clear_thread()
S
68 2 7
can_erase_thread()
S
68 2 7
is_calls_only_friends()
S
78 2 3
change_thread_subject()
S
62 1 11
private_message_link()
S
77 1 3
before_new_thread_filter()
S
75 1 4
clean_site_url()
S
69 1 6
clean_string()
S
69 1 6
add_user_to_thread()
S
79 1 3
before_message_send_filter()
S
75 1 4
get_unique_pm_thread_id()
S
78 1 3
get_pm_thread_id()
S
78 1 3
get_rest_api_url()
S
78 1 3
get_thread_message_count()
S
67 1 8
get_thread_count()
S
66 1 9
get_user_unread_for_thread()
S
67 1 8
get_threads_html()
S
80 1 3
get_message()
S
67 1 8
get_thread_subject()
S
64 1 10
is_user_authorized()
S
79 1 3
get_conversation_layout()
S
73 1 4
update_thread_meta()
S
75 1 4
get_conversations_layout()
S
73 1 5
is_followers_active()
S
79 1 3
sanitize_xss()
S
80 1 3
show_avatars()
S
79 1 3
audio_calls_active()
S
79 1 3
video_calls_active()
S
79 1 3
is_verified()
S
79 1 3
is_followers()
S
78 1 3
pre_template_include()
S
79 1 3
after_template_include()
S
91 1 2
is_groups_active()
S
79 1 3
archive_thread()
S
67 1 7
can_send_message_filter()
S
74 1 4
get_thread_meta()
S
75 1 4
delete_all_thread_meta()
S
71 1 5
delete_all_message_meta()
S
71 1 5
get_last_activity()
S
80 1 3
get_user_unread_count()
S
74 1 4
is_friends_active()
S
79 1 3
delete_message_meta()
S
75 1 4
update_message_meta()
S
75 1 4
get_message_meta()
S
75 1 4
add_message_meta()
S
74 1 4
delete_thread_meta()
S
75 1 4
get_user_thread_url()
S
79 1 3
get_site_domain()
S
73 1 5