Ok I measured and 12 is ideal but you could make it work with a minimum of 6 inches that would be with it pushing against the wall behind it.
For what it's worth I didn't hear much with them either. I personally haven't had much luck with cheaper power cords.