Education inspectors have praised the “impressive community spirit” at a primary school after it was rated as “outstanding” in several categories.