Code Analysis: Image Credit Companion 1.0.0

Function Rating Maintainability Complexity Lines of code
EIAM\Admin::display_sources_page()
B
30 12 152
EIAM\Settings::register_settings()
B
25
4 269
EIAM\Repository::get_all_images()
B
34 13 95
EIAM\Renderer::render_image_sources()
B
39 15 62
EIAM\Renderer::render_template()
B
43 16 46
EIAM\Plugin::init_components()
A
47 16 34
EIAM\Frontend::image_sources_shortcode()
A
42 14 50
EIAM\Frontend::render_theme_compatible_sources()
A
41 13 57
EIAM\Settings::sanitize_settings()
A
39 12 61
Image_Credit_Companion::init_plugin()
A
44 12 46
EIAM\Frontend::render_image_sources_block()
A
45 12 41
EIAM\Plugin::scan_post_images()
A
50 13 26
EIAM\REST::bulk_update_metadata()
A
40 10 62
EIAM\Frontend::auto_footer_injection()
A
45 11 41
eiam_autoloader()
A
50 10 28
EIAM\Renderer::format_image_attribution()
A
46 9 41
EIAM\Frontend::enqueue_assets()
A
54 10 21
EIAM\Plugin::save_attachment_fields()
A
51 9 26
EIAM\Admin::handle_bulk_actions()
A
51 9 23
EIAM\REST::update_attachment_meta()
A
44 7 49
EIAM\Repository::get_images_count()
A
41 6 59
EIAM\Plugin::apply_default_values_to_upload()
A
50 8 29
EIAM\Frontend::debug_shortcode()
A
49 8 27
EIAM\Admin_List_Table::column_usage()
A
46 7 39
EIAM\Admin_List_Table::prepare_items()
A
47 7 36
EIAM\Admin_List_Table::column_default()
A
55 8 20
EIAM\Repository::update_attachment_metadata()
A
49 7 32
EIAM\Frontend::test_shortcode()
A
48 7 31
EIAM\Admin::admin_notices()
S
52 7 28
EIAM\Usage_Scanner::extract_images_from_block()
S
51 7 26
EIAM\Plugin::scan_all_posts()
S
54 7 20
EIAM\Frontend::register_blocks()
S
55 7 18
EIAM\REST::register_routes()
S
37 1 107
EIAM\Usage_Scanner::get_attachment_id_from_url()
S
50 6 31
EIAM\Admin_List_Table::column_license()
S
53 6 22
EIAM\Usage_Scanner::get_attachment_id_from_img_tag()
S
58 6 15
EIAM\Usage_Scanner::extract_images_from_html()
S
54 5 21
EIAM\Plugin::add_capabilities()
S
55 5 20
EIAM\Repository::update_post_usage()
S
49 4 33
EIAM\Renderer::get_image_status()
S
57 5 17
EIAM\Usage_Scanner::remove_duplicate_images()
S
58 5 15
eiam_is_image_complete()
S
59 5 14
EIAM\Frontend::is_image_complete()
S
59 5 14
EIAM\Renderer::is_image_complete()
S
60 5 13
EIAM\REST::get_post_images()
S
50 4 28
EIAM\Repository::get_post_images()
S
48 3 39
EIAM\Admin::show_setup_notice()
S
51 4 24
EIAM\Settings::license_type_field_callback()
S
46 3 39
EIAM\Renderer::render_inline()
S
53 4 22
EIAM\REST::get_attachment_meta()
S
54 4 21
EIAM\Admin_List_Table::column_file()
S
55 4 20
EIAM\Admin_List_Table::column_source()
S
56 4 17
EIAM\Usage_Scanner::extract_images_from_gallery_block()
S
58 4 16
EIAM\Activator::add_capabilities()
S
58 4 16
EIAM\Renderer::filter_empty_attributions()
S
65 5 9
Image_Credit_Companion::activate()
S
59 4 14
EIAM\Renderer::build_attributes()
S
60 4 13
EIAM\Admin_List_Table::column_author()
S
61 4 11
EIAM\Admin_List_Table::no_items()
S
53 3 23
EIAM\Plugin::add_attachment_fields()
S
48 2 37
EIAM\Settings::post_types_field_callback()
S
56 3 17
EIAM\Settings::custom_colors_callback()
S
48 2 32
EIAM\Settings::select_field_callback()
S
57 3 16
EIAM\Renderer::locate_template()
S
59 3 15
EIAM\Admin_List_Table::column_last_seen()
S
58 3 14
EIAM\Settings::template_field_callback()
S
52 2 28
EIAM\Admin::add_admin_menu()
S
53 2 28
EIAM\Admin::enqueue_admin_assets()
S
51 2 28
EIAM\Plugin::enqueue_block_editor_assets()
S
46 1 42
EIAM\Usage_Scanner::extract_image_from_media_text_block()
S
62 3 11
EIAM\Usage_Scanner::extract_image_from_cover_block()
S
62 3 11
EIAM\Usage_Scanner::extract_image_from_image_block()
S
62 3 11
EIAM\Usage_Scanner::get_image_usage_stats()
S
54 2 23
EIAM\Admin_List_Table::extra_tablenav()
S
55 2 23
EIAM\Plugin::enqueue_media_scripts()
S
55 2 20
EIAM\Activator::set_default_options()
S
55 2 19
EIAM\Settings::display_settings_page()
S
52 1 33
EIAM\Usage_Scanner::get_posts_using_image()
S
59 2 16
EIAM\Renderer::get_images_for_scope()
S
64 3 10
EIAM\Admin::__construct()
S
63 3 10
EIAM\Frontend::__construct()
S
68 3 7
EIAM\Admin_List_Table::get_orderby()
S
70 3 5
EIAM\Admin_List_Table::get_order()
S
73 3 4
EIAM\Admin_List_Table::display_tablenav()
S
61 2 15
EIAM\Plugin::init()
S
69 3 7
EIAM\REST::check_edit_permission()
S
78 3 3
EIAM\Plugin::render_attribution_helper_field()
S
54 1 29
EIAM\Repository::get_attachment_metadata()
S
59 2 14
EIAM\Repository::get_usage_statistics()
S
52 1 29
EIAM\Settings::checkbox_field_callback()
S
61 2 12
EIAM\Settings::url_field_callback()
S
62 2 12
EIAM\Settings::textarea_field_callback()
S
61 2 12
EIAM\Settings::text_field_callback()
S
62 2 12
EIAM\Renderer::get_image_status_badge()
S
61 2 11
EIAM\Activator::create_tables()
S
56 1 22
EIAM\Frontend::init_auto_footer()
S
68 2 7
EIAM\Plugin::instance()
S
71 2 6
EIAM\Usage_Scanner::extract_images_from_blocks()
S
67 2 8
EIAM\Admin_List_Table::get_search_query()
S
77 2 3
EIAM\Plugin::bust_cache_on_option_update()
S
74 2 5
EIAM\Admin_List_Table::get_filter_query()
S
77 2 3
Image_Credit_Companion::instance()
S
71 2 6
EIAM\Renderer::get_image_thumbnail()
S
63 2 10
EIAM\REST::check_view_permission()
S
79 2 3
EIAM\Plugin::bust_cache_on_meta_update()
S
73 2 5
EIAM\Settings::auto_footer_section_callback()
S
60 1 15
EIAM\REST::check_manage_permission()
S
79 2 3
EIAM\Admin_List_Table::column_thumbnail()
S
64 2 9
EIAM\Plugin::init_hooks()
S
58 1 14
EIAM\Settings::output_section_callback()
S
63 1 12
EIAM\Admin_List_Table::get_columns()
S
61 1 12
eiam_get_all_image_sources()
S
76 1 4
EIAM\Frontend::get_post_image_sources()
S
76 1 4
EIAM\Settings::update_settings()
S
75 1 4
EIAM\Plugin::get_frontend()
S
82 1 3
Image_Credit_Companion::__construct()
S
82 1 3
EIAM\Plugin::get_usage_scanner()
S
82 1 3
EIAM\Repository::delete_post_usage()
S
68 1 8
EIAM\Admin_List_Table::get_bulk_actions()
S
70 1 6
EIAM\Plugin::get_supported_post_types()
S
78 1 3
Image_Credit_Companion::wp_version_notice()
S
66 1 9
EIAM\Frontend::register_shortcodes()
S
66 1 8
Image_Credit_Companion::deactivate()
S
80 1 3
EIAM\Settings::requirements_section_callback()
S
78 1 3
EIAM\Deactivator::flush_rewrite_rules()
S
81 1 3
EIAM\Admin_List_Table::__construct()
S
67 1 8
EIAM\Settings::__construct()
S
79 1 3
EIAM\Renderer::__construct()
S
80 1 3
EIAM\Frontend::post_image_sources_shortcode()
S
75 1 4
EIAM\Admin::display_settings_page()
S
77 1 4
EIAM\Activator::flush_rewrite_rules()
S
81 1 3
EIAM\REST::__construct()
S
79 1 3
EIAM\Plugin::get_settings()
S
82 1 3
EIAM\Usage_Scanner::scan_post_content()
S
65 1 9
EIAM\Repository::__construct()
S
76 1 4
EIAM\Plugin::load_textdomain()
S
91 1 2
EIAM\Plugin::cleanup_post_usage()
S
81 1 3
EIAM\Settings::get_settings()
S
75 1 4
Image_Credit_Companion::php_version_notice()
S
66 1 9
eiam_get_post_image_sources()
S
76 1 4
EIAM\Repository::delete_attachment_usage()
S
68 1 8
eiam_format_image_attribution()
S
75 1 4
EIAM\Settings::get_setting()
S
75 1 4
EIAM\REST::get_usage_stats()
S
73 1 5
EIAM\Deactivator::clear_cache()
S
72 1 5
EIAM\Plugin::get_rest()
S
82 1 3
EIAM\Plugin::get_admin()
S
82 1 3
EIAM\Plugin::bust_all_cache()
S
75 1 4
EIAM\Admin_List_Table::column_cb()
S
72 1 6
EIAM\Repository::cleanup_old_usage()
S
64 1 10
EIAM\Admin_List_Table::get_primary_column_name()
S
82 1 3
EIAM\Deactivator::deactivate()
S
77 1 4
EIAM\Admin_List_Table::get_sortable_columns()
S
67 1 8
EIAM\Settings::defaults_section_callback()
S
78 1 3
EIAM\Plugin::cleanup_attachment_usage()
S
81 1 3
EIAM\Plugin::get_repository()
S
82 1 3
EIAM\Plugin::__construct()
S
91 1 2
EIAM\Plugin::get_renderer()
S
82 1 3
EIAM\Frontend::get_all_image_sources()
S
74 1 4
eiam_render_image_sources()
S
76 1 4
EIAM\Activator::activate()
S
73 1 6
EIAM\Plugin::bust_post_cache()
S
79 1 3
EIAM\Settings::data_section_callback()
S
78 1 3
EIAM\Frontend::init()
S
75 1 5
Image_Credit_Companion::init_hooks()
S
72 1 5
eiam_get_usage_statistics()
S
77 1 4