Code Analysis: AltTextLab 1.1.3

Function Rating Maintainability Complexity Lines of code
AltTextLab_Post::enrich_post_content()
D
21
53 183
AltTextLab_Post::collect_list_enrich_post_id()
D
26
41 135
AltTextLab_Attachment::is_attachment_eligible()
C
33 25 93
AltTextLab_Attachment::generate_alt()
B
34 21 87
AltTextLab_Post::get_media_ids_from_post()
B
37 20 66
AltTextLab_Post::update_product_images()
B
38 19 68
AltTextLab_Attachment::alttextlab_bulk_generate()
B
34 15 92
AltTextLab_Post::post_bulk_generate_alt_text_ajax()
B
36 15 76
AltTextLab_WC_Integration::get_product_info()
A
42 15 51
AltTextLab_API::generate_alt_text()
A
35 11 99
AltTextLab_Post::bulk_generate_meta_box_callback()
A
34 5 138
AltTextLab_SEO_Keywords::get_seo_keywords()
A
47 11 36
AltTextLab_WC_Integration::get_attribute_value_if_exist()
A
53 11 21
AltTextLab_Attachment::ajax_single_generate()
A
48 10 33
AltTextLab_SEO_Keywords::yoast_seo_keywords()
A
46 9 41
AltTextLab_Post::collect_product_images_id()
A
51 10 25
AltTextLab_Attachment::alttextlab_bulk_generate_for_image()
A
47 9 36
AltTextLab_Settings::register_settings()
A
34 1 155
AltTextLab_Attachment::media_alt_filter_handler()
A
50 9 27
AltTextLab_Utility::supported_languages()
A
29 1 139
AltTextLab_Attachment_Helper::lookup_attachment_id()
A
43 7 49
AltTextLab_SEO_Keywords::theseoframework_seo_keywords()
A
50 8 30
AltTextLab_Attachment_Helper::get_attachment_size()
A
54 8 20
AltTextLab_SEO_Keywords::aio_seo_keywords()
S
51 7 26
AltTextLab_Settings::remove_api_key_missing_param()
S
56 7 17
AltTextLab_Attachment::ajax_edit_history()
S
49 6 30
AltTextLab_Attachment::action_single_generate()
S
59 7 14
AltTextLab_Post::display_enrich_post_content_success_notice()
S
55 6 19
AltTextLab_Settings::save_api_key()
S
50 5 30
AltTextLab_SEO_Keywords::squirrly_seo_keywords()
S
54 5 22
AltTextLab_SEO_Keywords::rankmath_seo_keywords()
S
55 5 20
AltTextLab_SEO_Keywords::seopress_seo_keywords()
S
55 5 20
AltTextLab_SEO_Keywords::smartcrawl_seo_keywords()
S
57 5 18
AltTextLab_API::get_account()
S
51 4 27
AltTextLab_Settings::register_settings_pages()
S
46 2 47
AltTextLab_Activator::activate()
S
56 4 16
AltTextLab::enqueue_meta_box_styles()
S
63 4 11
AltTextLab_Attachment::ajax_check_attachment_eligibility()
S
55 3 20
AltTextLab_Post::bulk_select_action_handler()
S
55 3 19
AltTextLab::define_admin_hooks()
S
44 1 45
AltTextLab_Settings::display_api_key_missing_notice()
S
59 3 15
AltTextLab_Settings::handleReviewBannerSettings()
S
62 4 10
AltTextLab_SEO_Keywords::post_title_seo_keywords()
S
60 3 13
AltTextLab_Post::register_bulk_action()
S
61 3 11
AltTextLab_Admin::enqueue_scripts()
S
50 2 26
AltTextLab_Attachment::render_bulk_select_notice()
S
57 2 18
AltTextLab_Attachment_Helper::lang_for_attachment()
S
68 3 7
AltTextLab_Admin::display_setup_notice()
S
59 2 15
AltTextLab_Settings::clear_error_logs()
S
64 3 10
AltTextLab_Settings::display_notice_api_key_invalid()
S
59 2 15
AltTextLab_Settings::load_account()
S
59 2 15
AltTextLab_WC_Integration::get_product_title_if_exist()
S
73 3 4
AltTextLab_Loader::run()
S
66 3 8
AltTextLab_Settings::display_tokens_notice()
S
60 2 14
AltTextLab_Settings::display_notice_try_later()
S
60 2 14
AltTextLab_Post::add_bulk_generate_meta_box()
S
64 2 11
AltTextLab::load_dependencies()
S
58 1 16
AltTextLab_Database::create_or_update_table()
S
59 1 16
AltTextLab_Logger::log_error()
S
59 1 15
AltTextLab_Attachment::bulk_select_action_handler()
S
64 2 9
AltTextLab_Database::check_database_schema()
S
68 2 7
AltTextLab_Attachment::add_attachment()
S
71 2 6
AltTextLab::__construct()
S
65 2 10
AltTextLab_Utility::has_theseoframework()
S
79 2 3
AltTextLab_Utility::is_publicly_accessible()
S
68 2 7
AltTextLab_Attachment::add_media_alt_filter()
S
62 2 10
AltTextLab_Settings::sanitize_model_name_option()
S
74 2 4
AltTextLab_Settings::sanitize_yes_no_checkbox()
S
79 2 3
AltTextLab_Utility::has_yoast()
S
78 2 3
AltTextLab_Settings::sanitize_language_option()
S
74 2 4
AltTextLab_WC_Integration::get_brand_if_exist()
S
73 2 4
AltTextLab_Storage::record_alttextlab_asset()
S
62 1 13
AltTextLab_Settings::register_account_settings()
S
64 1 11
AltTextLab_Admin::enqueue_styles()
S
77 1 3
AltTextLab_Settings::render_account_settings_page()
S
75 1 4
AltTextLab::get_plugin_name()
S
82 1 3
AltTextLab_Utility::get_review_url()
S
77 1 4
AltTextLab_Loader::__construct()
S
77 1 4
AltTextLab_Settings::enqueue_styles()
S
77 1 3
AltTextLab_Post::add_bulk_select_action()
S
72 1 5
AltTextLab_Utility::supported_model_names()
S
65 1 10
AltTextLab_Utility::has_seopress()
S
80 1 3
AltTextLab_Loader::add()
S
64 1 10
AltTextLab_Post::on_post_deleted()
S
76 1 4
AltTextLab_API::__construct()
S
76 1 4
AltTextLab_Attachment::add_bulk_select_action()
S
72 1 5
alttextlab_deactivate()
S
100 1 2
AltTextLab_Utility::get_credits_url()
S
77 1 4
AltTextLab_Loader::add_action()
S
77 1 3
AltTextLab_Loader::add_filter()
S
77 1 3
AltTextLab::get_version()
S
82 1 3
AltTextLab_Utility::has_smartcrawl()
S
74 1 4
alttextlab_run()
S
77 1 4
AltTextLab_Logger::get_error_logs()
S
79 1 3
AltTextLab_Utility::get_api_key()
S
75 1 4
AltTextLab_Settings::render_settings_page()
S
75 1 4
AltTextLab_Settings::render_history_page()
S
75 1 4
AltTextLab_WC_Integration::filtered_ecomm_data()
S
75 1 4
AltTextLab::run()
S
82 1 3
AltTextLab_Utility::has_aioseo()
S
80 1 3
AltTextLab_Admin::__construct()
S
77 1 4
AltTextLab_Settings::render_bulk_generate_page()
S
75 1 4
alttextlab_activate()
S
76 1 4
AltTextLab_Utility::has_rankmath()
S
80 1 3
AltTextLab_Settings::expire_insufficient_credits_notice()
S
67 1 8
AltTextLab_Utility::has_woocommerce()
S
80 1 3
AltTextLab_Storage::remove_alttextlab_asset()
S
71 1 5
AltTextLab_Utility::has_squirrly()
S
80 1 3
AltTextLab_Settings::__construct()
S
81 1 3