* style: adhere to contributing guidelines and optimize core logic * plugin: adhere to coding style and fix initialization