Element orders and codegrees of characters in non-solvable groups