Meow_MWAI_Core D

Total Complexity 235
Dependencies 37
Dependents 7
Total lines 1,217
Lines of code 925
Logical lines of code 504
Comment lines 130
Methods 62
Properties 21

Methods 62

Method Rating Maintainability Complexity Lines of code
init()
B
39 22 60
update_chatbots()
B
38 20 71
sanitize_options()
B
39 20 69
populate_dynamic_options()
A
31 9 141
estimate_tokens()
A
50 11 25
retrieve_context()
A
49 9 31
get_chatbots()
A
51 8 27
get_post_types()
A
52 8 23
get_engine_models()
A
55 8 22
clean_sentences()
A
47 7 34
get_all_options()
S
55 7 19
run_query()
S
56 7 17
sanitize_sort()
S
56 7 17
get_image_resolution()
S
54 6 21
get_themes()
S
51 4 27
get_post()
S
51 4 26
get_mime_type()
S
52 4 23
register_scripts()
S
58 4 14
stream_push()
S
60 4 13
is_image()
S
62 4 11
get_post_content()
S
54 3 22
do_placeholders()
S
61 3 12
get_random_id()
S
61 3 12
get_theme()
S
65 3 9
enqueue_themes()
S
67 3 8
update_ai_env()
S
63 3 10
get_chatbot()
S
65 3 9
get_post_language()
S
61 2 11
safe_strlen()
S
67 2 8
enqueue_theme()
S
71 2 6
update_options()
S
68 2 7
is_url()
S
77 2 3
can_access_features()
S
74 2 4
__construct()
S
61 1 12
get_option()
S
75 1 4
update_option()
S
72 1 5
record_images_usage()
S
79 1 3
get_embeddings_env()
S
80 1 3
get_ai_env()
S
80 1 3
get_assistant()
S
79 1 3
update_themes()
S
76 1 4
get_ip_address()
S
80 1 3
record_audio_usage()
S
79 1 3
add_image_from_url()
S
77 1 3
can_start_session()
S
81 1 3
can_access_settings()
S
79 1 3
can_access_public_api()
S
75 1 4
validate_env_model()
S
80 1 3
clean_text()
S
66 1 8
markdown_to_html()
S
73 1 5
download_image()
S
80 1 3
get_nonce()
S
80 1 3
record_tokens_usage()
S
78 1 3
fix_chat_id()
S
79 1 3
get_session_id()
S
81 1 3
get_response_id_manager()
S
82 1 3
get_message_builder()
S
82 1 3
get_user_id()
S
80 1 3
get_admin_user()
S
81 1 3
get_user_data()
S
81 1 3
check_rest_nonce()
S
72 1 5
reset_options()
S
71 1 6