MxChat_Admin D

Total Complexity 1,012
Dependencies 7
Dependents 0
Total lines 7,932
Lines of code 6,146
Logical lines of code 2,595
Comment lines 786
Methods 135
Properties 3

Methods 135

Method Rating Maintainability Complexity Lines of code
mxchat_sanitize()
D
9
103 300
mxchat_create_prompts_page()
D
8
64 534
mxchat_actions_page_html()
D
14
41 406
mxchat_get_available_callbacks()
D
20
34 265
mxchat_extract_main_content()
D
25
40 157
mxchat_save_setting_callback()
D
31 40 97
process_sitemap_urls_cron()
D
28
28 142
mxchat_handle_sitemap_submission()
C
26
24 182
handle_post_update()
C
36 27 75
mxchat_page_init()
C
19
1 436
mxchat_handle_post_delete()
B
38 23 70
process_pdf_pages_cron()
B
33 19 95
mxchat_generate_embedding()
B
36 20 76
mxchat_enqueue_admin_assets()
B
28
15 149
mxchat_handle_add_intent()
B
37 17 70
mxchat_handle_edit_intent()
B
37 15 72
mxchat_rate_limits_callback()
A
30 8 163
mxchat_fetch_chat_history()
A
34 12 98
mxchat_store_product_embedding()
A
43 14 45
mxchat_save_prompts_setting_callback()
A
46 14 35
mxchat_create_admin_page()
A
29 2 213
handle_sitemap_for_knowledge_base()
A
37 10 81
mxchat_handle_activate_license()
A
43 12 46
mxchat_loops_mailing_list_callback()
A
47 12 33
handle_pdf_for_knowledge_base()
A
41 10 55
ajax_get_status_updates()
A
51 11 25
display_processing_status()
A
54 11 19
mxchat_handle_content_submission()
A
43 9 48
mxchat_handle_product_delete()
A
49 10 30
mxchat_save_inline_prompt()
A
46 9 38
mxchat_toggle_action()
A
49 9 30
store_in_pinecone_main()
A
41 7 59
sanitize_prompts_options()
A
46 8 38
mxchat_create_transcripts_page()
A
35 1 138
has_value_changed()
A
57 9 15
get_pdf_processing_status()
A
49 8 29
mxchat_create_activation_page()
A
44 6 55
delete_from_pinecone()
S
42 5 60
get_sitemap_processing_status()
S
53 7 20
mxchat_update_intent_threshold()
S
47 6 34
mxchat_handle_delete_prompt()
S
53 7 19
mxchat_custom_icon_callback()
S
48 6 32
mxchat_title_icon_callback()
S
48 6 32
__construct()
S
43 5 47
initialize_default_options()
S
38 3 76
display_admin_notices()
S
53 6 23
mxchat_additional_popular_questions_callback()
S
45 4 50
mxchat_calculate_cosine_similarity()
S
56 6 18
mxchat_model_callback()
S
43 4 46
export_chat_transcripts()
S
45 4 43
mxchat_stop_processing()
S
52 5 26
mxchat_chat_input_font_color_callback()
S
52 5 24
mxchat_icon_color_callback()
S
52 5 24
mxchat_chatbot_background_color_callback()
S
52 5 24
mxchat_send_button_font_color_callback()
S
52 5 24
mxchat_mode_indicator_font_color_callback()
S
52 5 24
mxchat_top_bar_bg_color_callback()
S
52 5 24
mxchat_toolbar_icon_color_callback()
S
52 5 24
mxchat_bot_message_font_color_callback()
S
52 5 24
mxchat_live_agent_message_font_color_callback()
S
52 5 24
mxchat_live_agent_message_bg_color_callback()
S
52 5 24
mxchat_user_message_font_color_callback()
S
52 5 24
mxchat_mode_indicator_bg_color_callback()
S
52 5 24
mxchat_bot_message_bg_color_callback()
S
52 5 24
mxchat_delete_chat_history()
S
52 5 22
embedding_model_callback()
S
52 4 23
mxchat_privacy_toggle_callback()
S
54 4 21
mxchat_handle_delete_all_prompts()
S
55 4 18
mxchat_fetch_loops_mailing_lists()
S
58 4 15
mxchat_average_vectors()
S
59 4 14
mxchat_handle_product_change()
S
61 4 13
sync_settings_notice()
S
62 4 12
mxchat_add_plugin_page()
S
46 1 51
mxchat_display_admin_notice()
S
57 3 20
store_in_wordpress_db()
S
51 2 30
mxchat_append_to_body_callback()
S
59 3 14
mxchat_handle_delete_intent()
S
58 3 14
mxchat_chat_persistence_toggle_callback()
S
59 3 13
mxchat_link_target_toggle_callback()
S
59 3 13
enable_email_block_callback()
S
59 3 13
mxchat_live_agent_status_callback()
S
59 3 13
mxchat_complianz_toggle_callback()
S
59 3 13
mxchat_show_pdf_upload_button_callback()
S
60 3 12
mxchat_chat_toolbar_toggle_callback()
S
60 3 12
mxchat_show_word_upload_button_callback()
S
60 3 12
get_trimmed_phrases()
S
62 3 11
mxchat_similarity_threshold_callback()
S
54 2 24
mxchat_brave_safe_search_callback()
S
55 2 20
mxchat_sanitize_content_for_api()
S
55 2 19
email_blocker_header_content_callback()
S
58 2 16
mxchat_pdf_intent_error_text_callback()
S
59 2 15
mxchat_append_chatbot_to_body()
S
69 3 6
get_single_url_status()
S
63 3 10
mxchat_pdf_max_pages_callback()
S
59 2 15
mxchat_pdf_intent_success_text_callback()
S
59 2 15
mxchat_pdf_intent_trigger_text_callback()
S
59 2 15
mxchat_add_option_field()
S
63 3 10
handle_embedding_error()
S
61 2 13
mxchat_loops_api_key_callback()
S
60 2 13
mxchat_brave_country_callback()
S
63 2 11
mxchat_intro_message_callback()
S
63 2 11
mxchat_input_copy_callback()
S
62 2 11
mxchat_brave_language_callback()
S
63 2 11
mxchat_brave_api_key_callback()
S
61 2 11
mxchat_live_agent_webhook_url_callback()
S
62 2 11
mxchat_brave_image_count_callback()
S
63 2 11
mxchat_brave_news_count_callback()
S
63 2 11
mxchat_email_capture_response_callback()
S
62 2 11
mxchat_triggered_phrase_response_callback()
S
62 2 11
mxchat_prompts_page_init()
S
55 1 21
mxchat_live_agent_away_message_callback()
S
63 2 10
mxchat_add_enabled_column_to_intents()
S
66 2 8
email_blocker_button_text_callback()
S
63 2 10
mxchat_ai_agent_text_callback()
S
70 2 5
mxchat_top_bar_title_callback()
S
70 2 5
system_prompt_instructions_callback()
S
66 2 8
is_pdf_url()
S
70 2 5
mxchat_pre_chat_message_callback()
S
63 2 10
mxchat_live_agent_bot_token_callback()
S
65 2 8
mxchat_live_agent_secret_key_callback()
S
65 2 8
mxchat_live_agent_notification_message_callback()
S
63 2 10
api_key_callback()
S
65 2 8
mxchat_popular_question_3_callback()
S
63 2 10
is_license_active()
S
74 2 4
gemini_api_key_callback()
S
65 2 8
get_public_post_types()
S
66 2 8
sanitize_sync_setting()
S
77 2 3
deepseek_api_key_callback()
S
65 2 8
claude_api_key_callback()
S
65 2 8
xai_api_key_callback()
S
65 2 8
mxchat_popular_question_1_callback()
S
63 2 10
mxchat_popular_question_2_callback()
S
63 2 10
voyage_api_key_callback()
S
65 2 8
mxchat_create_addons_page()
S
73 1 5
mxchat_pdf_intent_section_callback()
S
78 1 3