Okay, that works as well. My installed plugin works without the extra closing/opening of the PHP Section. I have just copied the code to a newly created plugin. At least it’s fixed.
SOLVED
It was easy to fix but is nonetheless a weird error.
Just create a new own plugin and copy-paste all the stuff from the broken plugin to the new one… 🙂