Code Analysis: Product File Upload for WooCommerce 2.2.0

Function Rating Maintainability Complexity Lines of code
Superaddons_Check_Purchase_Code::check_purchase_code()
A
45 9 39
Superaddon_Settings_Tab_Products_Upload::get_settings()
A
40 6 75
Superaddons_Products_Uploads_Frontend::superaddons_products_uploads()
A
46 7 33
Superaddons_Products_Uploads_Frontend::save_meta_box()
A
56 8 17
Superaddons_Products_Uploads_Frontend::add_upload()
S
48 6 36
Superaddons_Check_Purchase_Code::check_purchase_remove_code_ajax()
S
47 6 35
Superaddons_Products_Uploads_Frontend::add_to_cart_min()
S
53 6 21
Superaddons_Products_Uploads_Frontend::get_ensure_upload_dir()
S
49 4 34
Superaddons_Products_Uploads_Frontend::woocommerce_order_item_display_meta_value()
S
55 4 19
Superaddons_Products_Uploads_Frontend::get_blacklist_file_ext()
S
45 2 49
Superaddons_Products_Uploads_Frontend::save_files_product_field()
S
59 4 15
Superaddons_Products_Uploads_Frontend::superaddons_products_uploads_remove()
S
57 4 15
Superaddons_Products_Uploads_Frontend::filter_woocommerce_get_item_data()
S
57 4 13
Superaddon_Settings_Tab_Products_Upload::update_settings()
S
61 4 12
Superaddons_Products_Uploads_Frontend::woocommerce_order_item_meta_end()
S
54 3 18
Superaddons_Check_Purchase_Code::add_pro()
S
59 3 14
Superaddons_Products_Uploads_Frontend::is_file_type_valid()
S
61 3 11
Superaddons_Check_Purchase_Code::add_action()
S
56 2 16
Superaddons_Check_Purchase_Code::add_head()
S
100 1 29
Superaddons_Check_Purchase_Code::check_purchase_code_ajax()
S
62 2 11
Superaddons_Products_Uploads_Frontend::__construct()
S
55 1 18
Superaddons_Check_Purchase_Code::__construct()
S
56 1 17
Superaddons_Products_Uploads_Frontend::backend_form_meta()
S
58 1 17
Superaddons_Products_Uploads_Frontend::wdm_get_cart_items_from_session()
S
71 2 6
Superaddons_Check_Purchase_Code::resolve_root_domain()
S
67 2 7
Superaddons_Products_Uploads_Frontend::is_file_size_valid()
S
68 2 6
Superaddon_Settings_Tab_Products_Upload::get_upload_file_size_options()
S
64 2 9
Superaddons_Products_Uploads_Frontend::woocommerce_order_item_display_meta_key()
S
66 2 7
Superaddon_Products_Upload_Init::__construct()
S
60 1 14
Superaddons_Products_Uploads_Frontend::add_lib()
S
69 1 5
Superaddons_Products_Uploads_Frontend::get_upload_dir()
S
70 1 6
Superaddons_Check_Purchase_Code::add_js()
S
78 1 3
Superaddons_Products_Uploads_Frontend::wdm_add_values_to_order_item_meta()
S
75 1 4
Superaddons_Products_Uploads_Frontend::add_manage_site_meta_box()
S
65 1 10
Superaddons_Products_Uploads_Frontend::get_file_url()
S
69 1 6
Superaddon_Settings_Tab_Products_Upload::add_settings_tab()
S
75 1 4
Superaddon_Settings_Tab_Products_Upload::__construct()
S
72 1 5