Code Analysis: WooCommerce Multiple Free Gift 1.2.3

Function Rating Maintainability Complexity Lines of code
WFG_Admin::wfg_general_settings()
A
48 14 31
WFG_Admin::main_menu_template()
A
45 10 47
WFG_Admin::wfg_criteria_template()
A
46 9 44
WFG_Product_Helper::wfg_counter()
A
53 9 22
WFG_Criteria_Helper::parse_criteria()
A
50 8 29
WFG_Single_Gift::process_wfg_tab()
S
57 7 16
WFG_Single_Gift::wfg_tab_contents()
S
45 4 54
WFG_Frontend::validate_gifts()
S
57 6 18
WFG_Frontend::wfg_ajax_add_free_gifts()
S
57 6 17
WFG_Frontend::check_cart_items()
S
57 6 17
WFG_Admin::ajax_product_list_callback()
S
57 6 15
WFG_Frontend::wfg_item_removed()
S
59 6 14
WFG_Settings_Helper::get()
S
60 6 13
WFG_Frontend::_show_gifts()
S
54 5 21
WFG_Single_Gift::get_ajax_product_selection_design()
S
54 5 19
WFG_Product_Helper::add_free_product_to_cart()
S
55 5 19
WFG_Frontend::display_gifts()
S
56 5 19
WFG_Frontend::__gift_item_in_cart()
S
57 5 17
WFG_Product_Helper::get_gift_products_in_cart()
S
58 5 15
WFG_Frontend::__get_post_id()
S
59 5 14
WFG_Frontend::__remove_gift_products()
S
60 5 12
WFG_Frontend::__hook_global_settings()
S
60 4 14
WFG_Criteria_Helper::get_criteria()
S
61 4 12
WFG_Product_Helper::get_product_details()
S
60 4 12
WFG_Product_Helper::get_main_product_quantity_count()
S
61 4 11
WFG_Product_Helper::get_main_product_count()
S
62 4 11
WFG_Settings_Helper::__init()
S
57 3 17
WFG_Frontend::__get_actual_settings()
S
58 3 16
WFG_Product_Helper::get_cart_products()
S
60 3 13
WFG_Criteria_Helper::arrange_criteria()
S
61 3 13
WFG_Product_Helper::create_gift_variation()
S
51 2 27
WFG_Frontend::_check_global_gift_criteria()
S
65 3 10
WFG_Frontend::wfg_disallow_qty_update()
S
64 3 10
WFG_Product_Helper::crosscheck_gift_items()
S
67 3 8
WFG_Criteria_Helper::get_real_value()
S
68 3 8
WFG_Frontend::_validate_single_gift_condition()
S
65 3 10
WFG_Admin::main_menu()
S
53 1 28
WFG_Admin::enqueue_admin_scripts()
S
53 1 27
WFG_Frontend::__set_notice_text()
S
68 2 7
WFG_Product_Helper::get_max_category_products_count()
S
74 2 4
WFG_Product_Helper::get_max_category_quantity_count()
S
74 2 4
WFG_Frontend::__set_actual_values()
S
71 2 5
Woocommerce_Multiple_Free_Gift::wfg_validate_installation()
S
72 2 5
WFG_Product_Helper::get_products()
S
60 1 13
WFG_Product_Helper::get_product_categories()
S
62 1 12
WFG_Product_Helper::update_product_meta()
S
62 1 11
WFG_Common_Helper::error_notice()
S
73 1 5
WFG_Common_Helper::fixed_notice()
S
73 1 5
WFG_Common_Helper::translate()
S
79 1 3
WFG_Frontend::__init()
S
64 1 9
Woocommerce_Multiple_Free_Gift::load_plugin_textdomain()
S
69 1 7
WFG_Settings_Helper::__construct()
S
91 1 2
Woocommerce_Multiple_Free_Gift::wfg_plugin_required_notice()
S
70 1 9
WFG_Settings_Helper::force_init()
S
80 1 3
WFG_Admin::__construct()
S
72 1 5
WFG_Settings_Helper::has_settings()
S
76 1 4
WFG_Frontend::__construct()
S
65 1 9
Woocommerce_Multiple_Free_Gift::wfg_action_links()
S
70 1 6
Woocommerce_Multiple_Free_Gift::wfg_activate()
S
66 1 8
WFG_Product_Helper::get_category_quantity_count()
S
79 1 3
WFG_Common_Helper::success_notice()
S
73 1 5
Woocommerce_Multiple_Free_Gift::__construct()
S
69 1 6
Woocommerce_Multiple_Free_Gift::enqueue_global_scripts()
S
73 1 4
WFG_Single_Gift::__construct()
S
72 1 5
WFG_Single_Gift::create_admin_free_gift_tab()
S
71 1 9
WFG_Product_Helper::get_category_products_count()
S
80 1 3