Update plugin header
Check if $enable is set
Make sure that the $post var is set and is an object before using it