Code Analysis: WooPOS Gift Cards for WooCommerce 2.2

Function Rating Maintainability Complexity Lines of code
WOOPOSGC_Auto_Send::wooposgc_create_automatically()
D
25
42 139
WOOPOSGC_CSV_Importer::import_settings()
B
29
19 132
WC_Gateway_ISC::is_available()
B
39 23 61
WOOPOSGC_Gift_Card_Meta::wooposgc_giftcard_usage_data()
B
35 19 88
wooposgc_cart_fields()
B
39 19 62
wooposgc_add_card_data()
B
45 18 34
wooposgc_ajax_add_card_data()
B
45 18 34
WOOPOSGC_Gift_Card_Meta::wooposgc_meta_box()
B
32 12 119
WOOPOSGC_Gift_Card_Meta::wooposgc_meta_box()
B
32 12 119
wooposgc_custom_columns()
B
45 17 37
WOOPOSGC_Giftcard::createCard()
B
41 16 52
wooposgc_display_giftcard()
B
41 16 50
WOOPOSGC_Giftcard::wooposgc_get_payment_amount()
A
42 15 55
wooposgc_add_to_cart_validation()
A
46 15 36
wooposgc_update_card()
A
38 12 72
wooposgc_display_giftcard_in_cart()
A
43 13 45
WC_REST_WOOPOS_Giftcards_Controller::get_order_item_data()
A
47 13 32
woocommerce_apply_giftcard()
A
44 12 44
WOOPOSGC_Settings::get_settings()
A
29
2 193
WC_REST_WOOPOS_Giftcards_Controller::get_object()
A
47 12 30
WOOPOSGC_Giftcard::reload_card()
A
45 11 37
wooposgc_decrease_giftcard()
A
42 10 50
WOOPOSGC_Gift_Card_Meta::wooposgc_giftcard_usage_data()
A
40 8 74
WC_REST_WOOPOS_Giftcards_Controller::prepare_objects_query()
A
44 10 44
File_CSV_DataSource::fillColumn()
A
49 11 29
WC_REST_WOOPOS_Giftcards_Controller::delete_item()
A
46 10 35
WOOPOSGC_Custom_Price::wooposgc_check_card_price()
A
49 10 28
wooposgc_convert_to_isc()
A
42 8 47
WOOPOSGC_Custom_Price::wooposgc_add_remove_field()
A
48 9 32
WOOPOSGC_Custom_Number::wooposgc_theNumber()
A
50 9 29
wooposgc_order_giftcard()
A
46 8 41
wooposgc_process_meta()
A
51 9 25
WOOPOSGC_Custom_Price::wooposgc_custom_price_option()
A
48 8 34
Wooposgc_Giftcard_Object::__call()
A
51 8 26
File_CSV_DataSource::connect()
A
53 8 25
WOOPOSGC_Gift_Card_Meta::save()
A
53 8 21
WOOPOSGC_Gift_Card_Meta::save()
A
53 8 21
File_CSV_DataSource::fillRow()
A
56 8 17
WOOPOSGC_Gift_Card_Meta::wooposgc_info_meta_box()
A
48 7 31
WOOPOSGC_Gift_Card_Meta::wooposgc_info_meta_box()
A
48 7 31
wooposgc_disable_coupons()
S
57 8 15
WC_REST_WOOPOS_Giftcards_Controller::prepare_object_for_database()
S
51 7 25
wooposgc_check_giftcard()
S
45 6 39
WOOCSClassDecorator::convert_current_to_default()
S
54 7 21
WC_REST_WOOPOS_Giftcards_Controller::get_item_schema()
S
36 1 110
wooposgc_add_giftcard_to_paypal()
S
55 7 18
WC_REST_WOOPOS_Giftcards_Controller::get_items()
S
48 6 32
WOOPOSGC_Custom_Price::wooposgc_uniqueTitle()
S
58 7 13
wooposgc_add_order_giftcard()
S
51 6 26
WC_Gateway_ISC::process_payment()
S
47 5 37
WOOPOSGC_Auto_Send::wooposgc_send_gift_cards()
S
52 6 22
WC_Gateway_ISC::init_form_fields()
S
42 3 61
WOOPOSGC_Custom_Price::wooposgc_fall_back_cart_button()
S
55 6 16
WC_REST_WOOPOS_Giftcards_Controller::maybe_set_item_meta_data()
S
62 7 10
WOOPOSGC_Giftcard_Email::sendGiftcardEmail()
S
45 4 45
File_CSV_DataSource::getRows()
S
59 6 15
WOOPOSGC_Auto_Send::wooposgc_setup_send_later()
S
57 6 15
WOOPOSGC_Gift_Card_Meta::wooposgc_meta_boxes()
S
46 4 44
WOOPOSGC_Gift_Card_Meta::wooposgc_meta_boxes()
S
46 4 44
Wooposgc_Giftcards::includes()
S
51 5 29
WC_REST_WOOPOS_Giftcards_Controller::create_item()
S
50 5 25
WOOPOSGC_CSV_Importer::stripBOM()
S
53 5 23
WC_REST_WOOPOS_Giftcards_Controller::set_item()
S
53 5 23
File_CSV_DataSource::symmetrize()
S
57 5 17
File_CSV_DataSource::walkColumn()
S
58 5 16
WOOPOSGC_Settings::output_sections()
S
58 5 13
WC_REST_WOOPOS_Giftcards_Controller::get_product_id()
S
60 5 12
wooposgc_createCardNumber()
S
62 5 11
WC_REST_WOOPOS_Giftcards_Controller::prepare_shipping_lines()
S
60 5 11
WC_REST_WOOPOS_Giftcards_Controller::prepare_coupon_lines()
S
61 5 11
WOOPOSGC_Auto_Send::hooks()
S
53 4 23
wooposgc_show_isc()
S
53 4 22
WOOPOSGC_Auto_Send::wooposgc_auto_send_settings()
S
44 2 52
File_CSV_DataSource::parse()
S
54 4 21
WC_Gateway_ISC::__construct()
S
54 4 19
WC_REST_WOOPOS_Giftcards_Controller::register_routes()
S
42 1 61
File_CSV_DataSource::appendColumn()
S
58 4 16
File_CSV_DataSource::removeColumn()
S
58 4 16
wooposgc_sendGiftCard()
S
65 5 8
WC_REST_WOOPOS_Giftcards_Controller::save_object()
S
59 4 14
File_CSV_DataSource::setHeaders()
S
61 4 14
wooposgc_giftcards_scripts()
S
58 4 14
File_CSV_DataSource::walkRow()
S
61 4 12
WOOPOSGC_Auto_Send::wooposgc_add_gift_card_info()
S
61 4 11
WOOPOSGC_Settings::excludeProducts()
S
52 3 25
wooposgc_create_post_type()
S
46 2 40
WOOPOSGC_Custom_Number::wooposgc_custom_number_settings()
S
47 2 39
Wooposgc_Giftcard_Object::save()
S
47 2 36
WOOPOSGC_Custom_Price::hooks()
S
55 3 18
wooposgc_giftcards_admin_scripts()
S
57 3 17
WOOPOSGC_Giftcard_Activation::__construct()
S
58 3 15
WC_REST_WOOPOS_Giftcards_Controller::item_is_null()
S
64 4 9
WOOPOSGC_Custom_Price::wooposgc_add_cp_giftcard_options()
S
62 4 10
WOOPOSGC_Custom_Price::wooposgc_remove_price()
S
65 4 8
WC_Gateway_ISC::email_instructions()
S
71 4 5
WOOPOSGC_Custom_Price::wooposgc_customprice_page()
S
50 2 30
WOOPOSGC_Custom_Price::wooposgc_mini_cart()
S
63 4 9
WOOPOSGC_Custom_Price::wooposgc_cp_process_meta()
S
62 4 10
wooposgc_make_gift_card_purchasable()
S
64 4 9
preventAddToCart()
S
65 4 8
WOOPOSGC_Auto_Send::wooposgc_add_send_later_field()
S
59 3 14
wooposgc_giftcard_in_order()
S
60 3 14
WOOPOSGC_Giftcard::wooposgc_decrease_balance()
S
61 3 13
File_CSV_DataSource::createHeaders()
S
60 3 13
wooposgc_change_add_to_cart_button()
S
59 3 13
File_CSV_DataSource::getColumn()
S
62 3 11
WC_REST_WOOPOS_Giftcards_Controller::prepare_object_for_response()
S
60 3 11
File_CSV_DataSource::removeRow()
S
62 3 11
WOOPOSGC_API::register_routes()
S
62 3 11
Wooposgc_Giftcards_load()
S
63 3 11
wooposgc_pro_add_section()
S
52 2 25
WC_REST_WOOPOS_Giftcards_Controller::get_formatted_item_data()
S
52 2 24
wooposgc_checkout_form()
S
57 2 17
wooposgc_add_columns()
S
57 2 16
File_CSV_DataSource::isSymmetric()
S
65 3 9
Wooposgc_Giftcards::add_WOOCS_support()
S
67 3 7
File_CSV_DataSource::walkGrid()
S
67 3 8
WOOPOSGC_API::includes()
S
67 3 7
File_CSV_DataSource::validates()
S
67 3 9
WC_REST_WOOPOS_Giftcards_Controller::update_address()
S
67 3 7
wooposgc_uniqueID()
S
63 3 9
WOOPOSGC_Auto_Send::includes()
S
67 3 8
WOOPOSGC_Gift_Card_Meta::wooposgc_options_meta_box()
S
58 2 15
File_CSV_DataSource::getAsymmetricRows()
S
64 3 10
WOOPOSGC_Custom_Price::wooposgc_add_custom_price()
S
68 3 7
WOOPOSGC_Gift_Card_Meta::__construct()
S
66 3 8
WOOPOSGC_Gift_Card_Meta::__construct()
S
66 3 8
WOOPOSGC_Giftcard::wooposgc_is_giftcard()
S
66 3 8
File_CSV_DataSource::removeEmpty()
S
64 3 10
WOOPOSGC_Custom_Price::wooposgc_sanitize_license()
S
66 3 8
WOOPOSGC_Gift_Card_Meta::wooposgc_options_meta_box()
S
58 2 15
WOOPOSGC_Settings::run_update()
S
61 2 12
wooposgc_cart_form()
S
63 2 12
WOOPOSGC_Giftcard_Email::sendEmail()
S
53 1 21
WC_REST_WOOPOS_Giftcards_Controller::get_collection_params()
S
56 1 19
wooposgc_add_giftcard_panel()
S
58 1 16
WOOPOSGC_Settings::get_sections()
S
64 2 9
WOOPOSGC_CSV_Importer::getInstance()
S
69 2 7
wooposgc_update_giftcard_status()
S
63 2 10
wooposgc_set_giftcard_balance()
S
66 2 8
wooposgc_get_giftcard_balance()
S
74 2 4
apply_cart_giftcard()
S
73 2 5
wpfstop_change_default_title()
S
68 2 7
File_CSV_DataSource::fillCell()
S
65 2 9
Wooposgc_Giftcards::setup_constants()
S
71 2 7
wooposgc_get_giftcard()
S
69 2 7
WC_REST_WOOPOS_Giftcards_Controller::maybe_set_item_prop()
S
73 2 5
Wooposgc_Giftcards::instance()
S
66 2 10
WC_REST_WOOPOS_Giftcards_Controller::maybe_set_item_props()
S
73 2 5
WOOPOSGC_Custom_Price::getInstance()
S
69 2 7
WOOPOSGC_Custom_Number::getInstance()
S
69 2 7
WOOPOSGC_Custom_Number::hooks()
S
66 2 8
File_CSV_DataSource::getCell()
S
68 2 7
File_CSV_DataSource::getRawArray()
S
68 2 8
File_CSV_DataSource::hasCell()
S
72 2 5
WOOPOSGC_Auto_Send::getInstance()
S
68 2 8
WOOPOSGC_CSV_Importer::wooposgc_import_page()
S
63 2 10
WOOPOSGC_Custom_Price::wooposgc_cp_prevent()
S
70 2 6
WC_Gateway_ISC::thankyou_page()
S
74 2 5
wooposgc_get_custom_message()
S
69 2 7
WOOPOSGC_CSV_Importer::hooks()
S
67 2 7
File_CSV_DataSource::resetKeys()
S
70 2 7
WOOPOSGC_Settings::save()
S
64 2 10
WOOPOSGC_Custom_Price::wooposgc_add_cart_item()
S
72 2 5
File_CSV_DataSource::moveHeadersToRows()
S
67 2 9
WOOPOSGC_Giftcard_Activation::no_woo_nag()
S
62 2 10
WOOPOSGC_Auto_Send::wooposgc_autosend_page()
S
64 2 9
File_CSV_DataSource::getRow()
S
69 2 7
WC_REST_WOOPOS_Giftcards_Controller::get_order_statuses()
S
68 2 7
wooposgc_get_custom_instructions()
S
69 2 7
wooposgc_get_order_card_numbers()
S
66 2 8
wooposgc_number_option()
S
60 1 14
wooposgc_price_option()
S
60 1 14
wooposgc_auto_option()
S
60 1 14
wooposgc_extra_check()
S
62 1 12
wooposgc_get_giftcard_by_code()
S
63 1 11
WC_REST_WOOPOS_Giftcards_Controller::prepare_links()
S
63 1 11
WOOPOSGC_Giftcard::wooposgc_get_giftcard_by_code()
S
63 1 11
WOOPOSGC_CSV_Importer::wooposgc_pro_import_settings()
S
74 1 4
File_CSV_DataSource::countHeaders()
S
80 1 3
WC_REST_WOOPOS_Giftcards_Controller::filter_writable_props()
S
79 1 3
WOOPOSGC_Giftcard_Activation::run()
S
79 1 3
WOOPOSGC_Giftcard::sendCard()
S
91 1 2
WOOPOSGC_Custom_Price::wooposgc_register_settings()
S
80 1 3
WOOPOSGC_Custom_Price::wooposgc_cp_check()
S
71 1 5
WOOPOSGC_Settings::output()
S
73 1 5
wooposgc_get_giftcard_expiration()
S
75 1 4
add_filter_wooposgc_disable_coupons()
S
79 1 3
File_CSV_DataSource::hasColumn()
S
79 1 3
call_WOOPOSGC_Gift_Card_Meta()
S
83 1 3
Wooposgc_Giftcards::plugin_action_links()
S
68 1 6
File_CSV_DataSource::load()
S
74 1 5
wooposgc_get_giftcard_from_email()
S
75 1 4
WOOPOSGC_Gift_Card_Meta::wooposgc_giftcard_title()
S
71 1 8
wooposgc_get_giftcard_info()
S
74 1 4
wooposgc_get_giftcard_from()
S
75 1 4
wooposgc_get_giftcard_note()
S
75 1 4
call_WOOPOSGC_Gift_Card_Meta()
S
83 1 3
wooposgc_get_giftcard_number()
S
75 1 4
wooposgc_giftcard_activation()
S
100 1 2
WOOCSClassDecorator::__construct()
S
81 1 3
WOOPOSGC_Giftcard::wooposgc_discount_total()
S
70 1 6
wooposgc_set_giftcard_info()
S
80 1 3
wooposgc_get_order_card_ids()
S
74 1 4
File_CSV_DataSource::countRows()
S
80 1 3
WOOPOSGC_Auto_Send::wooposgc_autosend_settings()
S
74 1 4
WOOCSClassDecorator::__call()
S
79 1 3
WOOPOSGC_Auto_Send::wooposgc_send_automatically()
S
78 1 3
wooposgc_get_order_refund_status()
S
74 1 4
Wooposgc_Giftcards::wooposgc_add_features()
S
70 1 6
wooposgc_get_giftcard_to()
S
75 1 4
Wooposgc_Giftcards::load_textdomain()
S
77 1 3
WOOPOSGC_Custom_Price::wooposgc_customprice_settings()
S
74 1 4
woocommerce_apply_giftcard_ajax()
S
78 1 4
wooposgc_get_giftcard_to_email()
S
75 1 4
File_CSV_DataSource::settings()
S
79 1 3
WOOPOSGC_API::init()
S
74 1 4
File_CSV_DataSource::__construct()
S
81 1 3
File_CSV_DataSource::flush()
S
77 1 4
Wooposgc_Giftcard_Object::delete()
S
81 1 3
wooposgc_get_order_card_number()
S
72 1 5
wooposgc_get_giftcard_amount()
S
74 1 4
wooposgc_pro_settings()
S
74 1 4
WOOPOSGC_Giftcard::__construct()
S
91 1 2
WOOCSClassDecorator::__get()
S
82 1 3
WOOPOSGC_Custom_Number::wooposgc_customnumber_page()
S
74 1 4
Wooposgc_Giftcards::wooposgc_add_settings_page()
S
72 1 5
wooposgc_get_order_card_balance()
S
74 1 4
WOOPOSGC_Gift_Card_Meta::wooposgc_giftcard_title()
S
71 1 8
WC_Gateway_ISC::get_icon()
S
65 1 8
WOOPOSGC_Settings::__construct()
S
62 1 10
File_CSV_DataSource::getHeaders()
S
82 1 3
wooposgc_get_order_card_payment()
S
74 1 4
WOOPOSGC_Giftcard::wooposgc_increase_balance()
S
75 1 4
WOOCSClassDecorator::__set()
S
80 1 3
wooposgc_add_giftcard_data_tab()
S
64 1 10
WOOPOSGC_Giftcard::generateNumber()
S
73 1 4
File_CSV_DataSource::appendRow()
S
72 1 5
Wooposgc_Giftcards::hooks()
S
63 1 9
File_CSV_DataSource::hasRow()
S
79 1 3
wooposgc_remove_hyphens()
S
75 1 4