Make sure your squat rack has safety features like the spotter's arms. You also want it to have the option to adjust the height of the rack for multiple users of different heights.
A rack depth of 24” or 30” might be a good choice. It provides enough space to squat over safety straps without taking too much room. But you may consider consulting a gym instructor or a ...