Code Analysis: Gift Up 3.1

Function Rating Maintainability Complexity Lines of code
giftup_woocommerce_cart_coupon()
B
34 21 98
GiftUp_Settings::show_settings_page()
B
37 22 68
GiftUp_Settings::consume_post()
B
36 19 78
GiftUp_API::invoke()
B
37 17 73
GiftUp_Diagnostics::test_curl()
B
34 15 98
GiftUp_WooCommerce::apply_gift_card_to_cart_impl()
A
37 14 74
GiftUp_API::get_gift_card()
A
50 12 28
GiftUp::on_init()
A
50 10 28
GiftUp_WooCommerce::woocommerce_possibly_hold_order()
A
47 9 33
GiftUp_API::redeem_gift_card()
A
48 9 31
GiftUp_Settings::delete_all_woocommerce_giftcardcoupons()
A
50 8 27
GiftUp_API::get_gift_card_balance()
A
58 8 16
GiftUp_Diagnostics::render()
S
52 7 23
GiftUp_Diagnostics::get_woo_version_number()
S
53 7 23
GiftUp_WooCommerce::woocommerce_admin_order_totals_after_tax()
S
49 6 34
GiftUp_WooCommerce::woocommerce_after_calculate_totals()
S
55 7 19
GiftUp_WooCommerce::woocommerce_register_cart_block()
S
42 4 57
giftup_shortcode()
S
41 3 71
GiftUp_API::add_credit_to_gift_card()
S
52 6 23
GiftUp_Diagnostics::get_plugin_list_data()
S
57 6 17
GiftUp_API::get_gift_card_is_valid()
S
59 6 14
GiftUp_Settings::show_nag_messages()
S
60 6 13
GiftUp_WooCommerce::__construct()
S
48 4 32
GiftUp_API::get_is_currency_backed()
S
60 5 14
GiftUp_Cache::set_gift_card_code()
S
60 5 14
GiftUp_Diagnostics::add_diagnostics()
S
56 4 19
GiftUp_WooCommerce::woocommerce_redeem_gift_card()
S
55 4 18
GiftUp_Diagnostics::get_plugins_list()
S
57 4 17
GiftUp_Diagnostics::woocommerce_installed_version()
S
59 4 16
GiftUp_Settings::is_test_mode()
S
66 5 7
GiftUp_Settings::is_diagnostics_on()
S
66 5 7
GiftUp_Settings::delete_woocommerce_webhook()
S
59 4 14
GiftUp_WooCommerce::woocommerce_get_order_item_totals()
S
57 3 16
GiftUp_API_Response::__construct()
S
66 4 7
GiftUp::on_deactivation()
S
69 4 7
GiftUp_Apply_Block_Integration::get_file_version()
S
70 4 6
GiftUp_Checkout_Block_Integration::get_file_version()
S
70 4 6
GiftUp_Settings::upgrade_woocommerce_operating_mode()
S
63 3 12
GiftUp_WooCommerce::woocommerce_checkout_create_order()
S
63 3 11
GiftUp_Apply_Block_Integration::register_block_frontend_scripts()
S
55 2 20
GiftUp_Apply_Block_Integration::register_block_editor_scripts()
S
55 2 20
GiftUp_Checkout_Block_Integration::register_block_editor_scripts()
S
55 2 20
GiftUp_Options::get_woocommerce_is_in_test_mode()
S
77 3 3
GiftUp_Options::get_woocommerce_operating_mode()
S
68 3 7
GiftUp_Options::upgrade_from_v1()
S
67 3 8
GiftUp::load_single_json_for_gift_up()
S
69 3 6
GiftUp_API::different_roots_enabled()
S
70 3 6
GiftUp_Diagnostics::is_woocommerce_activated()
S
64 3 10
GiftUp_Diagnostics::replace_plugin_list_tags()
S
52 1 26
GiftUp_Diagnostics::format_plugin_list()
S
56 1 20
GiftUp_Cache::gift_card_found()
S
75 2 4
GiftUp_Cache::get_requested_gift_card_code()
S
72 2 6
GiftUp::compile_single_json_for_gift_up()
S
67 2 7
GiftUp::declare_hpos_compatibility()
S
69 2 6
GiftUp_Apply_Block_Integration::instance()
S
72 2 6
GiftUp_API::api_root()
S
71 2 6
GiftUp_Options::get_woocommerce_diagnostics_mode()
S
78 2 3
GiftUp_Options::get_woocommerce_test_mode_cookie_set()
S
78 2 3
GiftUp_Checkout_Block_Integration::instance()
S
72 2 6
GiftUp_API::dashboard_root()
S
71 2 6
GiftUp_Options::has_api_key()
S
72 2 6
GiftUp_API::get_company()
S
68 2 7
GiftUp::maybe_define_constant()
S
75 2 5
GiftUp_WooCommerce::woocommerce_order_after_calculate_totals()
S
70 2 6
GiftUp_Cache::get_accepted_gift_card_code()
S
72 2 6
GiftUp::instance()
S
72 2 6
GiftUp_API::get_gift_cards()
S
68 2 7
GiftUp_API::generate_random_string()
S
64 2 9
GiftUp_WooCommerce::woocommerce_cart_emptied()
S
73 2 5
GiftUp_API::notify_connect_woocommerce()
S
65 2 9
GiftUp_API::get_woocommerce_connection_status()
S
69 2 7
GiftUp::declare_blocks_compatibility()
S
69 2 6
GiftUp::initialize_plugin()
S
59 1 14
GiftUp_Options::disconnect()
S
64 1 11
GiftUp_WooCommerce::register_giftup_apply_block_category()
S
64 1 11
GiftUp::define_constants()
S
62 1 11
GiftUp_Apply_Block_Integration::get_script_handles()
S
81 1 3
GiftUp_WooCommerce::apply_gift_card_to_cart()
S
71 1 6
GiftUp::__wakeup()
S
79 1 3
GiftUp_Options::set_woocommerce_enabled()
S
79 1 3
GiftUp_Options::get_woocommerce_enabled()
S
80 1 3
GiftUp_Settings::set_up_menu()
S
71 1 5
GiftUp_WooCommerce::cart_scripts()
S
77 1 3
giftup_on_uninstall()
S
78 1 4
GiftUp_Options::update_option()
S
78 1 3
GiftUp_API::notify_disconnect_woocommerce()
S
75 1 4
GiftUp_Apply_Block_Integration::get_editor_script_handles()
S
81 1 3
GiftUp::includes()
S
65 1 10
GiftUp_Options::get_version()
S
80 1 3
GiftUp_Checkout_Block_Integration::initialize()
S
75 1 4
GiftUp::get_plugin_basedirectory()
S
80 1 3
GiftUp::get_plugin_basename()
S
80 1 3
GiftUp_Options::set_woocommerce_operating_mode()
S
79 1 3
GiftUp_Options::set_woocommerce_apply_to_shipping()
S
79 1 3
GiftUp_Options::__construct()
S
69 1 7
GiftUp_Settings::__construct()
S
72 1 5
GiftUp_Options::get_woocommerce_apply_to_taxes()
S
80 1 3
GiftUp_Options::get_api_key()
S
75 1 4
GiftUp_API_Response::isJson()
S
76 1 4
GiftUp_Options::set_company_id()
S
79 1 3
GiftUp::__clone()
S
79 1 3
GiftUp_Apply_Block_Integration::get_script_data()
S
72 1 6
GiftUp::__construct()
S
78 1 3
GiftUp::is_plugin_initialized()
S
80 1 3
GiftUp_Settings::add_settings_menu()
S
78 1 3
GiftUp::load_translation()
S
68 1 6
GiftUp_Options::get_option()
S
78 1 3
GiftUp_Checkout_Block_Integration::enqueue_block_assets()
S
63 1 10
GiftUp_Apply_Block_Integration::get_name()
S
82 1 3
GiftUp_Options::get_woocommerce_apply_to_shipping()
S
80 1 3
GiftUp_Settings::add_settings_link()
S
73 1 5
GiftUp()
S
82 1 3
GiftUp_Options::set_woocommerce_apply_to_taxes()
S
79 1 3
GiftUp_Options::set_version()
S
79 1 3
GiftUp_Apply_Block_Integration::initialize()
S
75 1 4
GiftUp_Diagnostics::append()
S
79 1 3
GiftUp_Options::get_company_id()
S
80 1 3
GiftUp_Diagnostics::new_group()
S
80 1 3
GiftUp_Options::set_api_key()
S
79 1 3