The problem is that you also get malware with legit premium plugins. I bought a $59 plugin on codecanyon and my WordPress install was hacked because it had an unpatched bug that allowed anyone to register as admin.
Did not get any single warning email from codecanyon or the dev, I just got lucky that the hacker was dumb enough to try to claim my site on Google search console and Google warned me immediately, so I could just revert a backup after understanding what was going on. Luckily, again, the hacker left the hints in the admin panel by uninstalling my "premium" plugin, so I understood that was how he could get inside.
If it's a new website, avoid WordPress. It's a security mess and extremely inefficient. I am burdened by this technical debt, migrating now it's very time consuming.


