Code Analysis: Payment Pro (Direct Payment + Hosted) - PayPal 1.0.0

Function Rating Maintainability Complexity Lines of code
POCOPPP_WC_Gateway_PayPal_Pro::process_payment()
D
29
32 119
POCOPPP_WC_Gateway_PayPal_Pro::validate_fields()
C
34 31 74
POCOPPP_WC_Gateway_PayPal_Pro::doPayment()
B
31 18 102
determineCardType()
A
53 17 20
POCOPPP_WC_Gateway_PayPal_Pro::ppp_response()
A
37 13 68
POCOPPP_WC_Gateway_PayPal_Pro::get_currency_digit_code()
A
27
2 162
POCOPPP_WC_Gateway_PayPal_Pro::create_combo()
A
49 11 26
POCOPPP_WC_Gateway_PayPal_Pro::process_admin_options()
A
44 9 47
pocoppp_save_post()
A
48 9 30
POCOPPPCentinelClient::unpackPayload()
A
49 9 29
POCOPPP_WC_Gateway_PayPal_Pro::doQuery()
A
45 8 40
POCOPPP_WC_Gateway_PayPal_Pro::init_form_fields()
S
35 1 116
POCOPPP_WC_Gateway_PayPal_Pro::generate_cardsettings_html()
S
45 5 47
POCOPPPCentinelClient::sendHttp()
S
50 6 28
POCOPPP_WC_Gateway_PayPal_Pro::doRefund()
S
48 5 33
POCOPPP_WC_Gateway_PayPal_Pro::doCentinelLookup()
S
41 3 51
POCOPPP_WC_Gateway_PayPal_Pro::process_refund()
S
53 5 21
prettyPrintData()
S
51 4 29
POCOPPP_WC_Gateway_PayPal_Pro::validate_card()
S
60 5 13
POCOPPPCentinelClient::generatePayload()
S
57 4 17
POCOPPP_WC_Gateway_PayPal_Pro::getPostValue()
S
67 5 7
POCOPPP_WC_Gateway_PayPal_Pro::doCentinelAuth()
S
49 3 29
POCOPPP_WC_Gateway_PayPal_Pro::__construct()
S
45 2 42
pocoppp_capture()
S
54 2 21
POCOPPPCentinelClient::getRequestXml()
S
56 2 16
POCOPPP_WC_Gateway_PayPal_Pro::confirm_hosted_payment()
S
64 3 9
POCOPPP_WC_Gateway_PayPal_Pro::decode_array()
S
65 3 9
clearCentinelSession()
S
67 3 8
POCOPPPXMLParser::deserializeXml()
S
62 2 11
POCOPPP_WC_Gateway_PayPal_Pro::generate_html_html()
S
54 1 25
POCOPPP_WC_Gateway_PayPal_Pro::doCapture()
S
57 1 16
POCOPPP_WC_Gateway_PayPal_Pro::checkMaestroCard()
S
65 2 8
POCOPPPCentinelClient::printRequestXml()
S
64 2 10
POCOPPP_WC_Gateway_PayPal_Pro::enqueue_scripts()
S
70 2 6
POCOPPP_WC_Gateway_PayPal_Pro::receipt_page()
S
73 2 5
POCOPPP_WC_Gateway_PayPal_Pro::payment_fields()
S
69 2 7
redirectBrowser()
S
64 2 9
pocoppp_add_meta_boxes()
S
67 2 7
pocoppp_activate()
S
76 1 4
POCOPPPXMLParser::__construct()
S
81 1 3
pocoppp_init_paypal_pro()
S
72 1 5
POCOPPPCentinelClient::getUnparsedResponse()
S
82 1 3
pocoppp_add_paypal_pro_class()
S
77 1 4
POCOPPPCentinelClient::getValue()
S
81 1 3
POCOPPPCentinelClient::setErrorResponse()
S
68 1 7
POCOPPP_WC_Gateway_PayPal_Pro::get_transaction_details()
S
71 1 6
POCOPPPCentinelClient::add()
S
79 1 3
POCOPPPXMLParser::elementData()
S
82 1 3
POCOPPPCentinelClient::escapeXML()
S
72 1 5
POCOPPPXMLParser::endElement()
S
74 1 5
POCOPPPXMLParser::startElement()
S
82 1 3
POCOPPP_WC_Gateway_PayPal_Pro::get_returnUrl()
S
77 1 3