Okay, no it's not "optimized" at all. Literally, anyone who's been around coding anything for Minecraft could tell this. Why would you use an "on every tick". That is so stupid, that would literally make this worse than the original clearlag in terms of fixing lag, which is already terrible. Please remove that "every tick" event.
it only sets 4 variables every tick and that literally takes 3 bytes of RAM which is next to nothing. but item drops take more RAM so this plugin actually improves your server lag.