Title: Plugin Call Count
Last modified: March 25, 2020

---

# Plugin Call Count

 *  [Nat Miletic](https://wordpress.org/support/users/nmiletic/)
 * (@nmiletic)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/plugin-call-count/)
 * Hi,
 * Upon checking my New Relic logs I can see that Asset Management is now the most
   resource intensive plugin that I have installed. Can you tell me why the wp-asset-
   cleanup is called so many times?
 * Take a look at this chart which shows that on Mar 24 this plugin was called 1.2M
   times in one hour:
    [https://www.dropbox.com/s/ktwjt91tvywev0l/2020-03-25_7-59-51.png?dl=0](https://www.dropbox.com/s/ktwjt91tvywev0l/2020-03-25_7-59-51.png?dl=0)
 * We get about 100 visitors / day on average.
 * Thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-call-count%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Gabe Livan](https://wordpress.org/support/users/gabelivan/)
 * (@gabelivan)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/plugin-call-count/#post-12587961)
 * [@nmiletic](https://wordpress.org/support/users/nmiletic/) thank you for reporting
   a potential issue with the plugin. After all, it’s a performance one and its 
   main purpose is to help you out with the optimization and not use many resources.
   Without a more details report, it’s hard to say why the number of calls is so
   high. I know New Relic can determine what parts of the plugin (e.g. method within
   a class) are using more resources then others and I believe you need to check
   that. Without more details, it’s hard to say why the number from your chart is
   so high. The plugin is called indeed whenever a non-cached page is accessed.
 * If you were using a plugin such as WP Rocket, Asset CleanUp as well as other 
   plugins would not have been called so many times as the caching plugin would 
   serve the static HTML pages without triggering any plugins’ PHP code which includes
   queries to the database (some of those query could be using lots of resources).
 * Let me know if you can provide me more details about the resources used via New
   Relic. Meanwhile, consider setting up a caching plugin (or perhaps your hosting
   company has a caching system that could be activated). Your TTFB (time to the
   first byte) in my tests is very high (~3s, sometimes 5s) and that would be the
   first thing I would be worried about when it comes to performance. Basically,
   sometimes, a visitor has to wait for a few seconds until the first byte is downloaded
   by the browser and at least half a second until they will see content loaded.
 *  Thread Starter [Nat Miletic](https://wordpress.org/support/users/nmiletic/)
 * (@nmiletic)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/plugin-call-count/#post-12592468)
 * Thank you for your response. I am using Pantheon and caching is enabled.
 * I am not sure that this is necessarily an issue at this point as my website is
   performing fine and not throwing any errors but I wanted to check with you to
   see if there is an option that I should enable or that I am overlooking to limit
   the number of calls?
 * If there is more information I can offer from my New Relic dashboard please let
   me know?
 *  Plugin Author [Gabe Livan](https://wordpress.org/support/users/gabelivan/)
 * (@gabelivan)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/plugin-call-count/#post-12594814)
 * [@nmiletic](https://wordpress.org/support/users/nmiletic/) there’s a way to check
   which particular parts of the plugin is using more CPU with New Relic. If you
   can do that, it would be fantastic as I can quickly debug it. It could be something
   from the plugin that is not working well with your hosting or a conflict with
   another plugin, you never know. Can you please send me your “System Info” from“
   Tools” (plugin’s menu)? You can do it privately via [https://gabelivan.com/contact/](https://gabelivan.com/contact/)
   as it contains sensitive information you might not want to share publicly.
 *  Thread Starter [Nat Miletic](https://wordpress.org/support/users/nmiletic/)
 * (@nmiletic)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/plugin-call-count/#post-12594925)
 * Info sent using your contact form.
 * Thanks,
 * Nat

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

The topic ‘Plugin Call Count’ is closed to new replies.

 * ![](https://ps.w.org/wp-asset-clean-up/assets/icon-256x256.png?rev=1981952)
 * [Asset CleanUp: Page Speed Booster](https://wordpress.org/plugins/wp-asset-clean-up/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-asset-clean-up/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-asset-clean-up/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-asset-clean-up/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-asset-clean-up/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-asset-clean-up/reviews/)

## Tags

 * [performance](https://wordpress.org/support/topic-tag/performance/)

 * 4 replies
 * 2 participants
 * Last reply from: [Nat Miletic](https://wordpress.org/support/users/nmiletic/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/plugin-call-count/#post-12594925)
 * Status: not resolved