example code checks if plugin is active
better variable name
Added wp-cli support