I think this was an incendiary device that was lit and stuck in the bathroom waste can next to the cockpit. I think burning wires would have given more warning. This had to be a low level explosion
Solving one problem (keeping terrorists out of the cockpit with stronger doors) leads to another problem (getting through the stronger door if the terrorist is already in the cockpit.)
so the plane flew on for hours after an explosion and while it was more than likely on fire . . .