Code Analysis: Easypost WooCommerce Extension (BASIC) 1.2.2

Function Rating Maintainability Complexity Lines of code
WF_Easypost::calculate_shipping()
C
32 28 96
wf_order::set_order_properties()
B
49 22 23
EasyPost\Shipment::lowest_rate()
B
41 19 52
WF_Easypost::init()
B
49 19 23
WF_Easypost::per_item_shipping()
A
36 13 78
EasyPost\Requestor::_curlRequest()
A
42 13 48
EasyPost\Util::convertToEasyPostObject()
A
37 11 76
WF_Easypost::init_form_fields()
A
29
4 178
EasyPost\Address::create()
A
48 13 32
WF_Easypost::generate_easypost_tabs_html()
A
37 6 104
WF_Easypost::get_result()
A
40 9 58
EasyPost\XA_Object::refreshFrom()
A
52 9 24
EasyPost\Error::__construct()
A
52 8 25
EasyPost\Requestor::encode()
A
53 8 22
EasyPost\User::api_keys()
S
54 7 23
WF_Easypost::environment_check()
S
55 7 18
EasyPost\Requestor::handleCurlError()
S
56 6 18
EasyPost\Requestor::_encodeObjects()
S
57 6 17
wf_product::set_item_properties()
S
64 7 8
EasyPost\Requestor::_requestRaw()
S
50 5 29
EasyPost\Address::create_and_verify()
S
54 5 21
EasyPost\XA_Object::__unset()
S
54 5 20
EasyPost\XA_Object::__construct()
S
56 5 19
EasyPost\Rate::create()
S
59 5 13
WF_Easypost::wf_load_product()
S
62 5 12
WF_Easypost::validate_services_field()
S
61 5 11
WF_Easypost::xa_currency_converter()
S
53 4 22
WF_Easypost::prepare_rate()
S
54 4 22
EasyPost\XA_Object::__set()
S
56 4 18
EasyPost\Report::create()
S
56 4 17
EasyPost\Requestor::handleApiError()
S
67 5 6
EasyPost\EasypostResource::_validate()
S
66 5 8
wf_easyshop_basic_activation_check()
S
59 4 14
EasyPost\Error::prettyPrint()
S
60 4 13
EasyPost\Util::convertEasyPostObjectToArray()
S
60 4 13
EasyPost\Shipment::buy()
S
60 4 12
EasyPost\Tracker::create()
S
61 4 12
EasyPost\Requestor::_interpretResponse()
S
61 4 11
EasyPost\Util::isList()
S
63 4 11
WF_Easypost::debug()
S
63 4 10
EasyPost\Address::verify()
S
58 3 15
EasyPost\Report::reportUrl()
S
59 3 13
EasyPost\EasypostResource::className()
S
59 3 13
EasyPost\Report::all()
S
60 3 12
EasyPost\Batch::create_and_buy()
S
60 3 12
EasyPost\Tracker::create_list()
S
61 3 11
EasyPost\Requestor::utf8()
S
69 3 6
wf_order::set_order()
S
67 3 8
EasyPost\EasypostResource::classUrl()
S
66 3 7
EasyPost\Shipment::create()
S
65 3 8
EasyPost\User::create()
S
65 3 8
EasyPost\Event::receive()
S
63 3 10
EasyPost\Batch::create()
S
65 3 8
EasyPost\Insurance::create()
S
65 3 8
EasyPost\Webhook::update()
S
66 3 8
EasyPost\Item::create()
S
65 3 8
EasyPost\Webhook::create()
S
65 3 8
EasyPost\XA_Object::constructFrom()
S
65 3 8
EasyPost\CarrierAccount::create()
S
65 3 8
WF_Easypost::sort_rates()
S
71 3 5
EasyPost\Container::create()
S
65 3 8
EasyPost\Order::create()
S
65 3 8
EasyPost\CustomsInfo::create()
S
65 3 8
EasyPost\Parcel::create()
S
65 3 8
EasyPost\Pickup::create()
S
65 3 8
EasyPost\CustomsItem::create()
S
65 3 8
EasyPost\Refund::create()
S
65 3 8
Wf_Dependencies::woocommerce_active_check()
S
74 3 4
EasyPost\Order::buy()
S
59 2 13
EasyPost\Shipment::create_from_tracking_code()
S
60 2 12
EasyPost\Shipment::label()
S
61 2 12
EasyPost\Shipment::insure()
S
61 2 12
EasyPost\EasypostResource::_save()
S
61 2 11
wf_order::get_id_from_order_obj()
S
78 2 3
WF_Easypost::set_carrier_list()
S
70 2 6
Wf_Dependencies::init()
S
71 2 5
EasyPost\Requestor::request()
S
66 2 8
EasyPost\EasypostResource::instanceUrl()
S
63 2 10
EasyPost\EasypostResource::_retrieve()
S
67 2 8
USPS_Easypost_WooCommerce_Shipping::init()
S
69 2 6
EasyPost\EasypostResource::_create()
S
62 2 10
EasyPost\EasypostResource::_delete()
S
63 2 10
EasyPost\XA_Object::__get()
S
65 2 9
EasyPost\XA_Object::offsetGet()
S
78 2 3
wf_order::get_order_currency()
S
78 2 3
EasyPost\XA_Object::valid()
S
74 2 4
EasyPost\XA_Object::_toJSON()
S
70 2 6
EasyPost\XA_Object::_toArray()
S
72 2 6
WF_Easypost::__construct()
S
66 1 8
USPS_Easypost_WooCommerce_Shipping::__construct()
S
67 1 7
EasyPost\Shipment::all()
S
78 1 3
EasyPost\Error::getHttpBody()
S
82 1 3
EasyPost\Insurance::retrieve()
S
78 1 3
WF_Easypost::admin_options()
S
78 1 4
EasyPost\Shipment::save()
S
80 1 3
EasyPost\Batch::buy()
S
67 1 7
EasyPost\Insurance::all()
S
78 1 3
EasyPost\Refund::retrieve()
S
78 1 3
EasyPost\Item::retrieve()
S
78 1 3
EasyPost\Item::all()
S
78 1 3
EasyPost\Item::save()
S
80 1 3
EasyPost\Batch::remove_shipments()
S
67 1 7
EasyPost\Item::retrieve_reference()
S
67 1 7
EasyPost\Batch::add_shipments()
S
67 1 7
EasyPost\Batch::create_scan_form()
S
69 1 6
EasyPost\XA_Object::__isset()
S
79 1 3
EasyPost\CarrierAccount::retrieve()
S
78 1 3
EasyPost\EasyPost::setApiBase()
S
80 1 3
EasyPost\Shipment::refund()
S
67 1 7
EasyPost\Requestor::apiUrl()
S
76 1 4
EasyPost\User::save()
S
80 1 3
USPS_Easypost_WooCommerce_Shipping::scripts()
S
68 1 7
EasyPost\CustomsInfo::save()
S
80 1 3
EasyPost\Order::save()
S
80 1 3
EasyPost\Address::retrieve()
S
78 1 3
EasyPost\Requestor::__construct()
S
81 1 3
EasyPost\Pickup::retrieve()
S
78 1 3
EasyPost\CustomsInfo::retrieve()
S
78 1 3
EasyPost\User::all_api_keys()
S
71 1 5
EasyPost\Insurance::save()
S
80 1 3
WF_Easypost::generate_services_html()
S
74 1 5
EasyPost\Batch::all()
S
78 1 3
EasyPost\CarrierAccount::all()
S
78 1 3
EasyPost\ScanForm::retrieve()
S
78 1 3
EasyPost\EasypostResource::_all()
S
67 1 7
EasyPost\Shipment::barcode()
S
69 1 6
EasyPost\Report::retrieve()
S
78 1 3
WF_Easypost::generate_activate_box_html()
S
71 1 6
EasyPost\Batch::label()
S
67 1 7
EasyPost\EasyPost::setApiKey()
S
80 1 3
EasyPost\Rate::save()
S
80 1 3
wf_product::__call()
S
81 1 3
xa_basic_easypost_woocommerce_inactive_notice()
S
69 1 9
wf_order::__construct()
S
73 1 5
EasyPost\XA_Object::offsetExists()
S
79 1 3
EasyPost\XA_Object::offsetSet()
S
81 1 3
EasyPost\Shipment::retrieve()
S
78 1 3
EasyPost\Tracker::retrieve()
S
78 1 3
EasyPost\Order::all()
S
78 1 3
EasyPost\XA_Object::offsetUnset()
S
81 1 3
EasyPost\CustomsItem::all()
S
78 1 3
EasyPost\ScanForm::save()
S
80 1 3
EasyPost\Container::retrieve()
S
78 1 3
EasyPost\Tracker::save()
S
80 1 3
WF_Easypost::get_package_requests()
S
76 1 4
EasyPost\Shipment::get_rates()
S
67 1 7
EasyPost\Rate::all()
S
78 1 3
EasyPost\Order::retrieve()
S
78 1 3
EasyPost\Refund::all()
S
78 1 3
EasyPost\EasyPost::getApiKey()
S
80 1 3
EasyPost\Container::all()
S
78 1 3
EasyPost\User::retrieve()
S
78 1 3
EasyPost\XA_Object::__toString()
S
81 1 3
EasyPost\EasyPost::getApiVersion()
S
80 1 3
EasyPost\XA_Object::key()
S
80 1 3
EasyPost\Error::getHttpStatus()
S
82 1 3
EasyPost\Tracker::all()
S
78 1 3
EasyPost\Shipment::stamp()
S
69 1 6
EasyPost\Parcel::all()
S
78 1 3
EasyPost\Parcel::save()
S
80 1 3
EasyPost\Webhook::all()
S
78 1 3
wf_is_woocommerce_active()
S
82 1 3
WF_Easypost::clear_transients()
S
75 1 4
EasyPost\Pickup::cancel()
S
67 1 7
EasyPost\Address::all()
S
78 1 3
EasyPost\XA_Object::current()
S
80 1 3
EasyPost\CarrierAccount::save()
S
80 1 3
EasyPost\CustomsInfo::all()
S
78 1 3
USPS_Easypost_WooCommerce_Shipping::shipping_init()
S
81 1 3
EasyPost\CarrierAccount::delete()
S
80 1 3
EasyPost\Rate::retrieve()
S
78 1 3
EasyPost\User::retrieve_me()
S
78 1 3
EasyPost\Order::get_rates()
S
67 1 7
EasyPost\XA_Object::next()
S
80 1 3
EasyPost\CustomsItem::retrieve()
S
78 1 3
EasyPost\ScanForm::create()
S
78 1 3
EasyPost\CarrierAccount::types()
S
71 1 5
EasyPost\Batch::retrieve()
S
78 1 3
EasyPost\Address::save()
S
80 1 3
EasyPost\EasypostResource::refresh()
S
67 1 7
EasyPost\ScanForm::all()
S
78 1 3
EasyPost\Pickup::buy()
S
67 1 7
wf_product::__construct()
S
73 1 5
USPS_Easypost_WooCommerce_Shipping::add_method()
S
77 1 4
EasyPost\EasypostResource::_update()
S
66 1 8
EasyPost\Webhook::delete()
S
78 1 3
EasyPost\CustomsItem::save()
S
80 1 3
EasyPost\Container::save()
S
80 1 3
EasyPost\EasyPost::getApiBase()
S
80 1 3
EasyPost\XA_Object::rewind()
S
81 1 3
USPS_Easypost_WooCommerce_Shipping::plugin_action_links()
S
65 1 8
EasyPost\EasyPost::setApiVersion()
S
80 1 3
EasyPost\Webhook::retrieve()
S
78 1 3
EasyPost\Parcel::retrieve()
S
78 1 3