Code Analysis: DCO Comment Attachment 2.4.0

Function Rating Maintainability Complexity Lines of code
DCO_CA::form_element()
B
35 15 97
DCO_CA::check_attachment()
A
40 13 66
DCO_CA_Base::get_attachment_preview()
A
42 13 49
DCO_CA_Base::get_allowed_file_types()
A
39 11 77
DCO_CA_Settings::field_render()
A
48 10 33
DCO_CA::generate_attachment_markup()
A
47 9 35
DCO_CA::save_attachment()
A
45 7 43
DCO_CA_Settings::field_allowed_file_types_render()
A
47 7 34
DCO_CA_Settings::get_fields()
S
34 1 120
DCO_CA_Admin::delete_attachment_bulk_action()
S
49 7 29
DCO_CA_Admin::delete_attachment_action()
S
50 7 25
DCO_CA::filter_upload_mimes()
S
53 7 24
DCO_CA_Settings::register_settings()
S
49 6 35
DCO_CA::init_hooks()
S
52 6 22
DCO_CA_Admin::delete_attachment_ajax()
S
54 6 19
DCO_CA_Admin::delete_attachment()
S
57 6 19
DCO_CA::dco_ca_shortcode()
S
49 5 33
DCO_CA_Base::get_embed_type()
S
58 5 16
DCO_CA_Admin::update_attachment()
S
57 5 16
DCO_CA_Base::has_attachment()
S
60 5 15
DCO_CA_Admin::show_bulk_action_message()
S
63 6 9
DCO_CA_Base::get_max_upload_size()
S
61 5 13
DCO_CA_Base::activate_lightbox()
S
56 4 17
DCO_CA_Admin::render_attachment_metabox()
S
52 3 30
DCO_CA_Admin::update_rest_api_attachment()
S
62 4 11
DCO_CA::display_attachment()
S
62 4 11
DCO_CA_Settings::field_thumbnail_size_render()
S
53 3 21
DCO_CA_Admin::enqueue_scripts()
S
54 3 19
DCO_CA::add_rest_api_links()
S
58 3 17
DCO_CA::enqueue_scripts()
S
58 3 16
DCO_CA::is_user_can_upload()
S
64 4 10
DCO_CA::get_gallery_image_size()
S
65 4 9
DCO_CA_Admin::add_attachments_to_new_comment_email()
S
62 3 11
DCO_CA_Admin::init_hooks()
S
53 2 20
DCO_CA_Settings::get_thumbnail_sizes()
S
58 2 16
DCO_CA_Base::assign_attachment()
S
67 3 7
DCO_CA::get_upload_error()
S
59 2 14
DCO_CA_Admin::add_comment_action_links()
S
61 2 11
DCO_CA::add_attachment_field()
S
59 1 17
DCO_CA_Settings::field_radio_render()
S
61 2 10
wp_get_additional_image_sizes()
S
70 2 7
dco_ca()
S
74 2 4
DCO_CA_Base::get_attachment_id()
S
68 2 7
DCO_CA::approve_comment()
S
69 2 7
DCO_CA_Base::get_default_options()
S
67 2 8
DCO_CA::is_comments_used()
S
79 2 3
DCO_CA::is_attachment_field_enabled()
S
68 2 7
DCO_CA::display_attachment_error()
S
63 2 9
DCO_CA_Base::get_option()
S
70 2 6
DCO_CA::save_rest_api_attachment()
S
71 2 6
DCO_CA_Settings::render()
S
63 1 14
DCO_CA_Admin::add_plugin_links()
S
64 1 11
DCO_CA_Admin::__construct()
S
79 1 3
DCO_CA::__construct()
S
79 1 3
DCO_CA_Base::get_options()
S
82 1 3
DCO_CA::get_upload_field_name()
S
82 1 3
DCO_CA::disable_gallery_image_size()
S
75 1 4
DCO_CA_Base::get_attachment_meta_key()
S
82 1 3
DCO_CA_Settings::mb_ucfirst()
S
73 1 4
DCO_CA_Admin::add_attachment_metabox()
S
77 1 3
DCO_CA::disable_filter_upload()
S
78 1 3
DCO_CA_Settings::create_menu()
S
77 1 3
DCO_CA_Settings::field_checkbox_render()
S
73 1 4
DCO_CA_Settings::__construct()
S
79 1 3
DCO_CA_Admin::add_comments_bulk_actions()
S
75 1 4
DCO_CA_Base::get_image_exts()
S
78 1 3
DCO_CA::enable_gallery_image_size()
S
75 1 4
DCO_CA_Base::__construct()
S
79 1 3
DCO_CA_Base::set_options()
S
72 1 5
DCO_CA::enable_filter_upload()
S
78 1 3
DCO_CA_Settings::get_sections()
S
64 1 10
DCO_CA_Base::init_hooks()
S
77 1 4
DCO_CA::autoembed_links()
S
79 1 3
DCO_CA::is_attachment_displayed()
S
79 1 3
DCO_CA_Admin::add_removable_query_args()
S
77 1 4
DCO_CA_Admin::unassign_attachment()
S
75 1 4
DCO_CA_Settings::field_max_upload_size_render()
S
72 1 4
DCO_CA_Settings::section_render()
S
91 1 2
DCO_CA::is_attachment_checked()
S
82 1 3
DCO_CA_Settings::init_hooks()
S
72 1 5