Support » Plugin: Matomo Analytics - Ethical Stats. Powerful Insights. » Almost 5 seconds to load

  • Hi,
    After removing my Matomo instance and former plugin to replace with this one, we experience tremendous delays as seen on GTmetrics

    
    Response Version - n/a
    	
    
    No Response Headers - Request incomplete
    

    What should be done ?

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Thomas

    (@tsteur)

    Hi @nam1962

    I just had a look at your site and I can see the important load metric is around 2seconds and not delayed by Matomo which is great. I can see how your Matomo request is unusually slow. Did you have previously your Matomo instance running on the same server and there it was faster? Or is Matomo now running on a different server?

    Any chance you could also post your system report here which should be automatically anonymised? https://matomo.org/faq/wordpress/how-do-i-find-and-copy-the-system-report-in-matomo-for-wordpress/

    Thanks for that @nam1962

    Thread Starter nam1962

    (@nam1962)

    Hi @tsteur , thank you for caring.

    Here is the report:

    
    				  # Matomo
    
    * Version de l’extension Matomo: 4.1.1
    * Config existe et est accessible en écriture.: Oui ("$ABSPATH/wp-content/uploads/matomo/config/config.ini.php" )
    * JS Tracker existe et est accessible en écriture.: Oui ("$ABSPATH/wp-content/uploads/matomo/matomo.js" )
    * Répertoires de l4extension: Yes ([{"pluginsPathAbsolute":"$ABSPATH\/wp-content\/plugins\/matomo\/plugins","webrootDirRelativeToMatomo":"..\/"}])
    * Répertoire temporaire non accessible en écriture: Yes ($ABSPATH/wp-content/cache/matomo)
    * Version de Matomo: 4.1.0
    * Matomo site idSite: 1
    * Matomo Install Version: 4.1.1 (Install date: 2021-01-08 16:25:14)
    * Upgrades outstanding: No
    * Upgrade in progress: No
    
    ## Endpoints
    
    * Matomo JavaScript Tracker URL:  ($site_url/wp-content/uploads/matomo/matomo.js)
    * Matomo JavaScript Tracker - WP Rest API:  ($site_url/wp-json/matomo/v1/hit/)
    * Matomo HTTP Tracking API:  ($site_url/wp-content/plugins/matomo/app/matomo.php)
    * Matomo HTTP Tracking API - WP Rest API:  ($site_url/wp-json/matomo/v1/hit/)
    
    ## Crons
    
    * Heure du serveur: 2021-01-15 08:06:52
    * Heure du site Web: 2021-01-15 09:06:52 (Les dates ci-dessous sont affichées dans le fuseau horaire du site Web)
    * Sync users & sites: Next run: 2021-01-15 18:15:33 (9 heures 8 min) ( Last started: 2021-01-14 18:32:10 (-14 heures 34 min). Last ended: 2021-01-14 18:32:14 (-14 heures 34 min). Interval: daily)
    * Archive: Next run: 2021-01-15 09:15:33 (8 min 41s) ( Last started: 2021-01-15 08:32:09 (-34 min 43s). Last ended: 2021-01-15 08:32:25 (-34 min 27s). Interval: hourly)
    * Update GeoIP DB: Next run: 2021-02-13 18:15:33 (29 jours 9 heures) ( Last started: 2021-01-14 18:32:28 (-14 heures 34 min). Last ended: 2021-01-14 18:32:36 (-14 heures 34 min). Interval: matomo_monthly)
    
    ## Contrôles obligatoires
    
    * Version PHP >= : ok 
    * PDO Extension: ok 
    * PDO\MYSQL Extension: ok 
    * MYSQLI Extension: ok 
    * Extensions requises: ok 
    * Fonctions requises: ok 
    * Configuration PHP requise (php.ini): ok 
    * Répertoires avec les droits d'accès en écriture: ok 
    * Répertoires avec accès en écriture pour Gestionnaire de balises: ok 
    
    ## Vérifications facultatives
    
    * Statut du traqueur: ok 
    * Limite mémoire: ok 
    * Fuseau horaire: ok 
    * Ouvrez l'URL: ok 
    * PageSpeed désactivé: ok 
    * GD > 2.x + Freetype (graphiques): ok 
    * Autres extensions: ok 
    * Autres fonctions: ok 
    * Système de fichiers: ok 
    * Dernière exécution d'archivage réussie: ok 
    * Capacités de la base de données: ok 
    * Taille maximale des paquets: ok 
    * Géolocalisation: ok 
    * Mettre à jour via HTTPS: ok 
    * Traceur JavaScript inscriptible ("/matomo.js"): ok 
    * Supports Async Archiving: Yes
    * Location provider ID: geoip2php
    * Location provider available: Yes
    * Location provider working: Yes
    * Had visit in last 5 days: Yes
    
    ## Matomo Settings
    
    * Track mode: default
    * Track codeposition: footer
    * Track api endpoint: default
    * Track js endpoint: default
    * Version history: 4.1.1
    * Core version: 4.1.0
    * Last tracking settings update: 1610128830
    * Last settings update: 1610128830
    * Track content: visible
    * Track search: Yes
    * Track 404: Yes
    * Track user id: email
    * Track jserrors: Yes
    
    ## Logs
    
    * Warning archive_main: 2021-01-14 02:02:47 (2 total errors during this script execution, please investigate and try and fix these errors. => CronArchive.php:605; CronArchive.php:598; CronArchive.php:264; Access.php:673; CronArchive.php:268; ScheduledTasks.php:288; class-wp-hook.php:285; class-wp-hook.php:311; plugin.php:551; wp-cron.php:138;)
    * Warning archive_errors: 2021-01-14 02:02:47 ('Got invalid response from API request: ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=year&date=2021-01-01&format=json&trigger=archivephp. The response was empty. This usually means a server error. A solution to this error is generally to increase the value of \'memory_limit\' in your php.ini file.  For more information and the error message please check in your PHP CLI error log file. As this core:archive command triggers PHP processes over the CLI, you can find where PHP CLI logs are stored by running this command: php -i | grep error_log' 'Error unserializing the following response from ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=year&date=2021-01-01&format=json&trigger=archivephp: \'\'' '2 total errors during this script execution, please investigate and try and fix these errors.' => ScheduledTasks.php:301; class-wp-hook.php:285; class-wp-hook.php:311; plugin.php:551; wp-cron.php:138;)
    
    # WordPress
    
    * Home URL: $site_url
    * Site URL: $site_url
    * WordPress Version: 5.6
    * Number of blogs: 1
    * Multisite Enabled: No
    * Network Enabled: No
    * WP_DEBUG: No
    * WP_DEBUG_DISPLAY: Yes
    * WP_DEBUG_LOG: No
    * DISABLE_WP_CRON: Yes
    * FORCE_SSL_ADMIN: Yes
    * WP_CACHE: Yes
    * CONCATENATE_SCRIPTS: -
    * COMPRESS_SCRIPTS: -
    * COMPRESS_CSS: -
    * ENFORCE_GZIP: -
    * WP_LOCAL_DEV: -
    * DIEONDBERROR: -
    * WPLANG: fr_FR
    * ALTERNATE_WP_CRON: -
    * WP_CRON_LOCK_TIMEOUT: 60
    * WP_DISABLE_FATAL_ERROR_HANDLER: -
    * MATOMO_SUPPORT_ASYNC_ARCHIVING: -
    * MATOMO_TRIGGER_BROWSER_ARCHIVING: -
    * MATOMO_ENABLE_TAG_MANAGER: -
    * MATOMO_SUPPRESS_DB_ERRORS: -
    * MATOMO_ENABLE_AUTO_UPGRADE: -
    * MATOMO_DEBUG: -
    * MATOMO_SAFE_MODE: -
    * MATOMO_GLOBAL_UPLOAD_DIR: -
    * MATOMO_LOGIN_REDIRECT: -
    * Permalink Structure: /%postname%/
    * Possibly uses symlink: No
    * Compatible content directory: Yes
    
    # WordPress Plugins
    
    ## MU Plugins
    
    * 0-ninjafirewall.php: 1.0
    * Elementor Safe Mode: 1.0.0
    
    ## Plugins
    
    * Add-on: Export CSV - Back In Stock Notifier for WooCommerce: 1.1
    * amr shortcode any widget: 3.7
    * Anti-Spambot Email Shortcode: 1.1.6
    * Back In Stock Notifier for WooCommerce | WooCommerce Waitlist Pro: 1.10.0
    * Blackhole for Bad Bots: 3.0
    * Broken Link Checker: 1.11.15
    * Child Theme Configurator: 2.5.6
    * Classic Editor: 1.6
    * Contact Form 7: 5.3.2
    * DoLogin Security: 2.9.4
    * Elementor: 3.0.16
    * Elementor Pro: 3.0.9
    * Enable Media Replace: 3.5.0
    * Facebook for WooCommerce: 2.2.0
    * Hello Darling: 0.1
    * Imsanity: 2.7.1
    * Jilt for WooCommerce: 1.7.9
    * LiteSpeed Cache: 3.6.1
    * Loco Translate: 2.5.0
    * Loginizer: 1.6.5
    * Mailchimp for WooCommerce: 2.5.0
    * Matomo Analytics - Ethical Stats. Powerful Insights.: 4.1.1
    * My Custom Functions: 4.48
    * NinjaFirewall (WP Edition): 4.3.1 (Network enabled)
    * NinjaScanner: 3.0.2 (Network enabled)
    * Outdated Plugin Notifier: 1.0.5
    * Password Strength for WooCommerce: 1.0.1
    * Plugins Garbage Collector (Database Cleanup): 0.12
    * Polylang for WooCommerce: 1.5
    * Polylang Pro: 2.8.4
    * Print Invoice & Delivery Notes for WooCommerce: 4.6.2
    * PublishPress Capabilities: 1.10.1
    * Really Simple SSL: 4.0.6
    * Recently Registered: 3.4.3 (Network enabled)
    * Redirection: 4.9.2
    * SEO Category and Tag Descriptions for WooCommerce: 1.2.1
    * SEOPress: 4.3.0.1
    * SiteOrigin CSS: 1.2.12
    * Stock Exporter for WooCommerce: 0.8.1
    * Stop Referrer Spam: 1.1.6
    * Stripe For WooCommerce: 3.2.11
    * Thrive Leads: 2.3.6
    * Thrive Product Manager: 1.2.4
    * Vevida Optimizer: 1.4
    * WooCommerce: 4.9.0
    * WooCommerce Back In Stock Notifier: 11.0
    * WooCommerce Bulk Stock Management: 2.2.26
    * WooCommerce Customer/Order/Coupon Export: 5.0.11
    * WooCommerce Google Analytics Pro: 1.8.11
    * Woocommerce Order address Print: 3.2
    * WooCommerce Pre-Orders: 1.5.3
    * WooCommerce Remove Product Sorting: 1.1.1
    * WooCommerce Shipment Tracking: 1.6.22
    * WooCommerce Smart Coupons: 4.7.4
    * WooCommerce URL Coupons: 2.9.3
    * Woostify Pro: 1.4.3
    * WordPress Zero Spam: 4.10.2
    * WP-Sweep: 1.1.3
    * Active Plugins: 45 (polylang-pro amr-shortcode-any-widget antispambot back-in-stock-notifier-for-woocommerce blackhole-bad-bots capability-manager-enhanced classic-editor contact-form-7 cwginstocknotifier-export-csv dologin elementor-pro elementor hello-darling jilt-for-woocommerce litespeed-cache loco-translate mailchimp-for-woocommerce matomo my-custom-functions ninjafirewall ninjascanner outdated-plugin-notifier password-strength-for-woocommerce polylang-wc recently-registered redirection so-css stock-exporter-for-woocommerce stop-referrer-spam thrive-leads thrive-product-manager woo-stripe-payment woocommerce-bulk-stock-management woocommerce-customer-order-csv-export woocommerce-delivery-notes woocommerce-google-analytics-pro woocommerce-order-address-print woocommerce-remove-product-sorting woocommerce-shipment-tracking woocommerce-smart-coupons woocommerce-url-coupons woocommerce woostify-pro wp-seopress zero-spam)
    * Theme: woostify (woostify-child)
    
    # Server
    
    * Server Info: LiteSpeed
    * PHP OS: Linux
    * PHP Version: 7.4.13
    * PHP SAPI: litespeed
    * PHP Binary Name: lsphp
    * PHP Found Binary: php -q
    * Timezone: UTC
    * WP timezone: +01:00
    * Locale: fr_FR
    * User Locale: fr_FR
    * Memory Limit: 1G (At least 128MB recommended. Depending on your traffic 256MB or more may be needed.)
    * WP Memory Limit: 40M
    * WP Max Memory Limit: 1G
    * Timezone version: 2020.4
    * Time: 1610698012
    * Max Execution Time: 360
    * Max Post Size: 512M
    * Max Upload Size: 134217728
    * Max Input Vars: 200000
    * Disabled PHP functions: Yes (show_source, system, passthru)
    * zlib.output_compression is off: Yes
    * Curl Version: 7.71.0, OpenSSL/1.1.1d
    * Suhosin installed: No
    
    # Database
    
    * MySQL Version: 5.5.5
    * Mysqli Connect: Yes
    * Force MySQL over Mysqli: No
    * DB Prefix: znb1_
    * DB CHARSET: utf8
    * DB COLLATE: 
    * SHOW ERRORS: No
    * SUPPRESS ERRORS: No
    * Uses Socket: No
    * Uses IPv6: No
    * Matomo tables found: 42
    * Matomo users found: 1
    * Matomo sites found: 1
    * Permissions requises: OK
    
    # Browser
    
    * Browser:  (Mozilla/5.0 (X11; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0)
    * Language: fr,fr-fr,en-us,en
    
    	

    Yes the site seems to load a little faster, but I Still see this error in GTMetric waterfall :

    
    https://anonimyzed.com/wp-content/plugins/matomo/app/matomo.php?action_name=T-shirt%20col%20V%20gris%20anonim%20-%20Tissu%20chin%C3%A9%20de%20qualit%C3%A9%20-%20anonimyzed&idsite=1&rec=1&r=011376&h=0&m=23&s=45&url=https%3A%2F%2Fanonimyzed.com%2Fproduit%2Ft-shirt-col-v-gris-anonim%2F&_id=ec542468d0f237ad&_idn=1&_refts=0&send_image=0&pdf=0&qt=0&realp=0&wma=0&fla=0&java=0&ag=0&cookie=1&res=1367x863&_pkc=%5B%22T-shirt%20col%20V%22%2C%22T-shirt%20homme%22%5D&_pkp=49&_pks=20992&_pkn=T-shirt%20col%20V%20gris%20anonim&pv_id=DQxeIL&pf_net=466&pf_srv=319&pf_tfr=155&pf_dm1=1335
    Response Version - n/a
    	
    
    No Response Headers - Request incomplete
    
    Request Version - n/a
    :authority	
    
    anonimyzed.com
    
    :method	
    
    POST
    
    :path	
    
    /wp-content/plugins/matomo/app/matomo.php?action_name=T-shirt%20col%20V%20gris%20anonim%20-%20Tissu%20chin%C3%A9%20de%20qualit%C3%A9%20-%20anonimyzed&idsite=1&rec=1&r=011376&h=0&m=23&s=45&url=https%3A%2F%2Fanonimyzed.com%2Fproduit%2Ft-shirt-col-v-gris-anonim%2F&_id=ec542468d0f237ad&_idn=1&_refts=0&send_image=0&pdf=0&qt=0&realp=0&wma=0&fla=0&java=0&ag=0&cookie=1&res=1367x863&_pkc=%5B%22T-shirt%20col%20V%22%2C%22T-shirt%20homme%22%5D&_pkp=49&_pks=20992&_pkn=T-shirt%20col%20V%20gris%20anonim&pv_id=DQxeIL&pf_net=466&pf_srv=319&pf_tfr=155&pf_dm1=1335
    
    :scheme	
    
    https
    
    accept	
    
    */*
    
    accept-encoding	
    
    gzip, deflate, br
    
    accept-language	
    
    en-US,en;q=0.9
    
    content-length	
    
    0
    
    content-type	
    
    application/x-www-form-urlencoded; charset=utf-8
    
    cookie	
    
    ls_smartpush=fffbffffffffffff; pll_language=fr; _pk_id.1.d7f7=ec542468d0f237ad.1610699025.; _pk_ses.1.d7f7=1
    
    origin	
    
    https://anonimyzed.com
    
    referer	
    
    https://anonimyzed.com/produit/t-shirt-col-v-gris-anonim/
    
    sec-fetch-dest	
    
    empty
    
    sec-fetch-mode	
    
    no-cors
    
    sec-fetch-site	
    
    same-origin
    
    user-agent	
    
    Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.193 Safari/537.36
    
    Plugin Author Thomas

    (@tsteur)

    Hi @nam1962 is your Matomo for WordPress now running on a different server or the same server as previously Matomo On-Premise? If it is a different server, is it the same kind of server or maybe even on a different hoster?

    I’ve installed so far the same plugins (the plugins that are available through WordPress plugins directory) and it loads fast to me.

    Thread Starter nam1962

    (@nam1962)

    Hi @tsteur
    I happen to have the issue on several sites.

    Initially, they were all on the same shared hosting account (i.e on the same cPanel) and, yes I also installed the Matomo (Piwik) instance with Softaculous.
    On each site I had the WP-Matomo Integration (WP-Piwik) plugin.

    Then, the website I mention in this thread was migrated on a totally different shared hosting account, with it’s own credentials and it’s own cPanel.
    This, on the same shared hosting server than previously.

    Once the migration done by the hoster’s team, I finalized it and when preparing for a new install of Matomo on the new account, I discovered the Matomo Analytics plugin. I removed the WP-Piwik plugin and installed the new one.

    I did the same on the other sites on the original account and also removed the Matomo instance with Softaculous.

    I also have the long load issue on the original account, here one of the site’s WebPageTest report :

    
    URL: https://othersite.com/wp-content/plugins/matomo/app/matomo.php?action_name=vvvvvvv&send_image=0&pdf=1&qt=0&realp=0&wma=0&fla=0&java=0&ag=0&cookie=1&res=1920x1200&pv_id=4RWOp9&pf_net=108&pf_srv=74&pf_tfr=31&pf_dm1=775
    Loaded By: https://othersite.com/wp-content/uploads/matomo/matomo.js:34
    Document: https://othersite.com/
    Host: othersite.com
    IP: 1X.XX.2XX.8X
    Error/Status Code: 204
    Priority: IDLE
    Protocol: h3-Q050
    Request ID: 15851.259
    Discovered: 1.478 s
    Request Start: 1.479 s
    Time to First Byte: 6184 ms
    Content Download: 5 ms
    Bytes In (downloaded): 0 B
    Bytes Out (uploaded): 3.2 KB
    

    Are there leftover of the previous setup on all these sites ?

    • This reply was modified 1 year, 8 months ago by nam1962.
    Plugin Author Thomas

    (@tsteur)

    @nam1962 I suppose the Matomo instance you used to have is no longer active to compare if it was much faster there? Just wondering if the server is the issue maybe. For example if it has a very slow disk it could maybe explain it.

    Is there otherwise any chance to access the files on your server where your Matomo is installed so I could try and find out why it’s so slow?

    I noticed it seems a bit faster now like less than 2s instead of last time 5s but of course that’s still fairly slow and it shouldn’t take that long.

    Thread Starter nam1962

    (@nam1962)

    Hi @tsteur , no problem to create an account on my staging.
    Should I contact you via your site ?

    In addition to previous details, I’m using Plugins Garbage Collector and found 60 (!) unused databases that I erased, that may explain the reduced delay.

    Best

    nam1962

    Plugin Author Thomas

    (@tsteur)

    Great, thanks @nam1962 our email is wordpress@matomo.org

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Almost 5 seconds to load’ is closed to new replies.