WCMP_Export D

Total Complexity 222
Dependencies 46
Dependents 7
Total lines 1,754
Lines of code 1,001
Logical lines of code 555
Comment lines 389
Methods 50
Properties 6

Methods 50

Method Rating Maintainability Complexity Lines of code
export()
B
39 16 64
addShipments()
A
38 12 69
prepareReturnShipmentData()
A
42 12 51
getShipmentIds()
A
47 13 35
admin_notices()
A
41 11 64
isActiveMethod()
A
54 9 23
getShippingClass()
A
49 8 31
getPackageTypeFromShippingMethod()
S
50 7 30
getPackageTypeFromOrder()
S
50 7 29
getShipmentData()
S
52 6 25
exportReturn()
S
46 5 39
generateCustomsDeclaration()
S
47 5 37
wc_flat_rate_fee()
S
55 6 21
parse_errors()
S
53 5 24
setFeedbackForClient()
S
58 5 14
addReturnInTheBox()
S
52 4 28
getShippingMethod()
S
60 5 12
saveOrderCollection()
S
47 3 37
convertWeightToGrams()
S
56 4 19
getOrderShippingClass()
S
58 4 16
get_item_display_name()
S
65 5 8
wc_flat_rate_evaluate_cost()
S
50 3 29
addMultiCollo()
S
60 4 13
getPackageTypeAsString()
S
61 4 11
updateOrderMetaByCollection()
S
54 3 22
getLegacyShippingMethod()
S
59 3 16
getAllowedPackageType()
S
63 4 10
getShipmentStatusName()
S
49 2 30
sanitize_posted_array()
S
65 4 9
saveShipmentData()
S
61 3 13
filterOrderDestinations()
S
61 3 12
downloadOrGetUrlOfLabels()
S
56 2 16
getOrderLabels()
S
58 2 16
saveTrackTracesToOrders()
S
65 3 9
addTrackTraceNoteToOrder()
S
64 3 9
exportByOrderId()
S
63 3 10
modal_dialog()
S
66 3 8
printLabels()
S
62 2 13
exportAccordingToMode()
S
61 2 12
getPackageTypeHuman()
S
70 2 6
addFakeMultiCollo()
S
72 2 5
getDigitalStampRangeOptions()
S
67 2 7
getShipmentBarcodeFromApi()
S
65 2 8
init_api()
S
68 2 7
addConsignments()
S
65 2 9
getSetting()
S
80 1 3
getChosenOrDefaultShipmentOption()
S
78 1 3
getUserAgents()
S
68 1 7
modal_success_page()
S
77 1 4
__construct()
S
66 1 8