A “high-achieving” student who plotted with a friend to murder a teacher at a Perth high school is sentenced, with the judge saying the term would have been longer if it hadn’t been for ongoing issues at WA’s embattled juvenile detention centre.