Opposition parties said the results showed a "decade of educational failure" under the SNP government, with First Minister Nicola Sturgeon previously saying she wanted to be judged on her record on education.