So comparisons are hard, even between German states.
I also think this autonomy is one of the reasons why the overall average quality is so bad: Schools are a political issue that is used to distinguish a new state government from a previous one, and to distinguish one state from another. So with each election, you get state politicians running around like headless chickens, trying to "make things better" in schools by randomly doing "something", because what the previous government in the same state did obviously cannot be right. And what that other state governed by a different party does cannot be right either. ad inf...
To be pedantic, this disjointed system IS the German educational system. And I would worry about fixing it before putting the blame on immigrants.