Title: jscripts.php slowing page loading
Last modified: August 22, 2016

---

# jscripts.php slowing page loading

 *  Resolved [hm_u](https://wordpress.org/support/users/hm_u/)
 * (@hm_u)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/jscriptsphp-slowing-page-loading/)
 * Hi,
    Thanks for your great plugin! It has managed to completely eradicate spam
   on my blog. I have some performance issue though. I’m on a shared hosting and
   reaching cpu limit, so I was looking at plugins using resources with P3 optimizer.
   I found that WP-SpamShield was using maybe a bit too much resources. Plus today
   I realized when testing my blog that the page loading was blocked for almost 
   4s on the script [http://www.maathiildee.com/wp-content/plugins/wp-spamshield/js/jscripts.php](http://www.maathiildee.com/wp-content/plugins/wp-spamshield/js/jscripts.php)
   What could be causing that? Is this a bug? Or is it just that my server cpu is
   overloaded? My website is running with WP SuperCache, but it seems that this 
   script generates data on the fly, which slows down everything else. Have a look
   at the Pingdom: [http://tools.pingdom.com/fpt/#!/dqoJYP/www.maathiildee.com](http://tools.pingdom.com/fpt/#!/dqoJYP/www.maathiildee.com)
 * Thanks in advance for your suggestions!
 * [https://wordpress.org/plugins/wp-spamshield/](https://wordpress.org/plugins/wp-spamshield/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Contributor [redsand](https://wordpress.org/support/users/redsand/)
 * (@redsand)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/jscriptsphp-slowing-page-loading/#post-5475893)
 * Hi hm_u,
 * Sorry to hear about that. Wow, yeah that file shouldn’t be slowing down your 
   site. When I built this plugin, benchmarking and speed has been a primary focus
   from the beginning. I’ve used P3 Performance Profiler Plugin from the day 1 and
   tested it on shared hosting servers to simulate the average user experience. 
   I built benchmarking into that script as well. If you click on the link to the
   jscripts.php it has a line:
    `// Generated in: X.XXXXXX seconds`
 * On yours it said between 1.5 and 4+ seconds and wouldn’t load a few times. That
   generation time should be _on average 0.000500 seconds or less_ on a shared server.
   In other words, it should generate in less then half a millisecond (1/1000 of
   a second). It will be even faster on VPS or dedicated. If it’s taking as long
   as it is, something is very wrong on the server. I purposely made that script
   lightweight on server resources so if _that_ is slowing anything down, your site
   won’t be able to handle very much. WP-SpamShield is recommended by several web
   hosts for helping to protect and speed up sites so I’m confident it’s not the
   source of the issue there.
 * WP Super Cache is great and we use it on all our sites. Yes, that file can’t 
   be cached – nor should it be – because it has to execute some PHP code that is
   vital to the anti-spam process.
 * One question…do you know what version of PHP is running on the server? If you’re
   not sure how to check, you can install Send System Info plugin and it will give
   you that info.
 * One suggestion I have, and this is key to debugging anything on a site…is to 
   turn on error logging in your php.ini and turn on WP_DEBUG. (Make sure you have
   visual error display off so potential hackers don’t get any relevant info and
   your site stays user friendly.) Logging the errors will usually show you if any
   process or code are causing the issue. If you need help with any of that let 
   me know.
 *  Thread Starter [hm_u](https://wordpress.org/support/users/hm_u/)
 * (@hm_u)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/jscriptsphp-slowing-page-loading/#post-5475897)
 * Thanks for the detailed answer! I’ve been doing a lot of optimization on my blog
   recently because my shared hosting seems weak. I’ll look into your suggestions!
   Currently I have php 5.5.13 activated, but I can change if you think another 
   version might be better.
 *  I guess I should mark the answer as solved if you’re sure the problem is on 
   my side. I’ll let you know if I learn something.
 * Thanks!
    L-E
 *  Plugin Contributor [redsand](https://wordpress.org/support/users/redsand/)
 * (@redsand)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/jscriptsphp-slowing-page-loading/#post-5475899)
 * You’re very welcome!
 * I hear you. If your hosting is THAT weak though it might be time to change hosts.
   I would definitely try to see if you can figure it out first though. If you go
   through the debugging process and don’t find any answers, you may want to reach
   out to your host and see if they have any answers. If they are competent they
   may offer insight.
 * PHP 5.4 and 5.5 should run very well so no issues there.
 * Yeah definitely let me know if you find anything out.
 * You’re welcome!
    – Scott
 *  [MichaelSkril](https://wordpress.org/support/users/michaelskril/)
 * (@michaelskril)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/jscriptsphp-slowing-page-loading/#post-5476238)
 * Hi Scott,
 * I have the same issue after upgrading WP to 4.1.1 (from 3.9 something). I never
   had an issue before but since I upgraded page load gets slower and slower. I 
   did some trouble shooting and found out that spam shield is causing the slow 
   down. I starts using more and more memory till site is not responding any more(
   1/2 hour after enabling the plugin). Page load is 1+ when this plugin is turned
   off. I checked also with P3 Profiler and it shows spam-shield using 80% of all
   used memory.
 * Please let me know what you would need to trouble shoot. I have full root access
   on the server.
 * Thanks,
 *  Plugin Contributor [redsand](https://wordpress.org/support/users/redsand/)
 * (@redsand)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/jscriptsphp-slowing-page-loading/#post-5476239)
 * Hi Michael,
 * The only way the plugin would be slowing down like that is if something is seriously
   wrong on your server or in your setup. As noted in my responses above, benchmarking
   and speed has been a primary focus from the beginning. I’ve used P3 Performance
   Profiler Plugin from the day 1 and tested it on shared hosting servers to simulate
   the average user experience. Since you’ve noted it only happened when you upgraded
   from WordPress 3.9 to 4.1.1, that would be an indicator that the issue is rooted
   in something else.
 * Since there are likely some very specific issues on your site I’ll need to help
   you with, please submit a support request on the [WP-SpamShield Support Page](http://www.redsandmarketing.com/plugins/wp-spamshield/support/)
   so we can help you out.
 * – Scott

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘jscripts.php slowing page loading’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-spamshield_08293a.svg)
 * [WP-SpamShield](https://wordpress.org/plugins/wp-spamshield/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-spamshield/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-spamshield/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-spamshield/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-spamshield/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-spamshield/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [redsand](https://wordpress.org/support/users/redsand/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/jscriptsphp-slowing-page-loading/#post-5476239)
 * Status: resolved