A secondary school that had been told it “requires improvement” has seen its rating jump to “good” after its latest visit from inspectors.