• Resolved willjames

    (@willjames)


    Hi
    Great plugin, has been able to do everything we want it to so far.
    When looking for improvements in Google’s revised page speed tool I noticed that deactivating the AdInsterter plugin meant that the initial server response time reduced from over 3 seconds to 50 to 100ms. On this page we run no ad code as such, just displaying images files stored on our server.

    Even with these ads paused the server response time is higher.
    I have read your post on https://adinserter.pro/documentation/troubleshooting#heavy-website-load and I have run the debugging. It says that the code is not taking too long but the impact in page speed still remains.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Spacetime

    (@spacetime)

    Thread Starter willjames

    (@willjames)

    Many thanks for your response.

    I have looked at the remote debugging. I didn’t want to post the results publicly here.
    Is this enough info?

    https://www.truckpages.co.uk/?ai-debug-processing-fe=1

    Here is a screenshot from Google page speed with the plugin turned on: https://snipboard.io/qlTSJ0.jpg

    This is after deactivating the plugin (and doing nothing else): https://snipboard.io/QC4cnA.jpg

    The page score went from 18 to 33 on mobile.

    I have turned the plugin back on

    Ad Inserter 2.6.9

    INSTALLED: 2019-10-30 16:04:33 (0000-07-02 18:56:52, 215 days ago)
    GENERATED (WP time): 2020-06-02 11:01:28
    GENERATED (Server time): 2020-06-02 10:01:28
    PLUGIN CODE PROCESSING: 58.37 ms
    PLUGIN HOOKS PROCESSING: 0.01 ms
    BLOCK CODE PROCESSING: 0.00 ms
    TOTAL PROCESSING TIME: 58.38 ms
    SETTINGS: 2.6.9
    SETTINGS SIZE: 18152
    SETTINGS TIMESTAMP: 2020-06-01 11:48:32
    SETTINGS EXTRACT: 2.6.9-96
    EXTRACT TIMESTAMP: 2020-06-01 11:48:32
    EXTRACT SOURCE: SAVED SETTINGS
    USER: LOGGED-IN ADMINISTRATOR
    USERNAME: Truck Pages Admin
    USER ROLES: administrator
    MIN.USER FOR EXCEPTIONS: administrator
    PAGE TYPE: HOMEPAGE
    AMP PAGE: NO
    URL: /
    REFERER: http://www.truckpages.co.uk (https://www.truckpages.co.uk/)
    VIEWPORT 1: Desktop min width 980 px
    VIEWPORT 2: Tablet min width 768 px
    VIEWPORT 3: Phone min width 0 px
    SERVER-SIDE DETECTION: NOT USED
    CLIENT-SIDE DETECTION: NOT USED
    DISABLE CACHING: USED
    STICKY WIDGETS: NOT USED
    PHP PROCESSING DISABLED: NO
    BLOCK CLASS NAME: code-block
    INLINE STYLES: ENABLED
    DYNAMIC BLOCKS: Server-side
    STICKY WIDGET MODE: CSS
    PARAGRAPH COUNTING: Standard
    NO PAR. COUNTING INSIDE: blockquote, figure, li
    OUTPUT BUFFERING: Enabled
    AD LABEL: Advertisements
    MAIN CONTENT:
    PLUGIN PRIORITY: 99999
    ADMIN DISABLE CACHING: ENABLED
    WAIT FOR JQUERY: DISABLED
    DO NOT CACHE CONSTANTS: DONOTCACHEPAGE DONOTCACHEOBJECT DONOTCACHEDB
    VIRTUAL ADS.TXT: NOT USED
    HEADER: DISABLED
    FOOTER: DISABLED
    AD BLOCKING DETECTION: DISABLED
    DISABLED BY SHORTCODE: NO

    BLOCK SETTINGS Po Pa Hp Cp Ap Sp AM Aj Fe 404 Wi Sh PHP
    1 Inventory page under . . o . o . . o . . x . . [After HTML element][Align left][html_selector: img.lazy.img-responsive][html_insertion: 2][inside_element: 2][paragraph_number: ][disable_caching: 1]
    2 After 5 Listings . . . o o . . o . . x . . [Between posts][Center][excerpt_number: 3]
    3 Top of listings Page . . . . o o . o . . x . . [Before HTML element][Center][disable_insertion: 1][html_selector: div.stm-ajax-row][paragraph_number: 5,6,7,8,9,10,11,12,13]
    4 Live on Individual Tr o . . . . . . o . . x . . [After HTML element][Default][html_selector: div.stm-car-carousels.stm-listing-car-gallery]
    5 Banner on Homeage . . o . . . . o . . x . . [Between posts][Center][html_selector: div#main > div > div:eq(4)][paragraph_number: 3][excerpt_number: 10]
    6 Homepage Approach and . . o . . . . o . . x . . [After image][Default][disable_insertion: 1][paragraph_number: 2,3,4,5,6]
    7 Live ad on category p . . . . o . . o . . x . . [After excerpt][Align left][disable_insertion: 1][excerpt_number: 1,2,3,4,5,6,7,8,9,10]
    8 Live ad on category p . . . . o . . o . . x . . [Before excerpt][Align left][disable_insertion: 1][excerpt_number: 1,2,3,4,5,6,7,8,9,10]
    9 Block 9 . . . . o . . o . . x . . [After HTML element][Float right][disable_insertion: 1][html_selector: img.lazy.img-responsive][html_insertion: 2][paragraph_number: ]
    11 Block 11 . . . . . . . o . . x . . [Before HTML element][Default][paragraph_number: 2]

    TOTAL BLOCKS
    POST HOOK: 2, 5
    FOOTER HOOK: 4, 11
    HTML ELEMENT: 1

    BLOCKS FOR THIS PAGE TYPE
    POST HOOK: 5
    HTML ELEMENT: 1

    DISABLED BLOCKS:

    TIME EVENT
    ======================================
    0 INITIALIZATION START
    0 AFTER REQUIRE: 0.73 ms
    0 LOAD SETTINGS START
    0 LOAD OPTIONS START
    0 LOAD OPTIONS END
    2 LOAD SETTINGS END
    0 AFTER LOAD SETTINGS: 3.87 ms
    0 AFTER LOAD GLOBALS: 3.89 ms
    0 INITIALIZATION END: 3.98 ms

    MULTISITE: NO
    site_url: https://www.truckpages.co.uk
    home_url: https://www.truckpages.co.uk
    ABSPATH: /var/www/vhosts/truckpages.co.uk/httpdocs/
    WP_CONTENT_DIR: /var/www/vhosts/truckpages.co.uk/httpdocs/wp-content

    PHP: 7.2.31
    mbstring: LOADED
    Default charset: UTF-8
    Memory Limit: 512M
    Upload Max Filesize: 256M
    Post Max Size: 256M
    Max Execution Time: 6000
    Max Input Vars: 1000
    Display Errors:
    cURL: ENABLED
    fsockopen: ENABLED
    DOMDocument: YES

    Wordpress: 5.4.1
    Current Theme: Motors Truckpages 1.0.0.1.1581000692

    A INSTALLED PLUGINS
    ======================================
    ACF Archive 1.0.6
    AddToAny Share Buttons 1.7.40
    * Ad Inserter 2.6.9
    * Admin Menu Editor 1.9.5
    * Advanced Custom Fields 5.8.11
    * Autoptimize 2.7.2
    BackWPup 3.7.1
    * Breadcrumb NavXT 6.4.0
    Broken Link Checker 1.11.13
    Campaign Monitor for WordPress 2.8.4
    * Child Theme Configurator 2.5.3
    * Combo WP Rewrite Slugs 1.0
    * Contact Form 7 5.1.9
    Custom Icons by Stylemixthemes 1.7
    * Dashboard Sticky Notes 1.0.5
    * Duplicate Post 3.2.4
    Easy Theme and Plugin Upgrades 2.0.1
    * Email SMTP Plugin by Mail Booster 4.0.4
    * EWWW Image Optimizer 5.3.2
    * Flamingo 2.1.1
    * GDPR Compliance & Cookie Consent 1.5
    * Google XML Sitemaps 4.1.0
    * Health Check & Troubleshooting 1.4.4
    * Insert Headers and Footers 1.4.5
    * Ivory Search 4.4.8
    * Loco Translate 2.4.0
    MegaMenu 1.3
    * Motors – Car Dealer, Classifieds & Listing 6.6.0
    * Plugin Notes Plus 1.2.2
    * Really Simple SSL 3.3.3
    * ReCaptcha v2 for Contact Form 7 1.2.6
    * Redirection 4.8
    * Show Current Template 0.3.3
    STM Importer 4.7.1.1
    * STM Import Makes & Models 2.0
    * STM Motors Extends 1.4.0
    * STM Post Type 4.6.5
    * STM WP All Import Addon 4.2
    Subscriptio 3.1
    Wordfence Security 7.4.7
    * WP All Import – Yoast WordPress SEO Add-On 1.1.8
    * WP All Import Pro 4.6.1
    * WPBakery Page Builder 6.2.0
    WP Calameo 2.1.4
    * WP Super Cache 1.7.1
    * WP to Buffer 3.6.0
    WP YouTube Lyte 1.7.11
    * Yoast SEO 14.2

    Plugin Author Spacetime

    (@spacetime)

    Hello,

    the plugin adds only about 58 ms to the page loading time:

    PLUGIN CODE PROCESSING: 58.37 ms
    PLUGIN HOOKS PROCESSING: 0.01 ms
    BLOCK CODE PROCESSING: 0.00 ms
    TOTAL PROCESSING TIME: 58.38 ms

    Ad Inserter itself should add no significant load to the server – it is active only when called by some WP hook.

    If you check the log you’ll see where the time is spent.

    Maybe you should ask your hosting company to check the server or analyze which proces is taking time.

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

The topic ‘Google Page Speed – initial server response time’ is closed to new replies.