Viewing 15 replies - 1 through 15 (of 15 total)
  • How many users do you have in your bbPress forum? Do you experience the slowness when you’re only logged in or at all times?

    Thread Starter Ovidiu

    (@ovidiu)

    its 18 users in total.

    I tried it while being logged in as well as not and here are the results:

    without your plugin I get:
    It took 64 queries executed in 0.715 seconds.

    with your plugin I get:
    It took 65 queries executed in 3.280 seconds.

    How many of the users are actually using a WP User Image image? (their own, not your custom Default Avatar, if you set one.)

    The way the plugin works is first it looks if the user has a WP User Avatar image. If there isn’t one, it checks if the user has a Gravatar image. It waits for a response (found or not found) from Gravatar before moving on. (And finding if you custom Default Avatar, etc.)

    This might be where the bottleneck is happening. If that’s the case, I don’t have a quick fix for the situation. I’ll have to explore ways to improve performance.

    Thread Starter Ovidiu

    (@ovidiu)

    so far only one user uses a WP User Image image.

    Just wondering but isn’t this the way any other theme pulls (g)ravatars? http://codex.wordpress.org/Function_Reference/get_avatar

    so following that logic, if your plugins slows the site down so would every other call to an avatar image?

    How about implementing a cache for Gravatars? I know there are other Gravatar cache plugins out there but why use 2 plugins instead of one?

    Please let me know if you have further thoughts on this.

    I’m only making a guess. My plugin, admittedly, adds a lot of additional processes that a straight call to Gravatar would not. It’s something I’ll need to look into and also get more feedback on from other users.

    Thread Starter Ovidiu

    (@ovidiu)

    thx for looking into it. maybe you can check my claims by testing it with bbpress 2.3 on a clean wordpress install and measure yourself?
    Apart from checking query times I also tested with P3 (Plugin Performance Profiler) and it also pointed at your plugin.

    I’ve just made an update to the plugin (1.3.6) and I’m wondering if you could try it out again and see if there’s any improvement? I went through the plugin, trimming away some of the code.

    Also, how long does the P3 plugin say WP User Avatar takes? I ran the P3 plugin on two sites that I run WP User Avatar on and these are the numbers I got. Both sites run on shared servers of average speed. Site 1 gets moderate traffic. SIte 2, hardly any traffic (it’s an old event site).

    Site 1 – 27 plugins active – 200+ users – 0.029 sec
    Site 2 – 21 plugins active – 80+ users – 0.0119 sec

    On Site 2, I installed bbPress (though did not do thorough testing by adding forums, etc.) and ran another test, and it said WP User Avatar took 0.0112 sec.

    I don’t actually know what the P3 numbers mean, or what an appropriate loading time is for a plugin, so I take the numbers with a grain of salt. However, I would like to know if you’re getting numbers that are wildly different.

    Thread Starter Ovidiu

    (@ovidiu)

    here is what P3 says: http://screencast.com/t/UQFMRN07A5

    I don’t only rely on it but also on a code in my footer that says:

    <!--Cached using Nginx-Helper on 2013-04-19 08:42:07. It took 68 queries executed in 4.052 seconds.-->
    <!--Visit http://wordpress.org/extend/plugins/nginx-helper/faq/ for more details-->

    about 18 users, about 37 active plugins. without your plugin though:

    <!--Cached using Nginx-Helper on 2013-04-19 08:47:58. It took 61 queries executed in 0.927 seconds.-->
    <!--Visit http://wordpress.org/extend/plugins/nginx-helper/faq/ for more details-->

    I just released version 1.4 that hopefully has some speed improvements. Through my own tests with the P3 plugin, the speed was almost twice as fast. I hope you’ll try it out.

    Thread Starter Ovidiu

    (@ovidiu)

    Unfortunately it didn’t change much. Simply activating your plugin transforms this:

    This page loaded in 0.291 seconds with 59 database queries.

    into this:

    This page loaded in 2.737 seconds with 59 database queries.

    but I have activated BuddyPress and am using that avatar function although tis not quite as nice as yours πŸ™‚

    Well, I gave it a try. Also, I’m not that familiar with using Nginx with WordPress and if there’s something different I need to do to ensure better performance. It’s something I’ll look into more as I continue developing the plugin.

    Thread Starter Ovidiu

    (@ovidiu)

    No worries, apparently nobody else experienced this slow loading effect so it might be a plugin incompatibility…
    Definitely not related to the web server. I’ll keep an eye on the plugin though, maybe you’ll figure it out eventually.

    coolgab

    (@coolgab)

    thanks for sharing this info

    AddGab

    There are others with this exact problem, I have the same situation, even tried it on a clean WP site with no plugins installed except for WP User Avatar and P3 Plugin Profiler to measure the loading speed. Without WP User Avatar I also gets a big difference in loading time, much faster.

    Thread Starter Ovidiu

    (@ovidiu)

    I admit I activated buddypress for the private messaging function and the avatar options only!

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

The topic ‘this plugin slows my site down’ is closed to new replies.