Code Analysis: WP Attachments 5.1.1

Function Rating Maintainability Complexity Lines of code
wpatt_plugin_options()
D
25
30 165
wpatt_content_filter()
C
32 25 93
WP_Attachments::printMetaBox()
A
32 7 133
wpa_is_valid_download()
A
51 9 24
wpa_media_custom_columns()
A
45 7 40
wpa_action_init()
A
51 8 24
WP_Attachments::getAttachmentPreview()
S
52 7 22
WP_Attachments::wp_ajax_wpa_realign()
S
53 7 21
WP_Attachments::wp_ajax_wpa_attach_media()
S
53 5 23
WP_Attachments::print_single_attachment_item()
S
42 2 67
wpa_unattach_do_it()
S
57 5 15
wpa_register_initial_settings()
S
60 5 14
wpatt_format_bytes()
S
60 5 13
WP_Attachments::addCustomStyles()
S
59 1 59
WP_Attachments::add_meta_boxes()
S
55 3 20
WP_Attachments::getFileIcon()
S
55 3 19
WP_Attachments::formatBytes()
S
62 4 10
WPA_Download_Counter::handle_column_orderby()
S
65 3 9
WPA_Download_Counter::show_download_column()
S
63 2 11
WP_Attachments::admin_enqueue_scripts()
S
52 1 26
wpa_custom_admin_css()
S
64 1 22
WP_Attachments::getInstance()
S
72 2 5
wpa_unattach_init()
S
69 2 6
WP_Attachments::__construct()
S
75 2 4
wpa_get_downloads()
S
72 2 5
WP_Attachments::formatDate()
S
65 2 8
WPA_Download_Counter::register_sortable_column()
S
77 1 4
WPA_Download_Counter::__construct()
S
67 1 7
WPA_Download_Counter::add_download_column()
S
75 1 4
WP_Attachments::__clone()
S
80 1 3
wpa_save_download_control()
S
68 1 7
WPA_Download_Counter::admin_column_css()
S
74 1 7
wpa_upload_columns()
S
72 1 5