(MV) Master plugin?

Hello everyone. (First of all, sorry if the thread isn't in the good place, i didn't knew where to put it)
So i come to you because i wanted to know some points...
Considering how the plugins and module works:
Can we make a kind of "Master" File? (And so having only one plugin more than bunch of them.)??
(IF not) Can we at least use only one file for battle plugin, scene plugin etc... (so not necessary all lpugin in one file, but at least still make it lighter.)
Or Can we directly alterate the Base JS file to put in all the functions and plugins in? (And is it usefull? I strongly guess this can only be nice! The game will not have to make alternate research and will not have to check what version of something do... To be clear, if i put a plugin alterating Tile size for example, I assume the game HAve to check for it. BUT if we replace base line, code, so it will not need to check for it and win performance right?)
Can we make a kind of "Master" File? (And so having only one plugin more than bunch of them.)
We can. But why would you do it? The way it is makes it more convenient to update plugins.
Can we at least use only one file for battle plugin, scene plugin etc... (so not necessary all lpugin in one file, but at least still make it lighter.)
It doesn't make it any lighter if you separate the scripts or keep them in one file. If you keep them in one file, it also makes them more difficult to read, orientate in and update.
Or Can we directly alterate the Base JS file to put in all the functions and plugins in? (And is it usefull? I strongly guess this can only be nice! The game will not have to make alternate research and will not have to check what version of something do...
It's possible, but not useful due to already mentioned reasons. A file that has over 100k lines to load also takes a hell lot of time to load in a text editor. Of course having all code unified in one gigantic function instead of having one function called three times and redefined gains some performance. But the performance gains are pretty minuscule and not worth the hassle and time investment to say the least.

The only time when it could really help would be before game deployment. But then again, it's too much work for way too little gain and it's better to sacrifice these tiny bits of time it takes to call three functions than to spend a minute copy pasting it so that we have everything in one gigantic function. This would also involve renaming and stuff... And also if you have plugins that can't be edited without author's written consent, if you don't receive that consent, you're basically screwed, because any attempts of unifying plugins might crash the game due to artificially induced "wrong plugin ordering".
@Poryg I see...
The fact is the game i'm making is for mobile... So at this time i think each performance win is good to take... (I have only 1 process in the game, the "Time" common event. Not even really set as parallel as it is called by "Orange time plugin". Still it is slow sometimes...)
Of course on computer i have no issues...

P.S.: I do not planned to update plugins while they work nice. In fact most of plugins i'm using are not update anymore.
Since Javascript is single threaded, it will always be slow for mobiles, since you can only use one cpu core. I also have lags in my quad core 1.6GHz PC. But there just is no way around it.
You just convince me to do it at the end... This make performance increase even more important at the end.. Still thank you, i know it can be done and can help a little...
(I assume it is a lot of work, but compared to the time spent on creating a full game, this should be quick... )

Edit: Even more important when you spent 4 month to create a game working slowly è_è
While doing this manually would be arduous and prone to introducing bugs, if RPG Maker itself compiled and minified the JavaScript on deployment, that would be a nice feature addition that may help performance a little.
True i didn't even look at if the deployment do it....
I don't believe that it does but it would be cool if it did. You might be able to use a third party application to do it yourself.
More than cool. Actually how can you say you make deployment for mobile if the code is a mess... lol

Original thread: https://forums.rpgmakerweb.com/threads/mv-master-plugin.90240/