I have a client with a Wordpress site. They are running a couple of plugins which are causing Fatal Memory errors. The 2 plugins specifically are Simple Map & Drain Hole.I am not sure which of these plugins exactly is causing the issue. Simple Map is used to manage locations or providers, much like Google Places. Drain Hole is used to protect files via URL cloaking.
Within Simple Map, they currently have about 900 locations. Within Drain Hole they currently have about 700 files protected. During development, we had no issues whatsoever, as our PHP memory limit was set to 64MB. On their live server, the host only allows 30MB, and will not allow this to be changed.
My issue/question is this: If I move them to a new host, one that allows atleast 64MB, how can I be sure that if they continue to add to those plugins, that this will not happen again? Is there anyway to test if these memory spikes are legitimate, or if they are a result of poor, inefficient code?
EDIT: The fatal error seems to be hit or miss. It only happens in certain screens of the Wordpress Admin panel, specifically those dealing with Simple Map. Although if I disable the Drain Hole plugin, the error goes away completely. The error:
**Fatal error:** Out of memory (allocated 34078720) (tried to allocate 44 bytes) in /fake/dir/wp-includes/wp-db.php on line 1400