I would not rule out Matti Haveri's observation as CleanMyMac has burned others over the last few years.
Before you do that though…
Formally quit Script Editor with a ⌘Q
In the Finder, press shift+cmd+G to open the Go to Folder panel. Copy and paste the following into that dialog, followed by a return:
~/Library/Preferences
That will open a new Finder Window on the preceding Preferences folder where you locate and move to your Desktop, the following items that may exist:

Close that Finder Window. And once more, press shift+cmd+G to open the Go To Folder dialog and copy/paste the following end with a return:
~/Library/Saved Application State
In that new Finder Window opened on that location, look for and move to the Trash, the following folder (or any with the ScriptEditor name in it:

Empty the Trash and then shut down the Mac and then power it back on. Once you have the Desktop back, press and hold the shift key while launching Script Editor. Any change? If it is working as expected, you can move those .plist files you previously moved to the Desktop — to the Trash and empty it.