Thank you, Jass. My short term fix is simply to use the function. This appears to be working correctly –
$size = wpdm_package_size( $id );