Writing code can be boring sometimes, whether you need some new features, but don’t like them or the process itself has somehow become tedious. You cannot focus and you are at a dead-end. The only thing you want is to get this thing working and finish it already. Sometimes what you need to get done is so simple that two lines in your theme’s functions.php
file would probably do the trick, and the code for the header of a plugin alone is 10 lines. Why bother coding a plugin at all?