It's not about you, man.
Tech is stupid
Why do you know a stupid technique?
We were nulling and using a plugin ourselves. The plugin developer has created "vulnerability" codes for last 8 versions. Developer created a small vulnerabilities to hack us for exactly 2 months

Normally, if we did it like you, we wouldn't be checking the javascript codes.
The developer has released javascript-triggered vulnerability! like a joke.
Compare method can work in basic plugins, but it is nonsense to use this system in such plugins. Also, this developer is a total psychopath. It's hard to predict what it can do.