Even if you haven't played a Metroidvania before, there's an enemy stuck on there, and the best way to kill it is to shoot it diagonally. Thus you'll end up hitting the wall and breaking it anyway. If you have played a Metroidvania before, you just shoot every wall just in case a secret pops out.