Pupils and staff are celebrating after data shows the school is one of the best attended in the country.