Code Analysis: Gratisfaction- Loyalty Rewards Referral Birthday and Giveaway Program 4.2.12

Function Rating Maintainability Complexity Lines of code
GR_Connect::apmgr_create_discount()
D
21
48 183
GR_Connect::get_settings_api()
D
26
49 124
Grwoo_API::gr_create_coupon()
D
23
43 158
GR_Connect::gr_show_single_product_buy_lable()
D
26
44 136
GR_Connect::send_connect_init()
D
24
42 154
GR_Connect::gr_show_single_product_lable()
D
29
42 106
GR_Connect::gr_calc_point_value()
D
29 39 112
GR_Connect::send_status_init()
D
27
34 134
GR_Connect::send_refund_init()
D
28
30 130
GR_Connect::gr_show_redeem_points_lable()
C
30 23 135
GR_Connect::callGrConnectApi()
C
35 25 72
GR_Connect::send_refund_delete_post_init()
C
32 23 97
GR_Connect::set_app_settings_session()
C
36 24 67
GR_Connect::gr_ajax_check_settings()
C
30 20 122
WC_Points_Rewards_Cart_Checkout::get_discount_for_redeeming_points()
B
38 22 61
GR_Connect::validate_applied_coupon_checkout()
B
40 22 51
GR_Connect::gr_before_cart()
B
42 22 49
GR_Connect::send_testimonial_to_appsmav()
B
43 21 40
WC_Points_Rewards_Product::get_product_points()
B
46 19 35
GR_Connect::get_coupon()
B
38 17 63
GR_Connect::callAcctRegister()
B
35 16 77
WC_Points_Rewards_Cart_Checkout::render_redeem_points_message()
B
31 9 182
Grwoo_API::getorderdetails()
B
33 14 102
GR_Connect::gr_widget()
B
37 15 74
GR_Connect::gratisfaction_loyalty_activites()
B
40 16 59
WC_Points_Rewards_Product::get_category_points()
A
42 16 44
GR_Connect::gr_save_post()
A
43 16 43
GR_Connect::send_review_to_appsmav()
A
46 16 34
WC_Points_Rewards_Product::replace_message_variables()
A
43 15 44
GR_Connect::validate_apply_coupon()
A
47 15 34
Grwoo_API::createcustomer()
A
41 13 56
GR_Connect::send_customer_init()
A
43 13 44
GR_Connect::is_redeem_restricted_products()
A
47 13 33
GR_Connect::_getOrderID()
A
49 13 27
GR_Connect::_isActiveCampaign()
A
47 12 34
GR_Connect::_getIPDetails()
A
49 12 27
GR_Connect::gr_ajax_check_login()
A
41 10 54
GR_Connect::customer_profile_update()
A
45 11 38
GR_Connect::gr_show_product_review_lable()
A
48 11 31
GR_Connect::get_referral_coupon()
A
48 11 30
GR_Connect::add_menu_items()
A
49 11 30
Grwoo_API::edit_page()
A
44 10 43
Grwoo_API::register_apis()
A
31 1 178
GR_Connect::is_restricted_user_role()
A
55 11 17
WC_Points_Rewards_Product::get_category_max_discount()
A
48 10 30
GR_Connect::coupon_label()
A
49 10 30
WC_Points_Rewards_Cart_Checkout::get_points_earned_for_purchase()
A
48 10 29
Grwoo_API::delete_coupon_code()
A
47 9 36
GR_Connect::init_page_load()
A
53 10 20
HttpRequestHandler::exec()
A
51 9 28
Grwoo_API::set_settings()
A
49 9 28
GR_Connect::callGrApiReview()
A
46 8 35
GR_Connect::get_user_orders()
A
48 8 33
GR_Connect::send_comment_to_appsmav()
A
48 8 31
Grwoo_API::redeemuserpoints()
A
48 8 29
Grwoo_API::cancelRedeemedCoupon()
A
48 8 29
GR_Connect::gr_woo_app_show_func()
A
53 8 21
Grwoo_API::update_coupon_code()
A
47 7 36
GR_Connect::gr_rewards_apply_discount()
A
54 8 20
Grwoo_API::getuserpoints()
A
48 7 31
GR_Connect::gr_get_currency_ratio()
S
50 7 29
GR_Connect::gr_custom_discount()
S
56 7 19
GR_WOO_Discount::get_cart_item_discount_total()
S
55 7 17
GR_Connect::gr_get_currency_ratio_from_order()
S
50 6 29
GR_Connect::gr_plugin_settings_page()
S
49 6 28
Grwoo_API::getorders()
S
44 5 43
Grwoo_API::getOrdersByDateRange()
S
42 4 54
Grwoo_API::add_page()
S
47 5 37
WC_Points_Rewards_Product::get_maximum_points_discount_for_product()
S
55 6 21
get_formatted_product_tax_amount()
S
54 6 19
Grwoo_API::verify_user()
S
49 5 31
Grwoo_API::get_page()
S
49 5 30
WC_Points_Rewards_Product::get_product_max_discount()
S
59 6 13
WC_Points_Rewards_Cart_Checkout::maybe_apply_discount()
S
60 6 12
gr_roundoff()
S
61 6 12
Grwoo_API::delete_page()
S
51 5 26
WC_Points_Rewards_Cart_Checkout::get_points_earned_for_order_received()
S
61 6 11
GR_Connect::gr_update_lable_carts_page()
S
55 5 18
GR_Connect::activate()
S
56 5 18
Grwoo_API::getcustomerorders()
S
44 3 47
GR_Connect::gr_custom_discount_ajax()
S
58 5 16
GR_Connect::get_discount_applied_message()
S
57 5 16
WC_Points_Rewards_Product::render_product_message()
S
57 5 16
Grwoo_API::getproductdetails()
S
51 4 28
GR_WOO_Discount::get_discount_amount()
S
51 4 27
GR_Connect::deactivate()
S
44 3 42
Grwoo_API::verify_coupon_code()
S
52 4 25
Grwoo_API::check_api_permission()
S
53 4 24
gr_set_app_config()
S
55 4 20
WC_Points_Rewards_Product::get_highest_points_variation()
S
57 4 16
GR_Connect::get_coupon_description()
S
58 4 16
WC_Points_Rewards_Cart_Checkout::is_fully_discounted()
S
65 5 9
gr_app_error_log()
S
59 4 14
WC_Points_Rewards_Product::get_points_earned_for_product_purchase()
S
60 4 14
gr_get_app_config()
S
60 4 13
GR_Connect::woohook_init()
S
50 3 28
GR_Connect::get_discount_error_message()
S
60 4 13
WC_Points_Rewards_Product::render_variation_message()
S
61 4 12
WC_Points_Rewards_Product::render_available_variation_message()
S
61 4 12
WC_Points_Rewards_Cart_Checkout::ajax_maybe_apply_discount()
S
60 4 12
GR_Connect::gr_send_comment_status_change()
S
63 4 11
Grwoo_API::getproductcategories()
S
52 3 25
Grwoo_API::getuserroles()
S
56 3 19
Grwoo_API::verify_review_enabled()
S
57 3 17
grwoo_woocommerce_active()
S
64 4 9
WC_Points_Rewards_Cart_Checkout::render_thank_you_message()
S
58 3 15
Grwoo_API::getversion()
S
58 3 15
GR_Connect::gr_font_styles()
S
60 3 13
WC_Points_Rewards_Product::add_variation_message_to_product_summary()
S
62 3 12
WC_Points_Rewards_Cart_Checkout::points_last()
S
62 3 12
WC_Points_Rewards_Cart_Checkout::render_earn_points_message()
S
61 3 12
GR_WOO_Discount::hooks()
S
61 3 11
GR_Connect::__construct()
S
51 2 25
GR_WOO_Discount::get_discount_data()
S
53 2 24
GR_WOO_Discount::get_discount_applied_message()
S
68 3 7
GR_Connect::_curlResp()
S
63 3 9
WC_Points_Rewards_Cart_Checkout::discount_removed()
S
68 3 8
Grwoo_API::reset_installation()
S
58 2 15
GR_Connect::init_settings()
S
66 2 8
GR_Connect::commenthook_init()
S
67 2 8
WC_Points_Rewards_Cart_Checkout::coupon_label()
S
70 2 6
WC_Points_Rewards_Cart_Checkout::calculate_discount_modifier()
S
64 2 9
GR_Connect::include_files()
S
66 2 9
GR_Connect::register_rest_routes()
S
70 2 7
WC_Points_Rewards_Product::create_variation_message_to_product_summary()
S
63 2 10
gr_plugin_settings_link()
S
68 2 8
GR_Connect::add_endpoints()
S
71 2 6
GR_Connect::add_query_vars()
S
69 2 7
GR_WOO_Discount::get_discount_code()
S
73 2 5
GR_Connect::gr_woo_points_balance()
S
67 2 9
GR_Connect::admin_init()
S
71 2 7
GR_Connect::add_menu()
S
70 2 6
grwoo_plugin_inactive_notice()
S
67 2 7
GR_WOO_Discount::get_discount_total_from_existing_coupons()
S
67 2 8
Grwoo_API::check_api_permission_lite()
S
70 2 6
GR_Connect::activate_endpoints()
S
70 2 7
WC_Points_Rewards_Cart_Checkout::__construct()
S
60 1 13
HttpRequestHandler::setFollowUrl()
S
77 1 4
WC_Points_Rewards_Product::delete_transients()
S
76 1 4
GR_Connect::gr_ajax_create_account()
S
80 1 3
HttpRequestHandler::getRequestInfo()
S
82 1 3
HttpRequestHandler::getErrorInfo()
S
82 1 3
GR_WOO_Discount::generate_discount_code()
S
71 1 5
WC_Points_Rewards_Product::calculate_points_multiplier()
S
74 1 4
WC_Points_Rewards_Product::calculate_discount_modifier()
S
74 1 4
GR_WOO_Discount::__construct()
S
81 1 3
HttpRequestHandler::setReturnTrasnsfer()
S
77 1 4
WC_Points_Rewards_Product::create_at_least_message_to_product_summary()
S
67 1 8
WC_Points_Rewards_Product::transient_lowest_point_variation()
S
80 1 3
HttpRequestHandler::setPostData()
S
77 1 4
HttpRequestHandler::setUrl()
S
77 1 4
Grwoo_API::verify_rest_api_type()
S
69 1 6
HttpRequestHandler::setTimeout()
S
77 1 4
WC_Points_Rewards_Product::transient_highest_point_variation()
S
80 1 3
WC_Points_Rewards_Product::__construct()
S
64 1 9
HttpRequestHandler::getResponse()
S
82 1 3
HttpRequestHandler::resetRequest()
S
69 1 7
HttpRequestHandler::setHeaders()
S
77 1 4
HttpRequestHandler::setContentTypeAsJSON()
S
76 1 4
grwoo_coupon_disabled_notice()
S
74 1 4