WordPress.org

Forums

WP Slimstat
[resolved] [Plugin: WP SlimStat] Extreem use memory (5 posts)

  1. another-webmaster
    Member
    Posted 2 years ago #

    Is this plugin realy (mis)using extreme amount of memory(more then 3.3Mb in front-end)
    Consuming more then the 20 code snippets and 5 other plugins we use together.
    Anyone else realised same?
    It slows down page-loading also.(tested with Analyze Performance

    http://wordpress.org/extend/plugins/wp-slimstat/

  2. camu
    Member
    Plugin Author

    Posted 2 years ago #

    Yes, version 2.8.2, in order to minimize the number of accesses to the database, stores most of the information needed to process a pageview (browsers, platforms, settings, etc) in RAM. Would you prefer 10 accesses to the database and a lower memory usage?

    Just so you know, this approach was suggested to me by WordPress' core developers :)

    Anyway, if you don't like this approach, just use a different plugin, or maybe Google Analytics.

    Camu

  3. camu
    Member
    Plugin Author

    Posted 2 years ago #

    Also, keep in mind that WordPress alone needs about 28 Mb to generate just one page. As for the performance, an average page on my site hosted on a shared hosting is generated in about 0.3 seconds when WP SlimStat is enabled and 0.26 when it is deactivated ;)

    You can look for yourself by running some tests on

    http://www.duechiacchiere.it

    Have fun.

    For the record, here's where WP's core developer Otto was suggesting to actually load EVEN more data into memory instead of accessing the database:

    http://lists.automattic.com/pipermail/wp-hackers/2010-November/035807.html

    You may want to to talk to Otto to argue that my plugin is using too much memory, eh eh.

    Camu

  4. another-webmaster
    Member
    Posted 2 years ago #

    For us there is no need to argue with you about your opinion/work.
    Google is doing it her way (and yes, we use google analytics all the way) and you your way. Nothing wrong with that.

    Be happy with your plugin which is without any doubt a nice peace, but not our approuch, we prefer to keep all balanced.

    Thank you for the clarification camu.
    Ciao

  5. camu
    Member
    Plugin Author

    Posted 2 years ago #

    Thank you for your nice words. Of course there's a trade-off with everything. By using Google Analytics you won't be able to:

    - see the IP addresses of your visitors or understand where they are coming from individually
    - see what are the most popular 'content types' or authors
    - track where your users are going when they leave your site
    - track events happening on your site out-of-the-box

    On the other side, all of this extra information you collect will increase the 'load' on your servers, that's true. Be happy with your analytics!

    Cheers,
    Camu

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic