Code Analysis: Order Attachments for WooCommerce 2.5.1

Function Rating Maintainability Complexity Lines of code
DirectSoftware\WCOA\Utils\Ajax::add_attachment()
A
40 11 67
DirectSoftware\WCOA\Common\Options::validate()
A
50 10 28
DirectSoftware\WCOA\Attachments\Attachment::get_url()
A
47 7 38
DirectSoftware\WCOA\Attachments\Attachment::upload()
S
44 5 46
DirectSoftware\WCOA\Functions\DisplayAllAttachmentsAsShortcode::__invoke()
S
45 5 45
DirectSoftware\WCOA\Utils\Ajax::send_email_to_customer()
S
49 5 33
DirectSoftware\WCOA\Attachments\DataTable::column_default()
S
56 6 16
DirectSoftware\WCOA\Kernel::attachment_details()
S
50 5 28
DirectSoftware\WCOA\Attachments\Attachment::prepare_list()
S
52 4 26
DirectSoftware\WCOA\Attachments\Attachment::get_all_by_user()
S
50 3 39
DirectSoftware\WCOA\Attachments\Attachment::get_all()
S
51 3 33
DirectSoftware\WCOA\Attachments\Attachment::get_attachment_prefix()
S
60 4 13
DirectSoftware\WCOA\Attachments\Attachment::get_all_by_order()
S
54 3 25
DirectSoftware\WCOA\Attachments\Attachment::prepare_customer_list()
S
55 3 22
DirectSoftware\WCOA\Attachments\Attachment::get_public_url()
S
53 3 22
DirectSoftware\WCOA\Attachments\Attachment::save()
S
57 3 17
DirectSoftware\WCOA\Attachments\DataTable::usort_reorder()
S
67 4 6
DirectSoftware\WCOA\Kernel::init_meta_box()
S
59 3 14
DirectSoftware\WCOA\Common\Options::option_input_text()
S
58 3 14
DirectSoftware\WCOA\Kernel::delete_attachment()
S
60 3 12
DirectSoftware\WCOA\Common\Notification::prepare_email_content()
S
63 3 11
DirectSoftware\WCOA\Common\Notification::prepare_email_header()
S
66 3 8
DirectSoftware\WCOA\Utils\JsonResponse::jsonSerialize()
S
66 3 8
DirectSoftware\WCOA\Utils\JsonResponse::toArray()
S
70 3 6
DirectSoftware\WCOA\Attachments\RedirectionHandler::initialize_template()
S
68 3 7
DirectSoftware\WCOA\Common\Notification::prepare_email_button()
S
66 3 8
DirectSoftware\WCOA\Utils\JsonResponse::pure()
S
71 3 5
DirectSoftware\WCOA\Common\Options::option_enable_logging()
S
64 3 9
DirectSoftware\WCOA\Utils\MyAccount::get_attachments_endpoint_url()
S
65 3 9
DirectSoftware\WCOA\Common\Options::option_display_attachment_name()
S
64 3 9
DirectSoftware\WCOA\Common\Options::option_email_enabled()
S
64 3 9
DirectSoftware\WCOA\Common\Options::option_completed_email_enabled()
S
64 3 9
DirectSoftware\WCOA\Kernel::verify_hpos()
S
65 3 10
DirectSoftware\WCOA\Kernel::init()
S
61 2 14
DirectSoftware\WCOA\Attachments\DataTable::prepare_items()
S
55 1 19
DirectSoftware\WCOA\Common\Notification::get_email_html()
S
57 1 16
DirectSoftware\WCOA\Common\Options::load_fields()
S
55 1 16
DirectSoftware\WCOA\Utils\Logger::debug()
S
72 2 6
DirectSoftware\WCOA\Attachments\Data\BaseFile::__construct()
S
69 2 6
DirectSoftware\WCOA\Common\Options::get()
S
67 2 8
DirectSoftware\WCOA\Kernel::getInstance()
S
69 2 7
DirectSoftware\WCOA\Utils\Logger::getInstance()
S
69 2 7
DirectSoftware\WCOA\Utils\Logger::notice()
S
72 2 6
DirectSoftware\WCOA\Utils\Logger::error()
S
72 2 6
DirectSoftware\WCOA\Attachments\RedirectionHandler::getInstance()
S
69 2 7
DirectSoftware\WCOA\Utils\Ajax::getInstance()
S
69 2 7
DirectSoftware\WCOA\Utils\FileUtils::checkType()
S
71 2 6
DirectSoftware\WCOA\Utils\Logger::alert()
S
72 2 6
DirectSoftware\WCOA\Common\Options::__construct()
S
71 2 5
DirectSoftware\WCOA\Utils\Logger::log()
S
71 2 6
DirectSoftware\WCOA\Utils\Logger::info()
S
72 2 6
DirectSoftware\WCOA\Common\Options::getInstance()
S
69 2 7
DirectSoftware\WCOA\Utils\Logger::warning()
S
72 2 6
DirectSoftware\WCOA\Utils\Logger::critical()
S
72 2 6
DirectSoftware\WCOA\Utils\Logger::emergency()
S
72 2 6
DirectSoftware\WCOA\Utils\MyAccount::getInstance()
S
69 2 7
DirectSoftware\WCOA\Attachments\Attachment::get_list()
S
69 2 7
DirectSoftware\WCOA\Kernel::__construct()
S
59 1 14
DirectSoftware\WCOA\Common\Options::params_attachment_prefix()
S
61 1 12
DirectSoftware\WCOA\Common\Options::params_email_content()
S
61 1 12
DirectSoftware\WCOA\Common\Options::params_email_header()
S
61 1 12
DirectSoftware\WCOA\Kernel::init_menu_page()
S
64 1 11
DirectSoftware\WCOA\Common\Options::params_attachments_endpoint()
S
62 1 11
DirectSoftware\WCOA\Common\Options::params_email_button()
S
62 1 11
DirectSoftware\WCOA\Common\Notification::create_note()
S
75 1 4
DirectSoftware\WCOA\Attachments\Data\AttachmentFile::getId()
S
82 1 3
DirectSoftware\WCOA\Kernel::load_ajax_nonce()
S
74 1 4
DirectSoftware\WCOA\Kernel::notice_success_deleted()
S
74 1 6
DirectSoftware\WCOA\Utils\MyAccount::load_front_css()
S
78 1 3
DirectSoftware\WCOA\Kernel::load_css()
S
68 1 8
DirectSoftware\WCOA\Utils\MyAccount::__construct()
S
65 1 8
DirectSoftware\WCOA\Utils\Ajax::__construct()
S
75 1 4
DirectSoftware\WCOA\Attachments\RedirectionHandler::__construct()
S
72 1 5
DirectSoftware\WCOA\Common\Options::option_display_shortcodes()
S
80 1 3
DirectSoftware\WCOA\Attachments\DataTable::actions()
S
63 1 9
DirectSoftware\WCOA\Attachments\RedirectionHandler::bad_request()
S
73 1 5
wcoa_admin_management_settings()
S
68 1 9
DirectSoftware\WCOA\Kernel::add_menu_page_content()
S
80 1 3
DirectSoftware\WCOA\Attachments\DataTable::get_sortable_columns()
S
67 1 8
DirectSoftware\WCOA\Kernel::plugin_settings_link()
S
69 1 6
DirectSoftware\WCOA\Kernel::add_meta_box_content()
S
80 1 3
DirectSoftware\WCOA\Utils\Logger::initialize()
S
65 1 9
DirectSoftware\WCOA\Utils\Logger::__construct()
S
77 1 4
DirectSoftware\WCOA\Utils\JsonResponse::setSuccess()
S
81 1 3
DirectSoftware\WCOA\Attachments\DataTable::get_columns()
S
64 1 10
DirectSoftware\WCOA\Utils\JsonResponse::__construct()
S
74 1 5
DirectSoftware\WCOA\Attachments\Data\BaseFile::getBasename()
S
82 1 3
DirectSoftware\WCOA\Attachments\RedirectionHandler::redirect()
S
73 1 5
DirectSoftware\WCOA\Kernel::plugin_donate_link()
S
69 1 6
DirectSoftware\WCOA\Kernel::activation_task()
S
77 1 4
DirectSoftware\WCOA\Utils\MyAccount::initialize_template()
S
80 1 3
DirectSoftware\WCOA\Kernel::hpos_is_enabled()
S
82 1 3
DirectSoftware\WCOA\Attachments\DataTable::column_cb()
S
78 1 3
DirectSoftware\WCOA\Attachments\Data\BaseFile::setPrefix()
S
79 1 3
DirectSoftware\WCOA\Utils\MyAccount::whitelist_update()
S
77 1 4
DirectSoftware\WCOA\Attachments\Data\AttachmentFile::getUrl()
S
82 1 3
DirectSoftware\WCOA\Utils\JsonResponse::__toString()
S
80 1 3
DirectSoftware\WCOA\Common\Notification::get_email_header()
S
67 1 8
DirectSoftware\WCOA\Kernel::erase_metadata_after_delete_attachment()
S
71 1 5
wcoa_woocommerce_verification()
S
71 1 7
DirectSoftware\WCOA\Attachments\Data\BaseFile::getName()
S
82 1 3
DirectSoftware\WCOA\Kernel::load_js()
S
68 1 8
DirectSoftware\WCOA\Attachments\Data\BaseFile::getOriginal()
S
82 1 3
wcoa_admin_management_main()
S
70 1 7
DirectSoftware\WCOA\Attachments\Attachment::__construct()
S
70 1 6
DirectSoftware\WCOA\Attachments\Data\BaseFile::getInstance()
S
80 1 3
DirectSoftware\WCOA\Attachments\Data\AttachmentFile::__construct()
S
74 1 5
DirectSoftware\WCOA\Common\Notification::__construct()
S
76 1 4
DirectSoftware\WCOA\Attachments\Data\BaseFile::getTemporaryName()
S
82 1 3
DirectSoftware\WCOA\Utils\MyAccount::initialize_menu()
S
67 1 7
DirectSoftware\WCOA\Common\Notification::send_email()
S
66 1 8
DirectSoftware\WCOA\Attachments\Data\AttachmentFile::getTitle()
S
82 1 3
DirectSoftware\WCOA\Common\Options::section_email_template_description()
S
80 1 3
DirectSoftware\WCOA\Attachments\RedirectionHandler::whitelist_update()
S
77 1 4
DirectSoftware\WCOA\Utils\JsonResponse::setMessage()
S
81 1 3
DirectSoftware\WCOA\Attachments\DataTable::get_table_data()
S
81 1 3
DirectSoftware\WCOA\Utils\MyAccount::add_rule()
S
75 1 4
DirectSoftware\WCOA\Common\Notification::get_email_button()
S
81 1 3
DirectSoftware\WCOA\Attachments\Data\BaseFile::isEmpty()
S
80 1 3
DirectSoftware\WCOA\Common\Notification::get_email_content()
S
67 1 8
DirectSoftware\WCOA\Attachments\RedirectionHandler::add_rule()
S
79 1 3
DirectSoftware\WCOA\Attachments\Data\AttachmentFile::toArray()
S
69 1 7
DirectSoftware\WCOA\Attachments\Data\AttachmentFile::jsonSerialize()
S
81 1 3