MxChat_Admin D

Total Complexity 388
Dependencies 3
Dependents 0
Total lines 2,982
Lines of code 2,315
Logical lines of code 951
Comment lines 207
Methods 74
Properties 3

Methods 74

Method Rating Maintainability Complexity Lines of code
mxchat_sanitize()
D
23
59 165
mxchat_intents_page_html()
C
27
25 157
mxchat_create_prompts_page()
B
28
14 172
mxchat_page_init()
B
22
1 344
mxchat_handle_sitemap_submission()
B
39 16 63
mxchat_handle_add_intent()
A
39 15 60
mxchat_create_admin_page()
A
37 2 166
mxchat_fetch_chat_history()
A
43 9 49
mxchat_model_callback()
A
47 10 32
mxchat_handle_content_submission()
A
44 9 42
mxchat_handle_activate_license()
A
51 10 24
mxchat_save_inline_prompt()
A
46 9 38
mxchat_enqueue_admin_assets()
A
39 5 74
mxchat_handle_delete_prompt()
A
49 8 27
mxchat_chat_persistence_toggle_callback()
S
53 6 21
mxchat_complianz_toggle_callback()
S
53 6 21
mxchat_create_activation_page()
S
49 5 36
mxchat_loops_mailing_list_callback()
S
55 6 18
mxchat_calculate_cosine_similarity()
S
56 6 18
mxchat_enable_woocommerce_integration_callback()
S
56 6 16
mxchat_extract_main_content()
S
52 5 25
mxchat_delete_chat_history()
S
53 5 22
mxchat_popular_question_3_callback()
S
56 5 17
xai_api_key_callback()
S
56 5 17
mxchat_popular_question_2_callback()
S
56 5 17
mxchat_woocommerce_consumer_secret_callback()
S
56 5 17
claude_api_key_callback()
S
56 5 17
mxchat_woocommerce_consumer_key_callback()
S
57 5 16
initialize_default_options()
S
44 2 49
mxchat_privacy_toggle_callback()
S
57 4 17
mxchat_user_message_bg_color_callback()
S
58 4 15
mxchat_icon_color_callback()
S
58 4 15
mxchat_chatbot_bg_color_callback()
S
58 4 15
mxchat_user_message_font_color_callback()
S
58 4 15
mxchat_close_button_color_callback()
S
58 4 15
mxchat_bot_message_bg_color_callback()
S
58 4 15
mxchat_chatbot_background_color_callback()
S
58 4 15
mxchat_bot_message_font_color_callback()
S
58 4 15
mxchat_chat_input_font_color_callback()
S
58 4 15
mxchat_send_button_font_color_callback()
S
58 4 15
mxchat_fetch_loops_mailing_lists()
S
58 4 15
mxchat_top_bar_bg_color_callback()
S
58 4 15
mxchat_average_vectors()
S
59 4 14
mxchat_display_admin_notice()
S
58 3 20
mxchat_add_plugin_page()
S
48 1 43
mxchat_append_to_body_callback()
S
62 3 11
mxchat_link_target_toggle_callback()
S
62 3 11
mxchat_rate_limit_callback()
S
60 3 11
__construct()
S
52 2 23
mxchat_get_available_callbacks()
S
50 1 36
mxchat_generate_embedding()
S
55 2 19
mxchat_add_option_field()
S
64 3 10
mxchat_append_chatbot_to_body()
S
69 3 6
mxchat_brave_api_key_callback()
S
59 2 14
mxchat_brave_safe_search_callback()
S
62 2 11
mxchat_loops_api_key_callback()
S
63 2 11
mxchat_create_transcripts_page()
S
59 1 19
mxchat_input_copy_callback()
S
68 2 7
mxchat_rate_limit_message_callback()
S
67 2 8
api_key_callback()
S
71 2 5
mxchat_brave_language_callback()
S
64 2 9
mxchat_brave_country_callback()
S
64 2 9
mxchat_brave_image_count_callback()
S
64 2 9
mxchat_brave_news_count_callback()
S
64 2 9
mxchat_intro_message_callback()
S
70 2 6
mxchat_triggered_phrase_response_callback()
S
71 2 5
mxchat_email_capture_response_callback()
S
71 2 5
mxchat_popular_question_1_callback()
S
68 2 7
mxchat_pre_chat_message_callback()
S
70 2 6
system_prompt_instructions_callback()
S
70 2 6
mxchat_top_bar_title_callback()
S
70 2 6
mxchat_handle_delete_intent()
S
64 2 9
is_license_active()
S
75 1 4
mxchat_sanitize_content_for_api()
S
64 1 9