Upgrade plugins and fix some codenarc violations