Support » Plugin: WP Visitor Statistics (Real Time Traffic) » Optimize JS and CSS

  • Resolved madmax4ever

    (@madmax4ever)


    Hello,

    1-I’ve worked on my website optimization. Thus, I challenged it with multiple tools and speed assessment sites. I found that way that your wsm_new.js could be minified. It would be half its actual size.

    2-In <head> section of admin page you load some CSS code using custom_admin.php . This has side effects with other plugin (I can name you which one so you could see by yourself) and not using wp_enqueue_style forbid external optimizations. Moreover, custom admin css doesn’t seem effective…

    3-Minor fix: in css\custom_admin.php, you could change 4 instances of:
    <?php echo WSM_URL;?>/images
    to
    <?php echo WSM_URL;?>images

    4-Maybe could you split you CSS into a static part (without any “contextual” computed values) and a dynamic one to complete the set?

    Thanks

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author osama.esh

    (@osamaesh)

    hello,
    thank you for the very good notes,
    we will fix and update the current version very soon,
    can i know the version number your are talking about?

    Hello,

    I wa susing v7.4 when I opened this topic and I’m now using v7.5 πŸ˜‰
    Same observations.

    Plugin Author osama.esh

    (@osamaesh)

    hello again,
    could you please check again now? we compress the css also

    Hello,

    I just installed v7.6: you did a great job on CSS!
    I can’t wait to see what you’ll do on the JS part for wsm_new.js πŸ™‚

    Thank you.

    Your reactivity is appreciated!

    Plugin Author osama.esh

    (@osamaesh)

    Done πŸ™‚
    If you like our plugin please leave us a β˜…β˜…β˜…β˜…β˜… rating. A huge thanks in advance!

    I validate! It’s now a 1/4 of its previous size. Wonderful. πŸ™‚

    One more to go and you’ll gain this fifth star, I promise, cause you plugin is clearly ahead of its competitors!

    Thanks.

    Me again πŸ™‚
    One more thing on that one: maybe could you remove or comment line 21 in wsm_init.php?
    An perhaps also use enqueue script for wsm_new.js and afterwards add ‘defer’ and ‘async’ to it by applying filter to ‘script_loader_tag’?

    Would be great, really.

    Plugin Author osama.esh

    (@osamaesh)

    Done πŸ™‚
    Please upgrade to the latest pro release 7.8

    If you like our plugin please leave us a β˜…β˜…β˜…β˜…β˜… rating. A huge thanks in advance!

    Tested and switched to prod.
    Perfect!

    Tanks again.

    Plugin Author osama.esh

    (@osamaesh)

    Great πŸ™‚
    what about the review πŸ™‚

    https://wordpress.org/support/plugin/wp-stats-manager/reviews/

    • This reply was modified 8 months, 3 weeks ago by Jan Dembowski. Reason: Deleted ?filter=5 from review link
    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    @osamaesh Don’t put ?filter=5 in your review links, it hides the non-5 star reviews from the person who uses that link and that’s not being completely honest. That’s not necessary as the stars default to 5 for all new reviews. The reviewer would manually need to change it to something other than 5 if they wanted to.

    I’ve removed that part and now they’ll see the actual reviews and not just the 5 star ones.

    Plugin Author osama.esh

    (@osamaesh)

    I’m sorry,
    thank you for letting me know

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Optimize JS and CSS’ is closed to new replies.