Education is very important... however, test scores don't give you the full picture. Take it from me. I taught in an academically stuggling school that could make itself look much better on paper (another state so don't worry). Test scores and percentages are a small part of the plan. If your child is not comfortable in the school he/she will also be at a disadvantage- socially- which at all grade levels is important. Most kids who do not adjust socially struggle with grades, friends, and self. From what I've seen, kids who's parents stay involved (pre-12 not just in elementary school) and who's kids are involved will usually succeed whever they land.
I'm not saying one choice is better than the other but also remember this...
a) Test scores are not a full measure of the worth or success of a school.
b) Feelings of love and acceptance are important.
c) It takes time to make new friends.
d) There is no place for struggling schools to hind- they are ALL trying to be better at what they do.
e) If your school is struggling get more involved- PTA or PTSA for example. Step up and speak up. Teachers can ask for things for their kids until they are blue in the face.
Parents can really help make the school a better place.
f) Speak to middle school and high school teachers (where your kids would go) to find out if your school is meeting their expectations. This will help provide you with areas of concern (if they are small enough you can always work on these outside of school). Visiting these schools will provide you with the bigger picture.
Hope this helps.