Code Analysis: WooCommerce Payment Gateway – SUMIT 2.4.3

Function Rating Maintainability Complexity Lines of code
WC_OfficeGuy::payment_fields_order()
D
26
44 160
officeguy_woocommerce_gateway()
D
13
2 631
WC_OfficeGuy::init_form_fields()
C
20
9 336
OfficeGuyPayment::ProcessOrder()
C
33 24 93
OfficeGuyPayment::GetOrderRequest()
B
38 20 62
OfficeGuyPayment::CreateDocumentOnPaymentCompleteInternal()
B
36 19 72
WC_OfficeGuy::__construct()
B
40 19 54
OfficeGuyPayment::ValidateOrderFields()
B
43 19 43
OfficeGuyPayment::GetOrderCustomer()
A
44 16 40
OfficeGuyTokens::GetCardBrand()
A
52 15 22
OfficeGuyPayment::ProcessOrderRefund()
A
39 10 59
OfficeGuyPayment::GetDocumentOrderItems()
A
40 9 62
OfficeGuyStock::UpdateStock()
A
44 10 42
OfficeGuyPayment::GetOrderLanguage()
A
57 10 15
OfficeGuyPayment::GetPaymentOrderItems()
A
42 6 57
OfficeGuyPayment::ThankYou()
S
49 7 28
OfficeGuySubscriptions::GetMonthsString()
S
55 7 19
Cartflows_Pro_Gateway_OfficeGuy::process_offer_payment()
S
47 6 33
OfficeGuyPayment::CreateDocumentOnPaymentComplete()
S
56 7 16
OfficeGuySubscriptions::UpdateAvailablePaymentMethods()
S
62 8 10
OfficeGuyTokens::ProcessToken()
S
48 5 31
OfficeGuySubscriptions::CartContainsWooCommerceSubscription()
S
59 5 13
WC_OfficeGuy::payment_fields()
S
62 5 12
OfficeGuySubscriptions::OrderPagePriceString()
S
59 5 12
OfficeGuySubscriptions::AdminOrderPageProduct()
S
59 5 12
OfficeGuyPayment::GetOrderItemMethods()
S
60 5 12
OfficeGuySubscriptions::GetProductPriceString()
S
60 5 11
Cartflows_Pro_Gateway_OfficeGuy::GetOfferPaymentRequest()
S
51 4 22
OfficeGuyStock::CreateSchedules()
S
58 4 16
OfficeGuyPayment::CreateOrderDocument()
S
48 3 31
OfficeGuyStock::DashboardSyncMessage()
S
59 4 16
OfficeGuyPayment::GetPaymentOrderItem()
S
50 3 31
OfficeGuyTokens::GetTokenRequest()
S
56 3 17
OfficeGuySubscriptions::SaveProductFields()
S
67 4 7
OfficeGuyAPI::WriteToLog()
S
63 4 9
OfficeGuyStock::RegisterDashboardWidget()
S
70 4 5
OfficeGuyPayment::GetMaximumPayments()
S
65 4 8
OfficeGuyAPI::PostRaw()
S
51 2 26
OfficeGuySubscriptions::ProductSettingsTab()
S
48 1 35
OfficeGuyGateway()
S
65 3 9
OfficeGuySubscriptions::CartContainsOfficeGuySubscription()
S
67 3 7
OfficeGuyPayment::CatalogPageBuyNowButton()
S
69 3 5
OfficeGuyPayment::ProductPageBuyNowButton()
S
69 3 5
OfficeGuyPluginSetup::ActivationRedirect()
S
67 3 7
OfficeGuyStock::UpdateStockOnCheckout()
S
69 3 6
OfficeGuySubscriptions::ProductSettingsTabScript()
S
58 1 28
OfficeGuyPayment::GetOrderPaymentMethodFromToken()
S
61 2 12
OfficeGuySubscriptions::AddProductType()
S
62 2 11
WC_OfficeGuy::get_post()
S
73 2 5
OfficeGuyPayment::GetOrderPaymentMethodPCI()
S
62 2 10
OfficeGuyAPI::Post()
S
62 2 10
OfficeGuyPayment::GetOrderVatRate()
S
65 2 8
Cartflows_Pro_Gateway_OfficeGuy::get_instance()
S
73 2 5
OfficeGuyPayment::AdminPageCreateDocumentButton()
S
69 2 6
WC_OfficeGuy::AddScripts()
S
66 2 8
WC_OfficeGuy::ProcessSubscriptionPayment()
S
69 2 7
WC_OfficeGuy::get_get()
S
73 2 5
OfficeGuyStock::RenderDashboardWidget()
S
64 1 11
OfficeGuySubscriptions::AddProductSettingsTab()
S
66 1 8
OfficeGuyPluginSetup::Init()
S
71 1 5
OfficeGuySubscriptions::CartPagePriceString()
S
78 1 3
WC_OfficeGuy::AddPaymentGateway()
S
76 1 4
OfficeGuyPayment::CreateDocumentOnPaymentCompleteInternalHook()
S
79 1 3
OfficeGuyAPI::GetURL()
S
79 1 3
OfficeGuyPluginSetup::ActionLinks()
S
65 1 9
OfficeGuyCartFlow::AddPaymentGateway()
S
68 1 7
WC_OfficeGuy::validate_fields()
S
81 1 3
OfficeGuyStock::SetupCronIntervals()
S
68 1 7
WC_OfficeGuy::process_refund()
S
75 1 4
WC_OfficeGuy::admin_options()
S
67 1 10
OfficeGuyPayment::GetCredentials()
S
71 1 6
OfficeGuyPluginSetup::ActivateHook()
S
79 1 3
WC_OfficeGuy::payment_fields_save_payment_method_checkbox()
S
71 1 7
Cartflows_Pro_Gateway_OfficeGuy::__construct()
S
91 1 2
OfficeGuySubscriptions::ProductPagePriceString()
S
79 1 3
WC_OfficeGuy::add_payment_method()
S
81 1 3
OfficeGuyPayment::IsCurrencySupported()
S
72 1 3
WC_OfficeGuy::ReceiptPage()
S
78 1 3
OfficeGuyTokens::AddCreditCardTypeLabel()
S
74 1 4
officeguy_load_textdomain()
S
78 1 3
OfficeGuyPayment::AdminPageCreateDocument()
S
79 1 3
WC_OfficeGuy::process_payment()
S
75 1 4