Code Analysis: Store credit for woocommerce 1.0.49.22

Function Rating Maintainability Complexity Lines of code
pi_store_credit_report::tab_content()
B
35 17 87
Pi_store_credit_product_type_handler::validateRange()
B
42 18 50
pisol_class_form_store_credit::check_field_type()
A
48 12 36
pi_store_credit_count::storeCreditCount()
A
48 12 32
pi_store_credit_report::get_all_store_credit()
A
41 10 56
Pi_store_credit_discount::getAmount()
A
50 12 24
pisol_store_credit_review::display_admin_notice()
A
43 9 45
Pi_store_credit_discount_validation::getEmailId()
A
53 10 20
Pi_store_credit_product_type_handler::add_order_item_meta()
A
53 10 19
pi_store_credit_auto_apply::autoApplyCoupon()
A
55 10 18
Pi_store_credit_product_type_handler::addToCartHandlerForRange()
A
54 10 17
Pi_store_credit_discount::getTotalDiscountAmount()
A
50 9 26
Pi_store_credit_product_type_handler::showExtraDate()
A
52 9 24
Pi_store_credit_product_type_handler::addStoreCreditToOrder()
A
49 8 29
pisol_store_credit_review::savePreference()
A
51 8 24
Pi_store_credit_discount::amountThatCanBeUsedInOneOrder()
A
54 8 21
pi_store_credit_report::couponUsageDetail()
A
47 7 35
Pi_store_credit_discount::getEmailId()
S
57 8 15
Pi_store_credit_coupon::storeCreditDetailsPanel()
S
46 6 37
Pi_store_credit_discount::getUserAvailableDiscountAmount()
S
57 7 16
Pi_store_credit_discount::discountAmount()
S
50 6 27
pisol_class_form_store_credit::number_box()
S
58 7 12
pi_store_credit_auto_apply::getCouponWithMaxBalance()
S
57 6 16
pisol_class_form_store_credit::multiselect_box()
S
57 6 14
Pi_store_credit_apply_coupon_overwrite::setCurrentUserInSession()
S
60 6 13
pisol_class_form_store_credit::media_selector_scripts()
S
48 3 54
Pi_store_credit_product_type_handler::saveFields()
S
57 5 17
Pi_store_credit_apply_coupon_overwrite::apply_coupon()
S
56 5 16
Pi_store_credit_coupon::sendEmailsEventSchedule()
S
57 5 15
Pi_store_credit_discount::couponDiscountType()
S
62 6 10
Pi_store_credit_product_type_handler::createCoupon()
S
50 4 30
Pi_store_credit_discount_validation::validateEmailPresence()
S
58 5 14
Pi_store_credit_product_type_handler::showGeneratedCoupons()
S
58 5 14
Pi_store_credit_discount::getAllEmailId()
S
59 5 13
pisol_class_form_store_credit::select_box()
S
58 5 12
Pi_store_credit_product_type_handler::setPriceInCart()
S
60 5 12
pisol_class_form_store_credit::setting_category()
S
63 5 11
pi_store_credit_report::table_row()
S
55 4 18
pisol_class_form_store_credit::__construct()
S
57 4 18
pisol_class_form_store_credit::color_box()
S
56 4 16
pi_store_credit_auto_apply::autoApplyStoreCredit()
S
61 4 12
pisol_class_form_store_credit::textarea_box()
S
60 4 11
pi_store_credit_reminder_email_scheduler::expiryReminderEmailScheduler()
S
61 4 11
pi_store_credit_reminder_email_options::__construct()
S
49 3 24
pi_store_credit_admin_menu::menu_option_page()
S
52 2 39
pisol_class_form_store_credit::bootstrap()
S
56 3 23
pi_store_credit_basic_option::__construct()
S
51 3 21
pisol_class_form_store_credit::image()
S
53 3 21
pi_store_credit_email::content()
S
56 3 17
Pi_store_credit_product_type_handler::disableQuantity()
S
68 4 6
pisol_class_form_store_credit::text_box()
S
62 4 9
pisol_class_form_store_credit::hidden_box()
S
62 4 9
Pi_store_credit_apply_coupon_overwrite::getCurrentUserFromSession()
S
67 4 7
pi_store_credit_auto_apply::otherStoreCreditAlreadyApplied()
S
65 4 9
pi_store_credit_settings::__construct()
S
57 3 14
pi_store_credit_report::__construct()
S
59 3 13
pi_store_credit_other_plugins::__construct()
S
60 3 12
Pi_store_credit_coupon::couponUsageDetail()
S
62 3 12
pisol_store_credit_review::__construct()
S
60 3 12
pi_store_credit_reminder_email::sendEmail()
S
63 3 11
pi_store_credit_auto_apply::getCurrentUserEmail()
S
63 3 11
pi_store_credit_email::sendEmail()
S
63 3 11
Pi_store_credit_coupon::checkOffer()
S
62 3 11
pi_store_credit_reminder_email_scheduler::expiryReminderEmailsScheduler()
S
62 3 11
Pi_store_credit_discount_validation::avoidEmailValidation()
S
65 3 9
Pi_store_credit_coupon::saveExtraFields()
S
67 3 8
pi_store_credit_my_account::couponExpired()
S
69 3 6
pisol_class_form_store_credit::switch_display()
S
63 3 9
WC_Product_Pi_Store_Credit_Range::is_purchasable()
S
76 3 3
Pi_store_credit_product_type_handler::template()
S
63 3 10
pisol_store_credit_review::getInstallationDate()
S
65 3 9
pisol_store_credit_review::validateDate()
S
71 3 5
Store_Credit_For_Woocommerce_Admin::enqueue_scripts()
S
66 3 7
Store_Credit_For_Woocommerce_Loader::run()
S
66 3 8
WC_Product_Pi_Store_Credit_Option::is_purchasable()
S
76 3 3
Pi_store_credit_product_type_handler::loopAddToCart()
S
68 3 7
pi_store_credit_auto_apply::couponExpired()
S
69 3 6
pi_store_credit_auto_apply::couponAlreadyApplied()
S
70 3 6
pi_store_credit_basic_option::tab_content()
S
63 2 13
pi_store_credit_reminder_email_options::tab_content()
S
63 2 13
pi_store_credit_settings::tab_content()
S
63 2 13
pi_store_credit_reminder_email::content()
S
59 2 13
pi_store_credit_email::get_coupon_data()
S
60 2 12
pi_store_credit_email::header()
S
61 2 12
Store_Credit_For_Woocommerce::__construct()
S
62 2 12
pi_store_credit_report::table_heading()
S
62 2 11
Pi_store_credit_product_type_handler::__construct()
S
50 1 26
Pi_store_credit_coupon::displayError()
S
62 2 11
pi_store_credit_other_plugins::tab()
S
62 2 11
pi_store_credit_other_plugins::tab_content()
S
53 1 25
Pi_store_credit_coupon::couponExtraFields()
S
54 1 22
pi_store_credit_my_account::getStoreCreditCoupons()
S
55 1 22
pi_store_credit_reminder_email_scheduler::getCouponsToExpireIn()
S
56 1 21
Pi_store_credit_product_type_handler::dataTab()
S
56 1 21
pi_store_credit_email::wc_replace_placeholders()
S
57 1 20
pi_store_credit_reminder_email::wc_replace_placeholders()
S
57 1 20
pi_store_credit_email::replaceDetails()
S
64 2 9
pi_store_credit_settings::register_settings()
S
73 2 5
pi_store_credit_report::register_settings()
S
73 2 5
pi_store_credit_disable_other_fields::product_ids()
S
75 2 4
pi_store_credit_auto_apply::make_store_credit_last()
S
72 2 6
pi_store_credit_my_account::getExpiryDate()
S
72 2 5
Pi_store_credit_product_type_handler::get_instance()
S
72 2 6
pi_store_credit_my_account::add_endpoint()
S
68 2 7
pi_store_credit_disable_other_fields::limit_usage_to_x_items()
S
76 2 4
pi_store_credit_reminder_email_scheduler::registerSchedulerCron()
S
73 2 5
Pi_store_credit_coupon::get_instance()
S
72 2 6
pi_store_credit_reminder_email_scheduler::__construct()
S
68 2 6
pi_store_credit_reminder_email_scheduler::sendReminderForCouponExpiringOn()
S
65 2 8
Pi_store_credit_discount::get_orders()
S
72 2 5
pi_store_credit_email::get_subject()
S
65 2 9
Pi_store_credit_coupon::checkErrors()
S
70 2 6
pi_store_credit_reminder_email::getExpiryDate()
S
72 2 5
pi_store_credit_auto_apply::get_instance()
S
72 2 6
pi_store_credit_disable_other_fields::product_categories()
S
75 2 4
pi_store_credit_auto_apply::getAllStoreCreditForCustomer()
S
71 2 6
pi_store_credit_basic_option::tab()
S
68 2 7
Pi_store_credit_discount::isCreditCoupon()
S
72 2 5
Pi_store_credit_discount_validation::validate()
S
72 2 5
Pi_store_credit_coupon::sendIndividualEmail()
S
67 2 7
pi_store_credit_auto_apply::autoApplyIsBeenDisabledForSession()
S
72 2 5
pi_store_credit_other_plugins::register_settings()
S
73 2 5
Pi_store_credit_discount_validation::get_instance()
S
72 2 6
pi_store_credit_count::get_instance()
S
72 2 6
Pi_store_credit_discount::get_instance()
S
72 2 6
Pi_store_credit_product_type_handler::scheduleEmail()
S
72 2 5
pi_store_credit_disable_other_fields::excluded_product_categories()
S
75 2 4
pi_store_credit_disable_other_fields::free_shipping()
S
76 2 4
pi_store_credit_disable_other_fields::get_instance()
S
72 2 6
pi_store_credit_admin_menu::get_instance()
S
71 2 6
Pi_store_credit_apply_coupon_overwrite::get_instance()
S
72 2 6
pi_store_credit_reminder_email::get_coupon_data()
S
64 2 9
pi_store_credit_disable_other_fields::usage_limit_per_user()
S
76 2 4
pi_store_credit_disable_other_fields::exclude_sale_items()
S
76 2 4
pi_store_credit_reminder_email::replaceDetails()
S
64 2 9
pi_store_credit_disable_other_fields::excluded_product_ids()
S
75 2 4
pi_store_credit_reminder_email_options::register_settings()
S
73 2 5
pi_store_credit_reminder_email_options::tab()
S
68 2 7
Pi_store_credit_product_type_handler::woocommerce_attribute_label()
S
72 2 6
Pi_store_credit_coupon::scheduleEmail()
S
72 2 5
pi_store_credit_report::tab()
S
68 2 7
Pi_store_credit_coupon::customEmailPresent()
S
69 2 6
Pi_store_credit_coupon::sendEmail()
S
75 2 4
pi_store_credit_report::order_links()
S
67 2 7
pi_store_credit_basic_option::register_settings()
S
73 2 5
pi_store_credit_reminder_email_scheduler::enableReminderEmail()
S
74 2 4
pi_store_credit_disable_other_fields::usage_limit()
S
76 2 4
pi_store_credit_settings::tab()
S
68 2 7
pi_store_credit_email::getExpiryDate()
S
72 2 5
pi_store_credit_reminder_email_scheduler::get_instance()
S
72 2 6
pi_store_credit_my_account::get_instance()
S
72 2 6
pi_store_credit_my_account::endpoint_content()
S
67 2 8
pi_store_credit_report::table_columns()
S
59 1 14
pi_store_credit_disable_other_fields::__construct()
S
61 1 11
pi_store_credit_admin_menu::plugin_menu()
S
63 1 11
Pi_store_credit_coupon::__construct()
S
61 1 11
pi_store_credit_admin_menu::__construct()
S
69 1 6
pi_store_credit_email::footer()
S
70 1 7
Pi_store_credit_product_type_handler::woocommerce_order_status_completed()
S
80 1 3
Pi_store_credit_discount::cartSupportDiscountType()
S
77 1 4
pi_store_credit_count::__construct()
S
79 1 3
Store_Credit_For_Woocommerce_Loader::__construct()
S
77 1 4
Pi_store_credit_apply_coupon_overwrite::popupForm()
S
82 1 3
Pi_store_credit_product_type_handler::randomCouponCode()
S
68 1 7
WC_Product_Pi_Store_Credit_Option::get_amount_options()
S
79 1 3
pi_store_credit_reminder_email_scheduler::sendReminderEmail()
S
80 1 3
Store_Credit_For_Woocommerce::get_version()
S
82 1 3
pi_store_credit_auto_apply::__construct()
S
74 1 4
Pi_store_credit_apply_coupon_overwrite::askForEmailId()
S
67 1 10
WC_Product_Pi_Store_Credit_Range::get_max_amount()
S
79 1 3
pi_store_credit_my_account::myAccountSubLink()
S
75 1 4
pi_store_credit_reminder_email::footer()
S
70 1 7
Pi_store_credit_product_type_handler::hidden_order_item_meta()
S
77 1 4
Pi_store_credit_discount_validation::__construct()
S
74 1 4
Store_Credit_For_Woocommerce_Loader::add_filter()
S
77 1 3
Store_Credit_For_Woocommerce_Activator::activate()
S
80 1 3
pi_store_credit_admin_menu::bootstrap_style()
S
68 1 6
Store_Credit_For_Woocommerce::get_plugin_name()
S
82 1 3
WC_Product_Pi_Store_Credit_Option::get_type()
S
82 1 3
Pi_store_credit_discount::__construct()
S
71 1 5
pi_store_credit_reminder_email::get_email()
S
83 1 3
WC_Product_Pi_Store_Credit_Range::__construct()
S
76 1 4
pi_store_credit_reminder_email::__construct()
S
74 1 5
Store_Credit_For_Woocommerce_i18n::load_plugin_textdomain()
S
69 1 7
Pi_store_credit_product_type_handler::addProductType()
S
72 1 5
Pi_store_credit_product_type_handler::expiryDate()
S
71 1 5
pi_store_credit_reminder_email::get_message()
S
67 1 8
WC_Product_Pi_Store_Credit_Range::is_virtual()
S
82 1 3
Pi_store_credit_coupon::storeCreditUsedDetailTab()
S
67 1 8
Store_Credit_For_Woocommerce::run()
S
82 1 3
WC_Product_Pi_Store_Credit_Range::get_min_amount()
S
79 1 3
pi_store_credit_reminder_email::header()
S
67 1 8
pi_store_credit_email::__construct()
S
74 1 5
Store_Credit_For_Woocommerce::load_dependencies()
S
66 1 8
pi_store_credit_email::get_message()
S
67 1 8
Pi_store_credit_apply_coupon_overwrite::__construct()
S
68 1 7
pi_store_credit_email::get_email()
S
83 1 3
activate_store_credit_for_woocommerce()
S
76 1 4
Store_Credit_For_Woocommerce_Admin::enqueue_styles()
S
91 1 2
pi_store_credit_error_notice()
S
72 1 7
Store_Credit_For_Woocommerce_Public::__construct()
S
77 1 4
pi_store_credit_email::get_blogname()
S
79 1 3
Pi_store_credit_discount_validation::validateEmailId()
S
80 1 3
Store_Credit_For_Woocommerce_Deactivator::deactivate()
S
80 1 3
pi_store_credit_email::sendStoreCreditEmail()
S
75 1 4
Store_Credit_For_Woocommerce_Loader::add()
S
64 1 10
WC_Product_Pi_Store_Credit_Option::__construct()
S
76 1 4
run_store_credit_for_woocommerce()
S
77 1 4
pisol_store_credit_plugin_link()
S
67 1 7
WC_Product_Pi_Store_Credit_Range::get_type()
S
82 1 3
Store_Credit_For_Woocommerce::get_loader()
S
82 1 3
WC_Product_Pi_Store_Credit_Option::is_virtual()
S
82 1 3
Store_Credit_For_Woocommerce_Admin::__construct()
S
77 1 4
pi_store_credit_reminder_email::sendStoreCreditReminderEmail()
S
75 1 4
Pi_store_credit_coupon::customDiscountType()
S
75 1 4
pi_store_credit_reminder_email::get_subject()
S
72 1 5
Store_Credit_For_Woocommerce::define_admin_hooks()
S
72 1 5
deactivate_store_credit_for_woocommerce()
S
76 1 4
Store_Credit_For_Woocommerce_Loader::add_action()
S
77 1 3
pi_store_credit_my_account::__construct()
S
69 1 6
Store_Credit_For_Woocommerce_Public::enqueue_styles()
S
77 1 3
Store_Credit_For_Woocommerce::define_public_hooks()
S
72 1 5
Pi_store_credit_product_type_handler::dataPanel()
S
83 1 3
pi_store_credit_reminder_email::get_blogname()
S
79 1 3
Pi_store_credit_apply_coupon_overwrite::removeDefaultApplyCouponEvent()
S
70 1 6
WC_Product_Pi_Store_Credit_Range::get_expiry_days()
S
79 1 3
Store_Credit_For_Woocommerce_Public::enqueue_scripts()
S
64 1 9
Store_Credit_For_Woocommerce::set_locale()
S
75 1 4