MxChat_Admin D

Total Complexity 780
Dependencies 7
Dependents 0
Total lines 5,838
Lines of code 4,696
Logical lines of code 2,027
Comment lines 398
Methods 120
Properties 3

Methods 120

Method Rating Maintainability Complexity Lines of code
mxchat_sanitize()
D
13
91 255
mxchat_create_prompts_page()
D
16
35 366
mxchat_intents_page_html()
D
18
29 343
mxchat_save_setting_callback()
D
34 34 77
mxchat_page_init()
B
21
1 384
mxchat_handle_sitemap_submission()
B
32 18 121
mxchat_handle_post_delete()
B
39 20 62
handle_post_update()
B
42 18 49
process_sitemap_urls_cron()
B
36 15 82
mxchat_handle_add_intent()
B
40 16 54
mxchat_fetch_chat_history()
A
34 12 98
process_pdf_pages_cron()
A
37 13 69
mxchat_store_product_embedding()
A
43 14 45
handle_edit_intent()
A
40 13 58
mxchat_handle_activate_license()
A
43 12 46
mxchat_save_prompts_setting_callback()
A
47 13 30
mxchat_loops_mailing_list_callback()
A
48 12 31
mxchat_enqueue_admin_assets()
A
34 7 105
mxchat_create_admin_page()
A
31 2 179
handle_pdf_for_knowledge_base()
A
41 10 55
mxchat_model_callback()
A
45 10 37
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_extract_main_content()
A
46 9 38
store_in_pinecone_main()
A
41 7 59
handle_sitemap_for_knowledge_base()
A
44 8 43
sanitize_prompts_options()
A
46 8 38
mxchat_create_activation_page()
A
44 6 55
delete_from_pinecone()
S
42 5 60
mxchat_handle_delete_prompt()
S
53 7 19
mxchat_title_icon_callback()
S
48 6 32
mxchat_custom_icon_callback()
S
48 6 32
__construct()
S
44 5 43
initialize_default_options()
S
39 3 70
mxchat_chat_toolbar_toggle_callback()
S
51 6 24
mxchat_live_agent_status_callback()
S
52 6 23
mxchat_additional_popular_questions_callback()
S
45 4 50
get_sitemap_processing_status()
S
54 6 19
mxchat_calculate_cosine_similarity()
S
56 6 18
mxchat_pdf_intent_success_text_callback()
S
50 5 28
mxchat_pdf_intent_error_text_callback()
S
50 5 28
mxchat_pdf_intent_trigger_text_callback()
S
50 5 28
mxchat_pdf_max_pages_callback()
S
50 5 28
mxchat_stop_processing()
S
52 5 26
mxchat_live_agent_message_bg_color_callback()
S
52 5 24
mxchat_bot_message_font_color_callback()
S
52 5 24
mxchat_bot_message_bg_color_callback()
S
52 5 24
mxchat_user_message_font_color_callback()
S
52 5 24
mxchat_mode_indicator_font_color_callback()
S
52 5 24
mxchat_toolbar_icon_color_callback()
S
52 5 24
mxchat_top_bar_bg_color_callback()
S
52 5 24
mxchat_chatbot_background_color_callback()
S
52 5 24
mxchat_icon_color_callback()
S
52 5 24
mxchat_chat_input_font_color_callback()
S
52 5 24
mxchat_mode_indicator_bg_color_callback()
S
52 5 24
mxchat_send_button_font_color_callback()
S
52 5 24
mxchat_live_agent_message_font_color_callback()
S
52 5 24
mxchat_get_available_callbacks()
S
44 3 52
mxchat_delete_chat_history()
S
52 5 22
mxchat_live_agent_webhook_url_callback()
S
53 5 21
mxchat_live_agent_away_message_callback()
S
54 5 20
mxchat_live_agent_notification_message_callback()
S
54 5 20
xai_api_key_callback()
S
55 5 18
mxchat_live_agent_secret_key_callback()
S
55 5 18
mxchat_live_agent_bot_token_callback()
S
55 5 18
claude_api_key_callback()
S
55 5 18
mxchat_rate_limit_roles_callback()
S
51 4 25
mxchat_privacy_toggle_callback()
S
54 4 21
mxchat_handle_delete_all_prompts()
S
55 4 18
mxchat_create_transcripts_page()
S
44 1 61
get_pdf_processing_status()
S
56 4 16
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_handle_update_intent_threshold()
S
53 3 22
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_handle_delete_intent()
S
58 3 14
mxchat_rate_limit_logged_out_callback()
S
57 3 14
mxchat_append_to_body_callback()
S
59 3 14
mxchat_complianz_toggle_callback()
S
59 3 13
enable_email_block_callback()
S
59 3 13
mxchat_chat_persistence_toggle_callback()
S
59 3 13
mxchat_link_target_toggle_callback()
S
59 3 13
mxchat_similarity_threshold_callback()
S
53 2 26
mxchat_brave_safe_search_callback()
S
55 2 20
mxchat_generate_embedding()
S
55 2 19
mxchat_append_chatbot_to_body()
S
69 3 6
email_blocker_header_content_callback()
S
59 2 15
mxchat_add_option_field()
S
63 3 10
mxchat_rate_limit_message_callback()
S
61 2 12
mxchat_brave_language_callback()
S
63 2 11
mxchat_loops_api_key_callback()
S
62 2 11
mxchat_email_capture_response_callback()
S
62 2 11
mxchat_input_copy_callback()
S
62 2 11
mxchat_brave_news_count_callback()
S
63 2 11
mxchat_brave_country_callback()
S
63 2 11
mxchat_brave_api_key_callback()
S
61 2 11
mxchat_intro_message_callback()
S
62 2 11
mxchat_triggered_phrase_response_callback()
S
62 2 11
mxchat_brave_image_count_callback()
S
63 2 11
mxchat_prompts_page_init()
S
55 1 21
mxchat_popular_question_1_callback()
S
63 2 10
email_blocker_button_text_callback()
S
63 2 10
mxchat_top_bar_title_callback()
S
70 2 5
is_pdf_url()
S
70 2 5
system_prompt_instructions_callback()
S
66 2 8
mxchat_pre_chat_message_callback()
S
63 2 10
sanitize_sync_setting()
S
77 2 3
mxchat_popular_question_2_callback()
S
63 2 10
mxchat_popular_question_3_callback()
S
63 2 10
api_key_callback()
S
68 2 6
deepseek_api_key_callback()
S
70 2 5
mxchat_sanitize_content_for_api()
S
64 1 9
mxchat_pdf_intent_section_callback()
S
78 1 3
mxchat_create_addons_page()
S
73 1 5
is_license_active()
S
74 1 4