Code Analysis: Mementor Text to Speech (TTS) 1.1.4

Function Rating Maintainability Complexity Lines of code
Mementor_TTS_Ajax::ajax_generate_shortcode_audio()
D
27
48 118
Mementor_TTS_Admin::enqueue_styles()
D
23
41 163
Mementor_TTS_Admin::enqueue_scripts()
D
22
34 225
Mementor_TTS_Ajax::save_settings()
D
30 41 99
Mementor_TTS_Shortcodes::render_tts_shortcode()
D
27
36 122
Mementor_TTS_Processor::generate_audio()
D
25
33 151
Mementor_TTS_Ajax::save_voice()
D
35 32 76
Mementor_TTS_Processor::generate_shortcode_audio()
C
27
25 148
Mementor_TTS_ElevenLabs_API::text_to_speech()
C
28
25 132
Mementor_TTS_Admin::get_user_info()
C
35 24 80
Mementor_TTS_Admin::register_settings()
B
21
1 402
Mementor_TTS_Public::render_player()
B
33 22 85
Mementor_TTS_Admin::get_elevenlabs_usage_stats()
B
36 21 78
Mementor_TTS_Ajax::generate_audio()
B
39 21 61
Mementor_TTS_Admin::generate_audio_ajax()
B
37 20 73
Mementor_TTS_Ajax::get_voices()
B
40 19 57
Mementor_TTS_ElevenLabs_API::validate_api_key()
B
34 16 94
mementor_tts_add_dynamic_player_styles()
B
36 13 103
Mementor_TTS_Admin::generate_shortcode_audio_ajax()
B
39 15 64
Mementor_TTS_ElevenLabs_API::get_voices()
A
37 14 75
Mementor_TTS_Admin::load_voices_ajax()
A
39 14 68
mementor_tts_check_pro_status()
A
39 14 67
Mementor_TTS_Encryption::decrypt()
A
40 14 61
Mementor_TTS_ElevenLabs_API::get_friendly_error_message()
A
48 14 31
Mementor_TTS_SSML::generate_ssml()
A
44 13 43
Mementor_TTS_Processor::cleanup_directory()
A
46 13 38
Mementor_TTS_ElevenLabs_API::get_api_key_to_use()
A
47 13 36
Mementor_TTS_Admin::import_settings_ajax()
A
47 13 33
Mementor_TTS_Processor::save_audio_file()
A
42 12 48
Mementor_TTS_Public::inject_player_after_title_before_excerpt()
A
45 12 42
Mementor_TTS_Admin::delete_audio_ajax()
A
42 11 52
Mementor_TTS_Public::inject_player_after_title_fallback()
A
43 11 48
Mementor_TTS_Ajax::regenerate_audio()
A
45 11 43
Mementor_TTS_Public::generate_audio_for_post()
A
41 10 54
Mementor_TTS_Public::get_player_html()
A
41 10 54
Mementor_TTS_Public::output_player()
A
45 10 43
Mementor_TTS_Ajax::delete_audio()
A
46 10 39
Mementor_TTS_Public::output_player_after_title()
A
47 10 37
Mementor_TTS_Admin::export_settings_ajax()
A
43 9 46
Mementor_Text_To_Speech::init_elementor_integration()
A
50 10 28
Mementor_TTS_ElevenLabs_API::__construct()
A
46 9 38
Mementor_TTS_Processor::log_message()
A
57 10 15
Mementor_TTS_Public::enqueue_scripts()
A
40 7 58
Mementor_TTS_Admin::refresh_stats_ajax()
A
50 8 30
Mementor_TTS_Admin::render_tts_column()
A
44 7 41
Mementor_TTS_ElevenLabs_API::log_message()
A
52 8 24
Mementor_TTS_Speech_Builder::store_element()
A
43 6 52
Mementor_TTS_Processor::needs_audio_generation()
A
48 7 34
Mementor_TTS_Admin::prepare_text_with_title_and_excerpt()
S
49 7 30
Mementor_TTS_Admin::validate_api_key_ajax()
S
49 7 29
Mementor_TTS_ElevenLabs_API::set_api_key()
S
50 7 27
Mementor_TTS_Encryption::log_error()
S
61 8 12
Mementor_TTS_Speech_Builder::delete_element()
S
45 6 41
Mementor_TTS_ElevenLabs_API::send_request()
S
46 6 39
Mementor_TTS_ElevenLabs_API::make_request()
S
46 6 38
Mementor_TTS_Admin::validate_api_key()
S
53 7 22
Mementor_TTS_ElevenLabs_API::sanitize_api_key()
S
54 7 21
Mementor_TTS_Speech_Builder::cleanup_elements()
S
48 6 34
Mementor_TTS_ElevenLabs_API::parse_error_response()
S
57 7 15
Mementor_TTS_Admin::add_tts_columns_to_post_types()
S
49 6 30
mementor_tts_register_assets()
S
41 3 74
Mementor_TTS_ElevenLabs_API::make_api_request_with_retry()
S
51 6 27
Mementor_TTS_Public::add_player_to_elementor_content()
S
52 6 26
Mementor_TTS_Public::add_automatic_player()
S
54 6 24
Mementor_TTS_Public::maybe_add_player_to_content()
S
53 6 24
Mementor_TTS_Admin::get_decrypted_api_key_ajax()
S
52 6 23
Mementor_TTS_Processor::get_filesystem()
S
54 6 23
Mementor_TTS_Admin::initialize_logo_attachments()
S
47 5 38
Mementor_TTS_Admin::add_plugin_admin_menu()
S
38 1 93
Mementor_TTS_Public::setup_content_filters()
S
56 6 17
Mementor_TTS_Public::log_debug()
S
58 6 14
Mementor_TTS_Admin::enqueue_column_footer_script()
S
49 4 41
Mementor_TTS_Admin::reset_api_settings_ajax()
S
53 5 22
Mementor_TTS_Speech_Builder::db_get_var()
S
55 5 19
Mementor_TTS_Admin::sanitize_array()
S
57 5 18
Mementor_TTS_Public::protect_player_html()
S
57 5 17
Mementor_TTS_SSML::add_prosody()
S
57 5 16
Mementor_TTS_ElevenLabs_API::get_models()
S
50 4 31
Mementor_TTS_Public::enqueue_styles()
S
59 5 16
Mementor_TTS_Processor::init()
S
59 5 14
Mementor_TTS_Encryption::__construct()
S
58 5 14
Mementor_TTS_Admin::sanitize_post_types_array()
S
60 5 14
Mementor_TTS_Processor::process_text()
S
50 4 28
Mementor_TTS_Admin::__construct()
S
50 4 28
Mementor_TTS_Public::get_dynamic_css_variables()
S
42 2 56
Mementor_TTS_Public::inject_player_into_output()
S
53 4 22
Mementor_TTS_Processor::generate_filename()
S
54 4 21
Mementor_TTS_Pro_Bridge::get_pro_api_key()
S
55 4 20
Mementor_TTS_Speech_Builder::update_element_audio()
S
49 3 33
Mementor_TTS_Ajax::test_api()
S
56 4 18
Mementor_TTS_Processor::__construct()
S
56 4 17
Mementor_TTS_Shortcodes::maybe_enqueue_assets()
S
56 4 17
Mementor_TTS_ElevenLabs_API::is_valid_api_key_format()
S
63 5 10
Mementor_TTS_Ajax::clear_voice_cache()
S
58 4 15
Mementor_TTS_Admin::check_api_key_access()
S
58 4 14
Mementor_TTS_Admin::reset_player_settings_ajax()
S
59 4 14
Mementor_TTS_Pro_Bridge::should_use_pro_key()
S
61 4 13
Mementor_TTS_Admin::clear_cache_ajax()
S
59 4 13
Mementor_TTS_Public::prevent_autop_on_player()
S
59 4 13
mementor_tts_maybe_enqueue_assets()
S
52 3 26
Mementor_TTS_Pro_Bridge::is_pro_active()
S
62 4 11
Mementor_TTS_Admin::modify_support_forum_link()
S
62 4 11
Mementor_TTS_Loader::run()
S
58 3 18
mementor_tts_admin_enqueue_scripts()
S
59 3 16
Mementor_TTS_Public::get_audio_url()
S
57 3 16
Mementor_TTS_ElevenLabs_API::debug_log()
S
71 4 5
Mementor_TTS_ElevenLabs_API::clear_cache()
S
58 3 15
Mementor_TTS_Encryption::encrypt()
S
58 3 15
Mementor_TTS_Admin::sanitize_color()
S
66 4 9
Mementor_TTS_ElevenLabs_API::get_user_info()
S
62 3 12
Mementor_TTS_Public::add_dynamic_css()
S
62 3 12
Mementor_TTS_Public::should_post_have_player()
S
62 3 11
Mementor_TTS_Public::maybe_buffer_output()
S
62 3 11
Mementor_TTS_Public::maybe_clear_dynamic_css_cache()
S
54 2 24
Mementor_TTS_Admin::add_dynamic_css_variables()
S
46 1 38
Mementor_TTS_Processor::get_voice_settings()
S
54 2 21
Mementor_TTS_Speech_Builder::create_tables()
S
51 1 35
Mementor_TTS_Admin::reset_player_settings()
S
47 1 35
Mementor_TTS_Speech_Builder::get_pending_elements()
S
56 2 18
Mementor_TTS_Speech_Builder::get_element()
S
57 2 17
Mementor_Text_To_Speech::__construct()
S
58 2 17
Mementor_TTS_Speech_Builder::element_exists()
S
57 2 16
Mementor_TTS_Processor::get_content_from_html()
S
56 2 16
Mementor_TTS_Admin::sanitize_checkbox()
S
77 3 3
mementor_tts_activate()
S
59 2 15
Mementor_TTS_Processor::process_batch()
S
60 2 14
Mementor_TTS_Admin::store_api_key()
S
61 2 12
Mementor_TTS_SSML::format_numbers()
S
61 2 12
Mementor_TTS_Admin::display_logo_icon()
S
60 2 12
Mementor_TTS_Public::process_content()
S
62 2 12
Mementor_TTS_Shortcodes::register_shortcode_assets()
S
61 2 12
Mementor_TTS_Speech_Builder::db_update()
S
61 2 11
Mementor_TTS_Speech_Builder::db_delete()
S
61 2 11
Mementor_TTS_Encryption::add_admin_notice()
S
64 2 11
Mementor_TTS_Public::get_player_container_classes()
S
63 2 11
Mementor_TTS_Speech_Builder::db_insert()
S
61 2 11
Mementor_TTS_Admin::display_header_logo()
S
62 2 11
Mementor_TTS_Admin::add_player_columns_styles()
S
53 1 25
Mementor_Text_To_Speech::localize_scripts()
S
52 1 24
Mementor_TTS_Public::localize_player_script()
S
53 1 24
Mementor_TTS_Admin::register_ajax_handlers()
S
54 1 21
Mementor_TTS_Public::__construct()
S
55 1 19
Mementor_TTS_Public::should_load_assets()
S
66 2 8
Mementor_TTS_ElevenLabs_API::get_instance()
S
70 2 7
Mementor_TTS_Ajax::get_instance()
S
71 2 6
Mementor_TTS_Shortcodes::register_shortcodes()
S
69 2 7
Mementor_TTS_Encryption::show_keys_missing_notice()
S
68 2 9
Mementor_TTS_Encryption::show_openssl_missing_notice()
S
68 2 9
Mementor_TTS_Speech_Builder::db_get_results()
S
63 2 10
Mementor_TTS_Speech_Builder::init()
S
70 2 6
Mementor_TTS_Speech_Builder::get_instance()
S
71 2 6
Mementor_TTS_Speech_Builder::db_get_row()
S
63 2 10
Mementor_TTS_Public::get_supported_post_types()
S
68 2 7
Mementor_TTS_Processor::get_instance()
S
71 2 6
Mementor_TTS_Admin::sanitize_width_unit()
S
72 2 5
Mementor_TTS_Admin::save_voice_ajax()
S
68 2 7
Mementor_TTS_Processor::initialize_api()
S
74 2 5
Mementor_TTS_Shortcodes::instance()
S
71 2 6
Mementor_TTS_Processor::cleanup_audio_files()
S
64 2 9
Mementor_TTS_Admin::sanitize_alignment()
S
72 2 5
Mementor_Text_To_Speech::enqueue_scripts()
S
59 1 13
Mementor_TTS_Admin::process_text_for_ssml()
S
60 1 13
Mementor_TTS_Ajax::__construct()
S
61 1 12
Mementor_TTS_Admin::localize_admin_scripts()
S
61 1 12
Mementor_Text_To_Speech::load_dependencies()
S
63 1 11
Mementor_TTS_Admin::display_affiliate_page()
S
80 1 3
Mementor_TTS_Admin::add_action_links()
S
69 1 6
Mementor_TTS_SSML::format_time()
S
79 1 3
Mementor_TTS_Admin::sanitize_option_boolean()
S
81 1 3
Mementor_TTS_Admin::get_openai_usage_stats()
S
65 1 10
Mementor_Text_To_Speech::register_shortcodes()
S
91 1 2
Mementor_Text_To_Speech::define_public_hooks()
S
66 1 8
Mementor_Text_To_Speech::set_locale()
S
75 1 4
Mementor_TTS_Pro_Bridge::modify_script_localization()
S
65 1 9
Mementor_TTS_Admin::display_shortcodes_page()
S
80 1 3
Mementor_TTS_Public::prepare_content_for_tts()
S
66 1 8
Mementor_TTS_Admin::register_settings_sections()
S
91 1 2
Mementor_Text_To_Speech::define_admin_hooks()
S
66 1 8
Mementor_Text_To_Speech::run()
S
82 1 3
Mementor_TTS_Public::clear_dynamic_css_cache()
S
81 1 3
Mementor_TTS_Shortcodes::__construct()
S
77 1 4
Mementor_TTS_Speech_Builder::__construct()
S
75 1 4
Mementor_TTS_Processor::update_post_audio_meta()
S
72 1 5
Mementor_TTS_SSML::split_into_sentences()
S
74 1 4
Mementor_TTS_SSML::is_question()
S
77 1 3
Mementor_TTS_Admin::display_plugin_admin_affiliate()
S
80 1 3
mementor_tts_sanitize_boolean()
S
82 1 3
Mementor_TTS_Loader::__construct()
S
77 1 4
Mementor_TTS_Admin::sanitize_max_width()
S
75 1 4
Mementor_TTS_Admin::display_settings_page()
S
80 1 3
Mementor_TTS_Pro_Bridge::__construct()
S
79 1 3
Mementor_TTS_Admin::sanitize_api_timeout()
S
74 1 4
Mementor_TTS_Processor::add_to_media_library()
S
83 1 3
Mementor_Text_To_Speech::get_plugin_name()
S
82 1 3
Mementor_TTS_Admin::sanitize_option_integer()
S
80 1 3
Mementor_TTS_SSML::add_emphasis()
S
78 1 3
Mementor_Text_To_Speech::get_loader()
S
82 1 3
mementor_tts_deactivate()
S
83 1 3
Mementor_TTS_Admin::register_ajax_actions()
S
79 1 3
Mementor_TTS_ElevenLabs_API::reset_instance()
S
73 1 5
Mementor_TTS_Admin::display_content_page()
S
80 1 3
Mementor_Text_To_Speech::register_blocks()
S
91 1 2
Mementor_TTS_Admin::sanitize_margin()
S
75 1 4
Mementor_TTS_Admin::display_voices_page()
S
80 1 3
Mementor_TTS_Admin::display_statistics_page()
S
80 1 3
Mementor_TTS_Public::raw_shortcode()
S
72 1 5
Mementor_TTS_SSML::add_phoneme()
S
77 1 3
Mementor_TTS_Admin::display_license_page()
S
80 1 3
Mementor_TTS_Admin::display_admin_notices()
S
91 1 2
Mementor_TTS_Loader::add_filter()
S
77 1 3
Mementor_TTS_Admin::adjust_brightness()
S
62 1 10
Mementor_TTS_SSML::add_break()
S
78 1 3
Mementor_TTS_Admin::display_player_page()
S
80 1 3
Mementor_TTS_SSML::add_sub()
S
78 1 3
Mementor_TTS_Public::add_safe_style_css()
S
77 1 4
Mementor_Text_To_Speech::load_error_handler()
S
91 1 2
mementor_tts_plugin_init()
S
77 1 4
Mementor_TTS_ElevenLabs_API::get_api_key()
S
80 1 3
Mementor_TTS_Admin::sanitize_retry_attempts()
S
74 1 4
Mementor_Text_To_Speech::get_version()
S
82 1 3
Mementor_TTS_ElevenLabs_API::__wakeup()
S
80 1 3
Mementor_TTS_Loader::add_action()
S
77 1 3
Mementor_TTS_ElevenLabs_API::format_api_error_response()
S
70 1 7
Mementor_TTS_Admin::sanitize_option_text()
S
80 1 3
Mementor_TTS_SSML::format_date()
S
78 1 3
Mementor_TTS_Admin::display_advanced_page()
S
80 1 3
Mementor_TTS_ElevenLabs_API::__clone()
S
91 1 2
Mementor_TTS_i18n::load_plugin_textdomain()
S
69 1 7
Mementor_TTS_Loader::add()
S
64 1 10