I would choose to run my coop on the lean side of 4 s.f./bird, meaning, that in that coop, I'd rather keep the flock size at 12 - 16 instead of the 24 birds that would max the coop out. This allows extra room for "behavioral" issues, allows room for a roo. IMO, when you add a roo to the mix, you automatically need more room. This also allows you to partition off part of the coop to allow for integration, raising chicks in the coop, management of a broody. In the summer, your stocking density can be a bit higher. Most people thin the herd as winter approaches, and have a higher density in the spring/summer b/c they are raising the next generation of chicks, while maximizing the productivity of the older layers before they shut down in late fall. In my 12 x 10, I keep 16 - 25 birds through the winter. Spring and summer, I have about 25 birds, but have the benefit of having an other coop that meets all of my chick and grow out needs. Big coop has built in raised broody box, 6 nest boxes, 20 l.f. of perch.
People often overlook vertical space. By allowing lots of ceiling height, that allows you to increase your floor space by incorporating a platform, or a raised broody/chick cage. It also allows plenty of deep litter.
Standard recommendation is 1 nest box/4-5 hens, though, no matter how many boxes you have, they will choose a favorite, and fight over it, all pile into the box at the same time, and stand outside the favorite box yelling until the occupant vacates it. Nest boxes should be placed lower than the perches. Perches should be placed 2' or more below the ceiling.