you simply cannot encrypt code that is supposed to be run inside a browser, that is a technical impossibility.
What's impossible about it? Obviously, you cannot encrypt the entire code – at least some part of the code needs to remain unencrypted. However, the plugins are loaded "on demand", so to speak. It would certainly be possible to add a decryption step to that loading. I don't think it would be
easy (I doubt it's trivially patchable; you might need to rewrite the PluginManager to use XHR to load them - they're currently loaded synchronously… or another option would be that the decryption code could be embedded into each plugin by a postprocessing tool), but it would be possible.
I do think it really isn't worth the trouble, though.
they are completely gone, not hidden or moved somewhere else
I would note that this statement is
not strictly accurate.
Certainly, if you delete the annotation comments from the plugin file, they're completely gone and can't be fully recovered in their original form. But I wouldn't go so far as to say they're entirely unrecoverable. It depends on the complexity of the parameters, but you can probably recover at least the simpler ones (and likely all of them) by examining plugins.js. Plugin commands in MZ could theoretically be recoverable this way as well, as long as the game actually uses them, but in that case there's no central place to find them so it would be much harder.
To put it another way: even without the annotations, it's trivial to get a list of parameters that the plugin uses. Of course, converting that list back to annotations is a lot of work for a prospective thief, which is presumably the point.
I'll also note that this form of protection won't help for all plugins. Some plugins don't even use parameters, after all.
one can no longer manage plugin parameters nor call plugin commands
This sounds a bit misleading, so I'd like to clarify that you can still call plugin commands just fine (as in, any calls to plugin commands will still work); what you can't do is open up the editor and create new calls to plugin commands.