Code Analysis: Gift Up! 2.18.1

Function Rating Maintainability Complexity Lines of code
giftup_woocommerce_cart_coupon()
C
31 22 136
giftup_settings::show_settings_page()
B
37 22 68
giftup_woocommerce_after_calculate_totals()
B
35 19 85
giftup_api::invoke()
B
37 17 73
giftup_diagnostics::test_curl()
B
34 15 95
giftup_settings::consume_post()
A
45 13 39
giftup_api::get_gift_card()
A
50 12 26
giftup_settings::delete_all_woocommerce_giftcardcoupons()
A
50 8 27
giftup_api::get_gift_card_balance()
A
58 8 16
giftup_api::redeem_gift_card()
S
52 7 23
giftup_diagnostics::get_woo_version_number()
S
52 7 23
giftup_diagnostics::render()
S
52 7 22
giftup_init()
S
54 7 21
giftup_woocommerce_admin_order_totals_after_tax()
S
50 6 34
giftup_woocommerce_possibly_hold_order()
S
52 6 24
giftup_api::add_credit_to_gift_card()
S
52 6 23
giftup_shortcode()
S
41 3 67
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_coupon_error()
S
56 5 20
giftup_api::get_is_currency_backed()
S
59 5 14
giftup_settings::add_diagnostics()
S
56 4 19
giftup_woocommerce_redeem_gift_card()
S
56 4 18
giftup_diagnostics::get_plugins_list()
S
57 4 17
giftup_diagnostics::woocommerce_installed_version()
S
59 4 16
giftup_cache::set_gift_card_code()
S
64 5 10
giftup_settings::is_diagnostics_on()
S
66 5 7
giftup_settings::is_test_mode()
S
66 5 7
giftup_settings::delete_woocommerce_webhook()
S
59 4 14
giftup_woocommerce_get_order_item_totals()
S
57 3 16
giftup_api_response::__construct()
S
66 4 7
giftup_deactivated()
S
70 4 7
giftup_activated()
S
70 4 7
giftup_settings::upgrade_woocommerce_operating_mode()
S
63 3 12
giftup_woocommerce_checkout_create_order()
S
63 3 11
giftup_api::different_roots_enabled()
S
70 3 6
giftup_options::get_woocommerce_is_in_test_mode()
S
77 3 3
giftup_options::get_woocommerce_operating_mode()
S
68 3 7
giftup_diagnostics::is_woocommerce_activated()
S
64 3 10
giftup_options::upgrade_from_v1()
S
66 3 8
giftup_diagnostics::replace_plugin_list_tags()
S
52 1 26
giftup_diagnostics::format_plugin_list()
S
55 1 20
giftup_cache::get_gift_card_code()
S
71 2 6
giftup_options::has_api_key()
S
71 2 6
giftup_api::dashboard_root()
S
71 2 6
giftup_options::get_woocommerce_test_mode_cookie_set()
S
77 2 3
giftup_api::get_gift_cards()
S
68 2 7
giftup_api::get_company()
S
68 2 7
giftup_api::get_woocommerce_connection_status()
S
69 2 7
giftup_api::notify_connect_woocommerce()
S
65 2 9
giftup_api::api_root()
S
71 2 6
giftup_options::get_woocommerce_diagnostics_mode()
S
77 2 3
giftup_options::disconnect()
S
64 1 11
giftup_settings::add_settings_menu()
S
78 1 3
giftup_diagnostics::append()
S
78 1 3
giftup_options::get_woocommerce_apply_to_taxes()
S
79 1 3
giftup_options::set_woocommerce_enabled()
S
78 1 3
giftup_api::notify_disconnect_woocommerce()
S
75 1 4
giftup_options::set_woocommerce_apply_to_taxes()
S
78 1 3
giftup_settings::add_settings_link()
S
73 1 5
giftup_api_response::isJson()
S
76 1 4
giftup_options::set_version()
S
78 1 3
giftup_diagnostics::new_group()
S
80 1 3
giftup_options::get_woocommerce_apply_to_shipping()
S
79 1 3
giftup_plugins_loaded()
S
78 1 3
giftup_woocommerce_cart_emptied()
S
82 1 3
giftup_curl_test_response::__construct()
S
64 1 10
giftup_options::get_option()
S
78 1 3
giftup_options::set_company_id()
S
78 1 3
giftup_options::get_version()
S
79 1 3
giftup_options::update_option()
S
78 1 3
giftup_options::set_woocommerce_apply_to_shipping()
S
78 1 3
giftup_options::set_woocommerce_operating_mode()
S
78 1 3
giftup_uninstall()
S
78 1 4
giftup_options::get_company_id()
S
79 1 3
giftup_options::set_api_key()
S
78 1 3
giftup_options::get_api_key()
S
79 1 3
giftup_settings::__construct()
S
72 1 5
giftup_settings::set_up_menu()
S
71 1 5
giftup_options::get_woocommerce_enabled()
S
79 1 3