Do you want to make sure your website is free of malicious code? There are many tools you can use to prevent malware attacks but we will first cover how to check your site for malware. With WordPress you can install a plugin called Quttera Web Malware Scanner.
So first go to your WordPress dashboard and select Plugins > Add New. Then type in Quttera Web Malware Scanner.
Once activated you can go find the plugin to the left navigation admin menu under Quttera Scanner.
Make sure your domain is correct then select Scan my website. Once complete you will be able to view your site report.
If you do have malicious files or suspicious files you can then head over to Sucuri.com and scan your website again. They also offer a paid version where they will look after your site for you.
They automatically monitor your website 24×7 against all threats. They also offer a malware cleanup service which is included in the price of their service (no matter how big or small your site is).