Don't bring a laptop to class. Even just listening passively to a lecture can help. The alternative of posting on WP, while more enjoyable, does impact your grades a bit. And yet I'm making this post in the middle of a lecture anyways...
As for the other stuff, ugh, yeah I remember middle school. Hated it. Just do your best to get through it, not sure if there's anything else that could be done.