As far as I understand, the idea is to determine whether the cable is the bottleneck from a hardcoded list of theoretical device capabilities with actually observed connection speeds as reported by the OS.
It would be nice to just compare with the device's reported maximum capability, but I'm not sure whether macOS exposes that in any API.
It would be nice to just compare with the device's reported maximum capability, but I'm not sure whether macOS exposes that in any API.