I have created a plugin for WordPress although I would like to encrypt it to stop people from viewing the source code. I've heard of Zend Guard and IonCube although is there a free alternative to these?
Looks like the things you choose are not working this way:
If you don't want to share the source, provide the code as a service. You may require the user to enter API key etc.
See: SaaS