• I updated my Link Library plugin to version 5.8.8.4 and noticed a decrease in WordPress performance. When I click a post/page the site takes several seconds to load. When I deactivated the plugin the post/page(s) responded and loaded instantly. When I reverted back to version 5.8.4.3 the post/page(s) again responded instantly.

    Some change between versions has caused a dramatic change in page load response time.

    https://www.ads-software.com/plugins/link-library/

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author Yannick Lefebvre

    (@jackdewey)

    Is it only the pages with Link Libraries that are responding slower? Or all pages on your site? In the first case, do other pages without link libraries load faster than before?

    I moved some of the code in Link Library to seperate files that only get loaded when the Link Library shortcodes are encountered, thinking that would speed up performance. That being said, I did not consider that calling the require function mid-way through a page render might actually slow things down. I will have to investigate a bit more to see if I have to go back to loading the content from all php files from the beginning.

    Would you be willing to try an alternate version with all code loaded from the beginning if I provide you a version this evening to compare?

    Thread Starter JoshW

    (@joshwillia)

    Yannick – always quick to respond! Thanks.

    Let’s say page 1 has 100 links served up by the plugin…that page takes 8 seconds to load.

    Then page 2 has 20 links served up by the plugin…that page takes 1.2 seconds to respond.

    I’ll be home by 8pm EST tonight and can upload a new version of the plugin to try for you.

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    I see. That is now what I understood from your initial description. The code to render the links has not changed that much between the two versions you cite. I will need to dig into this one to see why this might be happening. I will let you know what I find on this in the next couple of days.

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    Two questions:

    – When you say that there was a big difference between two versions, you listed 5.8.8.4, the current version, and 5.8.4.3, which does not actually exist from what I can see in my changelog. Did you mean 5.8.8.3, the version just before it?

    – Can you send me a link to the page(s) where you are using Link Library? I would like to see what type of options you have enabled so that I can see about creating one or more test cases that have similar configuration elements. For example, if you have RSS inline preview enabled, that would definitely take a long time to render since it needs to fetch the RSS articles for each link.

    I will work at adding some time metrics in debug mode in the latest version so try to see what is using up the most time. I will tell you when you can download that new cut off github when done so you can run it on your site and see what is gobbling up the most time.

    Yannick

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    Just posted version on github with timing information when debug mode is set as active under the general settings page.

    Can you download and install this new version, install it on your site and see what type of metrics you see in HTML comments?

    https://github.com/ylefebvre/link-library

    Just look for the word time and you should easily see a few entries.

    The github page is new. I will try only to update the official plugin once a month, but will update more frequently on github when troubleshooting issue and adding small new features.

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    If all of the stat times are low, then perhaps the problem is with a combination of Link Library and something else on your page.

    I can confirm the slow loading of only the page with link-library in it.
    I have this in my page:

    [link-library-search settings=1]
    [link-library-addlink settings=1]
    [link-library settings=1 categorylistoverride="2"]

    And it takes more then 30 seconds for the page to load. Total of links per page is 10, so that shouldn’t be a problem

    <!-- Link Query Execution Time: 0.0050368309020996-->
    <!-- [link-library] shortcode execution time: 60.041443109512-->
    Plugin Author Yannick Lefebvre

    (@jackdewey)

    Thanks for the stats. As I mentioned, I also need to get an idea of what features you are using in your library configuration. For example, are you displaying inline RSS, are you using dynamic images from thumbshots? Perhaps you would export your settings for your library and post the contents of the csv file that it produces here?

    If you are not comfortable posting the contents of the file here, you can send it to me via my contact form: ylefebvre.ca/contact-me

    Yannick, I do not know if the settings contain site-specific privacy settings, so I’ve sent you the library settings on your website

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    I just pushed a new cut of Link Library to my github page:

    https://github.com/ylefebvre/link-library

    It contains a lot more performance metrics information as comments in the HTML output when debug mode is activated.

    Please try downloading and installing this new version. What I want to see is what part of the link output generation code is using up so much time.

    You can send me snippets of output or send me the entire HTML source for your links page so I can parser through it.

    <!-- Link Query Execution Time: 0.0048758983612061-->
    <!-- Time to render name section of link id 17: 0.00041103363037109 -->
    <!-- Time to render RSS Icon section of link id 17: 5.0067901611328E-6 -->
    <!-- Time to render link id 17: 0.001450777053833 -->
    <!-- Time to render name section of link id 12: 0.00027799606323242 -->
    <!-- Time to render link id 12: 0.00034594535827637 -->
    <!-- Time to render name section of link id 24: 0.00026321411132812 -->
    <!-- Time to render RSS Icon section of link id 24: 3.0994415283203E-6 -->
    <!-- Time to render link id 24: 0.00033020973205566 -->
    <!-- Time to render name section of link id 16: 0.00028491020202637 -->
    <!-- Time to render RSS Icon section of link id 16: 2.8610229492188E-6 -->
    <!-- Time to render link id 16: 0.00034689903259277 -->
    <!-- Time to render name section of link id 25: 0.00026297569274902 -->
    <!-- Time to render RSS Icon section of link id 25: 2.8610229492188E-6 -->
    <!-- Time to render link id 25: 0.00032806396484375 -->
    <!-- Time to render name section of link id 37: 0.0002601146697998 -->
    <!-- Time to render RSS Icon section of link id 37: 3.0994415283203E-6 -->
    <!-- Time to render link id 37: 0.0003209114074707 -->
    <!-- Time to render name section of link id 50: 0.00028419494628906 -->
    <!-- Time to render RSS Icon section of link id 50: 2.8610229492188E-6 -->
    <!-- Time to render link id 50: 0.00034785270690918 -->
    <!-- Time to render name section of link id 18: 0.00026082992553711 -->
    <!-- Time to render RSS Icon section of link id 18: 3.0994415283203E-6 -->
    <!-- Time to render link id 18: 0.00032401084899902 -->
    <!-- Time to render name section of link id 13: 0.00026082992553711 -->
    <!-- Time to render RSS Icon section of link id 13: 1.9073486328125E-6 -->
    <!-- Time to render link id 13: 0.00032305717468262 -->
    <!-- Time to render name section of link id 14: 0.00028491020202637 -->
    <!-- Time to render RSS Icon section of link id 14: 3.0994415283203E-6 -->
    <!-- Time to render link id 14: 0.00034713745117188 -->
    <!-- Time to render name section of link id 46: 0.00026392936706543 -->
    <!-- Time to render RSS Icon section of link id 46: 1.9073486328125E-6 -->
    <!-- Time to render link id 46: 0.00032806396484375 -->
    <!-- Time to render name section of link id 47: 0.0002598762512207 -->
    <!-- Time to render RSS Icon section of link id 47: 3.0994415283203E-6 -->
    <!-- Time to render link id 47: 0.00032520294189453 -->
    <!-- Time to render name section of link id 10: 0.00028395652770996 -->
    <!-- Time to render RSS Icon section of link id 10: 3.0994415283203E-6 -->
    <!-- Time to render link id 10: 0.00034809112548828 -->
    <!-- Time to render name section of link id 15: 0.00026106834411621 -->
    <!-- Time to render RSS Icon section of link id 15: 1.9073486328125E-6 -->
    <!-- Time to render link id 15: 0.00032591819763184 -->
    <!-- Time to render name section of link id 34: 0.00028204917907715 -->
    <!-- Time to render RSS Icon section of link id 34: 3.0994415283203E-6 -->
    <!-- Time to render link id 34: 0.00044083595275879 -->
    <!-- Time to render name section of link id 19: 0.00027108192443848 -->
    <!-- Time to render RSS Icon section of link id 19: 3.0994415283203E-6 -->
    <!-- Time to render link id 19: 0.00035786628723145 -->
    <!-- Time to render name section of link id 30: 0.00026202201843262 -->
    <!-- Time to render RSS Icon section of link id 30: 2.8610229492188E-6 -->
    <!-- Time to render link id 30: 0.00032615661621094 -->
    <!-- Time to render name section of link id 31: 0.00026082992553711 -->
    <!-- Time to render RSS Icon section of link id 31: 3.0994415283203E-6 -->
    <!-- Time to render link id 31: 0.00033903121948242 -->
    <!-- Time to render name section of link id 36: 0.00026202201843262 -->
    <!-- Time to render RSS Icon section of link id 36: 2.1457672119141E-6 -->
    <!-- Time to render link id 36: 0.00032496452331543 -->
    <!-- Time to render name section of link id 27: 0.00026106834411621 -->
    <!-- Time to render RSS Icon section of link id 27: 1.9073486328125E-6 -->
    <!-- Time to render link id 27: 0.00032281875610352 -->
    
    <!-- [link-library] shortcode execution time: 60.039952993393-->

    I guess the RSS icon rendering is a problem….

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    Not at all. These are very small numbers, as shown with the E-6 at the end. Can you send me the actual page source via my e-mail address so I can see what might be happening? The user who started this thread indicated that the page source was much longer with current versions than old versions.

    Indeed E-6 indicates very fast rendering, missed it ?? . Just used your website to send you the source file

    Thread Starter JoshW

    (@joshwillia)

    My problems seems to have been host issues. I spun up a new server instance and reinstalled WordPress and everything is working as expected. Thanks Yannick for your attention and back and forth effort on this!

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Slow Performance’ is closed to new replies.