{"id":64706,"date":"2026-02-12T17:36:29","date_gmt":"2026-02-12T16:36:29","guid":{"rendered":"https:\/\/kinsta.com\/nl\/?p=64706&#038;preview=true&#038;preview_id=64706"},"modified":"2026-02-18T08:27:18","modified_gmt":"2026-02-18T07:27:18","slug":"wp-bureau-prestatie-automatisering","status":"publish","type":"post","link":"https:\/\/kinsta.com\/nl\/blog\/wp-bureau-prestatie-automatisering\/","title":{"rendered":"Controle over prestaties automatiseren voor je WP bureau met PageSpeed Insights API"},"content":{"rendered":"<p>Naarmate je bureau meer klanten toevoegt, kan het handhaven van hoge prestaties op alle sites die je beheert al snel een uitdaging worden. Slecht gecodeerde plugins, niet geoptimaliseerde afbeeldingen en externe scripts kunnen de sites van je klanten vertragen en <a href=\"https:\/\/kinsta.com\/nl\/blog\/google-pagespeed-insights\/\">PageSpeed Insights<\/a> (PSI) scores geleidelijk verlagen.<\/p>\n<p>In plaats van elke WordPress site handmatig te controleren, kun je de prestatiemonitoring voor al je sites automatiseren en je alleen richten op het onderzoeken van afwijkingen wanneer deze zich voordoen, waardoor je team elke maand uren werk bespaart door eenvoudige, effici\u00ebnte geautomatiseerde controles.<\/p>\n<p>In dit artikel leer je hoe je je workflow voor het controleren van de prestaties van alle door Kinsta gehoste WordPress sites van je bureau kunt automatiseren door de <a href=\"https:\/\/kinsta.com\/nl\/docs\/kinsta-api\/\">Kinsta API<\/a> en <a href=\"https:\/\/kinsta.com\/nl\/blog\/pagespeed-insights-api\/\">Google PageSpeed Insights API<\/a> samen te gebruiken. Als laatste stap leer je hoe je deze gegevens in real-time kunt delen met je team met behulp van <a href=\"https:\/\/kinsta.com\/nl\/blog\/kinsta-diensten-api-slack\/#getting-started-with-slack-incoming-webhooks\">Slack webhooks<\/a> en hoe je het proces kunt automatiseren met een <a href=\"https:\/\/kinsta.com\/nl\/blog\/wordpress-cron-job\/\">cron job<\/a>.<\/p>\n<p>Klinkt goed? Tijd om aan de slag te gaan!<br \/>\n<div><\/div><kinsta-auto-toc heading=\"Table of Contents\" list-style=\"arrow\" selector=\"h2\" count-number=\"-1\"><\/kinsta-auto-toc><\/p>\n<h2>Overzicht workflow: Kinsta naar PageSpeed Insights naar Slack<\/h2>\n<p>Het script koppelt drie API&#8217;s. Kinsta, Google PageSpeed Insights en Slack, om het monitoren van de websiteprestaties te automatiseren.<\/p>\n<p>Begin met het bevragen van de Kinsta API om je website domeinen en omgevingen op te halen. Dit zorgt ervoor dat je domeinenlijst actueel blijft terwijl je sites van klanten toevoegt.<\/p>\n<p>Vervolgens gebruikt je script voor elke site die wordt geretourneerd door de Kinsta API de Google PSI API om de belangrijkste statistieken op te halen: Performance Score (0-100), First Contentful Paint (FCP) en Largest Contentful Paint (LCP).<\/p>\n<p>Tot slot post het script deze statistieken, de sitenaam, de drie scores en een PageSpeed Insights link naar een aangewezen Slack-kanaal.<\/p>\n<h2>De tools instellen<\/h2>\n<p>Voordat je gaat coderen, genereer je twee API-sleutels en maak je snelle configuraties.<\/p>\n<h3>De Kinsta API gebruiken: Controleer machtigingen en genereer je API-sleutel<\/h3>\n<p>De Kinsta API vereist een API-sleutel die is gegenereerd vanuit een account met specifieke machtigingen. In ons voorbeeld moet dat de Company Owner of een Company Administrator zijn.<\/p>\n<p>Om <a href=\"https:\/\/kinsta.com\/nl\/blog\/kinsta-api-sleutel\/\">een Kinsta API-sleutel aan te maken<\/a>, log je in op <a href=\"https:\/\/my.kinsta.com\/?lang=nl\">MyKinsta<\/a> en volg je deze stappen:<\/p>\n<ul>\n<li>Navigeer naar de pagina <strong>API-sleutels <\/strong>(<strong>Je naam<\/strong> &gt; <strong>Bedrijfsinstellingen<\/strong> &gt; <strong>API-sleutels<\/strong>).<\/li>\n<li>Klik op <strong>API-sleutel aanmaken<\/strong>.<\/li>\n<li>Stel <strong>de vervaltijd <\/strong>in en geef je sleutel een unieke naam.<\/li>\n<li>Klik op <strong>Genereren<\/strong>.<\/li>\n<\/ul>\n<figure id=\"attachment_203821\" aria-describedby=\"caption-attachment-203821\" style=\"width: 1743px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-203821 size-full\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2026\/01\/create-kinsta-api-key.png\" alt=\"Maak een API-sleutel aan in MyKinsta.\" width=\"1743\" height=\"987\"><figcaption id=\"caption-attachment-203821\" class=\"wp-caption-text\">Maak een API-sleutel aan in MyKinsta.<\/figcaption><\/figure>\n<p>Merk op dat <strong>dit de enige keer is dat je je API-sleutel kunt zien<\/strong>. Kopieer hem en bewaar hem op een veilige plek.<\/p>\n<p>Het tweede dat je nodig hebt is je MyKinsta <strong>bedrijfs-ID<\/strong>. Je kunt deze eenvoudig vinden in de querystring van de URL van je MyKinsta dashboard (zoek naar de parameter <code>idCompany<\/code>).<\/p>\n<p>Met deze gegevens kun je toegang krijgen tot de Kinsta API en cURL gebruiken om een lijst van je bedrijfssites op te vragen. Open je favoriete opdrachtregeltool en voer de volgende opdracht in, waarbij je <code>&lt;YOUR_COMPANY_ID&gt;<\/code> en <code>&lt;YOUR_API_KEY&gt;<\/code> vervangt door je referenties.<\/p>\n<pre><code class=\"language-bash\">curl -X GET \"https:\/\/api.kinsta.com\/v2\/sites?company=&lt;YOUR_COMPANY_ID&gt;\" \n\t -H \"Authorization: Bearer &lt;YOUR_API_KEY&gt;\"<\/code><\/pre>\n<p>Als je bedrijfs-ID en API-sleutel correct zijn, zou je een JSON respons moeten ontvangen die als volgt is opgebouwd:<\/p>\n<pre><code class=\"language-json\">{\n\t\"company\": {\n\t\t\"sites\": [\n\t\t\t{\n\t\t\t\t\"id\": \"YOUR_SITE_ID\",\n\t\t\t\t\"name\": \"my-wordpress-website\",\n\t\t\t\t\"display_name\": \"My WordPress website\",\n\t\t\t\t\"status\": \"live\",\n\t\t\t\t\"site_labels\": []\n\t\t\t}\n\t\t]\n\t}\n}<\/code><\/pre>\n<p>Zoals je kunt zien, ontbreekt in dit antwoord een essentieel stukje informatie &#8211; de website URL. Om het primaire domein voor elke omgeving op te vragen, voeg je de parameter <code>include_environments=true<\/code> toe aan de query string. Met deze parameter retourneert de API ook gedetailleerde gegevens voor elke omgeving (live en test), inclusief het primaire domein. Hier is een generieke respons:<\/p>\n<pre><code class=\"language-json\">{\n\t\"company\": {\n\t\t\"sites\": [\n\t\t\t{\n\t\t\t\t\"id\": \"54fb80af-576c-4fdc-ba4f-b596c83f15a1\",\n\t\t\t\t\"name\": \"firstsite\",\n\t\t\t\t\"display_name\": \"First site\",\n\t\t\t\t\"status\": \"live\",\n\t\t\t\t\"siteLabels\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"id\": \"54fb80af-576c-4fdc-ba4f-b596c83f15a1\",\n\t\t\t\t\t\t\"name\": \"Do not remove\"\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t\"environments\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"id\": \"54fb80af-576c-4fdc-ba4f-b596c83f15a1\",\n\t\t\t\t\t\t\"name\": \"live\",\n\t\t\t\t\t\t\"display_name\": \"Live\",\n\t\t\t\t\t\t\"is_blocked\": false,\n\t\t\t\t\t\t\"id_edge_cache\": \"54fb80af-576c-4fdc-ba4f-b596c83f15a1\",\n\t\t\t\t\t\t\"cdn_cache_id\": \"54fb80af-576c-4fdc-ba4f-b596c83f15a1\",\n\t\t\t\t\t\t\"is_opt_out_from_automatic_php_update\": false,\n\t\t\t\t\t\t\"web_root\": \"\/release_v1\",\n\t\t\t\t\t\t\"image_optimization_type\": \"lossy\",\n\t\t\t\t\t\t\"is_additional_sftp_accounts_enabled\": false,\n\t\t\t\t\t\t\"is_premium\": false,\n\t\t\t\t\t\t\"wordpress_version\": \"6.3.1\",\n\t\t\t\t\t\t\"domains\": [ ... ],\n\t\t\t\t\t\t\"primaryDomain\": {\n\t\t\t\t\t\t\t\"id\": \"54fb80af-576c-4fdc-ba4f-b596c83f15a1\",\n\t\t\t\t\t\t\t\"name\": \"example.com\",\n\t\t\t\t\t\t\t\"site_id\": \"54fb80af-576c-4fdc-ba4f-b596c83f15a1\",\n\t\t\t\t\t\t\t\"is_active\": true,\n\t\t\t\t\t\t\t\"type\": \"live\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"ssh_connection\": { ... }\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"container_info\": { ... }\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t}\n\t\t]\n\t}\n}<\/code><\/pre>\n<p>Vervolgens moet je een Google PageSpeed Insights applicatie en API-sleutel genereren.<\/p>\n<aside role=\"note\" class=\"wp-block-kinsta-notice is-style-info\">\n            <h3>Info<\/h3>\n        <p>Raadpleeg de <a href=\"https:\/\/api-docs.kinsta.com\/\">Kinsta API referentie<\/a> voor aanvullende voorbeelden van aanroepen zoals <a href=\"https:\/\/api-docs.kinsta.com\/tag\/WordPress-Sites#operation\/getSites\">deze<\/a>.<\/p>\n<\/aside>\n\n<h3>Een API-sleutel genereren voor Google PageSpeed Insights<\/h3>\n<p>De volgende stap is het maken van een API-sleutel om toegang te krijgen tot de Google PageSpeed Insights-service. Log in op de <a href=\"https:\/\/console.cloud.google.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Google Cloud Console<\/a> en volg deze stappen:<\/p>\n<p><strong>Stap 1:<\/strong> Maak een nieuw project aan of open een bestaand project. Voor dit artikel hebben we een nieuw <strong>Performance Monitoring<\/strong> project gemaakt.<\/p>\n<figure id=\"attachment_203820\" aria-describedby=\"caption-attachment-203820\" style=\"width: 2940px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-203820 size-full\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2026\/01\/google-cloud-console.png\" alt=\"Projectpagina Performance Monitoring in de Google Cloud console\" width=\"2940\" height=\"1912\"><figcaption id=\"caption-attachment-203820\" class=\"wp-caption-text\">Projectpagina Performance Monitoring in de Google Cloud console<\/figcaption><\/figure>\n<p><strong>Stap 2:<\/strong> Navigeer naar <strong>APIs &#038; Services<\/strong> &gt; <strong>Library<\/strong>, zoek dan naar <strong>PageSpeed Insights API<\/strong> onderaan de pagina en klik op de knop.<\/p>\n<figure id=\"attachment_203846\" aria-describedby=\"caption-attachment-203846\" style=\"width: 2124px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-203846 size-full\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2026\/01\/google-cloud-api-library.png\" alt=\"Selecteer PageSpeed Insights API in de Google Cloud API-bibliotheek\" width=\"2124\" height=\"1120\"><figcaption id=\"caption-attachment-203846\" class=\"wp-caption-text\">Selecteer PageSpeed Insights API in de Google Cloud API-bibliotheek<\/figcaption><\/figure>\n<p><strong>Stap 3:<\/strong> Klik op de volgende pagina op <strong>Enable<\/strong>.<\/p>\n<figure id=\"attachment_203822\" aria-describedby=\"caption-attachment-203822\" style=\"width: 1083px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-203822 size-full\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2026\/01\/enable-pagespeed-insights-api.png\" alt=\"PageSpeed Insights API inschakelen\" width=\"1083\" height=\"699\"><figcaption id=\"caption-attachment-203822\" class=\"wp-caption-text\">PageSpeed Insights API inschakelen<\/figcaption><\/figure>\n<p><strong>Stap 4:<\/strong> Klik op <strong>Create credentials <\/strong>op het tabblad <strong>Credentials<\/strong>.<\/p>\n<figure id=\"attachment_203823\" aria-describedby=\"caption-attachment-203823\" style=\"width: 1880px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-203823 size-full\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2026\/01\/create-psi-credentials.png\" alt=\"PSI API referenties aanmaken\" width=\"1880\" height=\"524\"><figcaption id=\"caption-attachment-203823\" class=\"wp-caption-text\">PSI API referenties aanmaken<\/figcaption><\/figure>\n<p><strong>Stap 5:<\/strong> Voor extra veiligheid raden we aan om beperkingen in te stellen voor de nieuw aangemaakte sleutel door alleen de <strong>PageSpeed Insights API<\/strong> te selecteren.<\/p>\n<figure id=\"attachment_203832\" aria-describedby=\"caption-attachment-203832\" style=\"width: 1732px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-203832 size-full\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2026\/01\/psi-api-restrictions-1.png\" alt=\"Beperkingen instellen voor PageSpeed Insights API\" width=\"1732\" height=\"1837\"><figcaption id=\"caption-attachment-203832\" class=\"wp-caption-text\">Beperkingen instellen voor PageSpeed Insights API<\/figcaption><\/figure>\n<p>Je PageSpeed Insights API-sleutel is nu klaar voor gebruik. Er moet nog een laatste service worden geconfigureerd. Je moet een nieuwe Slack app maken.<\/p>\n<h3>Een Slack app maken en de Incoming Webhook configureren<\/h3>\n<p>Om berichten naar een specifiek Slack kanaal te sturen, moet je een Slack applicatie maken. Volg deze stappen:<\/p>\n<p><strong>Stap 1:<\/strong> Als je <a href=\"https:\/\/kinsta.com\/nl\/blog\/hoe-gebruik-je-slack\/\">Slack<\/a> actief gebruikt om <a href=\"https:\/\/kinsta.com\/nl\/blog\/slack-integraties\/\">samen te werken<\/a> met je team, dan heb je een actieve werkruimte. Zo niet, raadpleeg dan de <a href=\"https:\/\/slack.com\/help\/articles\/206845317-Create-a-Slack-workspace\" target=\"_blank\" rel=\"noopener noreferrer\">Slack documentatie<\/a> om er een aan te maken. In dit voorbeeld gaan we ervan uit dat je een bestaande <strong>My Company<\/strong> workspace hebt.<\/p>\n<p><strong>Stap 2:<\/strong> Ga naar het <a href=\"https:\/\/api.slack.com\/apps\" target=\"_blank\" rel=\"noopener noreferrer\">Slack API dashboard<\/a> en klik op <strong>Create an App<\/strong> (of <strong>Create New App<\/strong> als dit niet je eerste app is).<\/p>\n<figure id=\"attachment_203826\" aria-describedby=\"caption-attachment-203826\" style=\"width: 2940px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-203826 size-full\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2026\/01\/slack-api-dashboard.png\" alt=\"Slack API dashboard\" width=\"2940\" height=\"1912\"><figcaption id=\"caption-attachment-203826\" class=\"wp-caption-text\">Maak je eerste Slack app.<\/figcaption><\/figure>\n<p><strong>Stap 3:<\/strong> Je wordt gevraagd om de scopes en instellingen van je app te configureren. Selecteer <strong>From scratch<\/strong>.<\/p>\n<figure id=\"attachment_203827\" aria-describedby=\"caption-attachment-203827\" style=\"width: 1188px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-203827 size-full\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2026\/01\/create-slack-app-from-scratch.png\" alt=\"Maak een Slack App vanaf nul.\" width=\"1188\" height=\"852\"><figcaption id=\"caption-attachment-203827\" class=\"wp-caption-text\">Maak een Slack App vanaf nul.<\/figcaption><\/figure>\n<p><strong>Stap 4:<\/strong> Geef je applicatie vervolgens een naam (bijv. <strong>Performance Bot<\/strong>) en selecteer je workspace.<\/p>\n<figure id=\"attachment_203828\" aria-describedby=\"caption-attachment-203828\" style=\"width: 1030px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-203828 size-full\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2026\/01\/name-app-choose-workspace.png\" alt=\"Kies App Name en selecteer een workspace\" width=\"1030\" height=\"998\"><figcaption id=\"caption-attachment-203828\" class=\"wp-caption-text\">Kies App Name en selecteer een workspace<\/figcaption><\/figure>\n<p><strong>Stap 5:<\/strong> Selecteer <strong>Incoming Webhooks<\/strong> in de linker zijbalk en klik vervolgens op <strong>On<\/strong>. Klik vervolgens onder aan de pagina op <strong>Add New Webhook<\/strong>.<\/p>\n<figure id=\"attachment_203829\" aria-describedby=\"caption-attachment-203829\" style=\"width: 1920px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-203829 size-full\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2026\/01\/activate-incoming-webhooks.png\" alt=\"Incoming Webhooks activeren\" width=\"1920\" height=\"1164\"><figcaption id=\"caption-attachment-203829\" class=\"wp-caption-text\">Incoming Webhooks activeren<\/figcaption><\/figure>\n<p><strong>Stap 6:<\/strong> Kopieer de <strong>URL van de Webhook<\/strong> en sla deze op voor toekomstig gebruik.<\/p>\n<figure id=\"attachment_203830\" aria-describedby=\"caption-attachment-203830\" style=\"width: 1332px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-203830 size-full\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2026\/01\/webhook-urls.png\" alt=\"Webhook URL's voor je workspace\" width=\"1332\" height=\"986\"><figcaption id=\"caption-attachment-203830\" class=\"wp-caption-text\">Webhook URL&#8217;s voor je workspace<\/figcaption><\/figure>\n<p>Je hebt nu alles wat je nodig hebt om een script te maken waarmee je de prestatiecijfers van je website automatisch kunt delen met je team op Slack. Het is tijd om in de code te duiken.<\/p>\n<h2>Een PHP script om prestatiemonitoring te automatiseren<\/h2>\n<p>De volgende stap is het maken van een script dat communiceert met de drie bovengenoemde services om automatisch de prestaties te controleren van alle klantensites van het bureau die worden gehost op Kinsta.<\/p>\n<h3>Stap 1: Scriptconfiguratie<\/h3>\n<p>Maak in je favoriete <a href=\"https:\/\/kinsta.com\/nl\/blog\/gratis-html-editors\/\">code editor<\/a> een nieuw <strong>.php<\/strong> bestand en voeg de volgende code toe:<\/p>\n<pre><code class=\"language-php\">&lt;?php\n\n$kinsta_api_key\t = 'YOUR_KINSTA_API_KEY';\n$kinsta_company_id  = 'YOUR_COMPANY_UUID';\n$google_api_key\t = 'YOUR_GOOGLE_API_KEY';\n$slack_webhook_url  = 'YOUR_SLACK_WEBHOOK_URL';\n\necho \"--- STARTING PERFORMANCE MONITORING ---n\";<\/code><\/pre>\n<p>Vervang de placeholders door de werkelijke gegevens die je eerder hebt opgehaald.<\/p>\n<h3>Stap 2: Gebruik de Kinsta API om een lijst met bedrijfssites op te halen<\/h3>\n<p>Om de lijst met sites in je Kinsta-account op te halen, moet je <a href=\"https:\/\/kinsta.com\/nl\/docs\/kinsta-api\/\">Kinsta API v2<\/a> en het <code>\/sites<\/code> <a href=\"https:\/\/api-docs.kinsta.com\/tag\/WordPress-Sites\/#operation\/getSites\">endpoint<\/a> gebruiken.<\/p>\n<p>Hier lees je hoe je toegang kunt krijgen tot de API via cURL:<\/p>\n<pre><code class=\"language-php\">\/\/ 1. Fetch the list of sites from Kinsta\n$url_kinsta = \"https:\/\/api.kinsta.com\/v2\/sites?company=\" . $kinsta_company_id . \"&include_environments=true\";\n$ch = curl_init($url_kinsta);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Bearer ' . $kinsta_api_key]);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n$res_kinsta = curl_exec($ch);\n$data_kinsta = json_decode($res_kinsta, true);\ncurl_close($ch);\n\n$sites = $data_kinsta['company']['sites'] ?? [];\necho \"Found \" . count($sites) . \" sites to analyze.n\";<\/code><\/pre>\n<p>Merk op dat we de queryparameter <code>includes_environments=true<\/code> hebben gebruikt om omgevingsdetails (live en test) op te halen.<\/p>\n<p>Vraag vervolgens de Google PSI API op en stuur de gegevens naar de Slack app.<\/p>\n<h3>PageSpeed Insights statistieken en Slack meldingen<\/h3>\n<p>Nu moet je de URL van elke opgehaalde site naar de PageSpeed Insights API sturen. Wanneer je de service aanroept, voert PageSpeed Insights een prestatiecontrole uit en retourneert een object met prestatiegegevens. Je script stuurt deze gegevens naar de Slack API, die de bijbehorende meldingen genereert.<\/p>\n<p>Hier is de code die je aan je script moet toevoegen:<\/p>\n<pre><code class=\"language-php\">foreach ($sites as $site) {\n\t$site_label = $site['display_name'];\n\t$primary_domain = \"\";\n\n\t\/\/ 2. Search the downloaded data directly for the live environment\n\t$environments = $site['environments'] ?? [];\n\n\tforeach ($environments as $env) {\n\t\tif ($env['name'] === 'live') {\n\t\t\t$raw_domain = $env['primaryDomain'] ?? $env['primary_domain'] ?? null;\n\t\t\t$primary_domain = is_array($raw_domain) ? ($raw_domain['name'] ?? \"\") : $raw_domain;\n\t\t\tbreak;\n\t\t}\n\t}\n\n\tif (empty($primary_domain)) {\n\t\techo \"Skipping $site_label (No Live domain found).n\";\n\t\tcontinue;\n\t}\n\n\techo \"Analyzing $primary_domain... \";\n\n\t\/\/ 3. PageSpeed analysis\n\t$psi_url = \"https:\/\/www.googleapis.com\/pagespeedonline\/v5\/runPagespeed?url=https:\/\/\" . urlencode($primary_domain) . \"&key=$google_api_key&category=performance&strategy=mobile\";\n\t\n\t$res_psi = @file_get_contents($psi_url);\n\tif ($res_psi === false) {\n\t\techo \"PSI Error.n\";\n\t\tcontinue;\n\t}\n\n\t$data_psi = json_decode($res_psi, true);\n\n\t$score = ($data_psi['lighthouseResult']['categories']['performance']['score'] ?? 0) * 100;\n\t$fcp   = $data_psi['lighthouseResult']['audits']['first-contentful-paint']['displayValue'] ?? 'N\/A';\n\t$lcp   = $data_psi['lighthouseResult']['audits']['largest-contentful-paint']['displayValue'] ?? 'N\/A';\n\n\t\/\/ 4. Send rich notification to Slack\n\t$report_link = \"https:\/\/pagespeed.web.dev\/analysis?url=https:\/\/\" . $primary_domain . \"&strategy=mobile\";\n\t\n\t$slack_msg = [\n\t\t\"text\" =&gt; \"\ud83d\ude80 *Performance Report: $site_label*nURL: `https:\/\/$primary_domain` nn\" .\n\t\t\t\"\u2022 *Score:* `$score` n\" .\n\t\t\t\"\u2022 *FCP:* $fcp n\" .\n\t\t\t\"\u2022 *LCP:* $lcpnn\" .\n\t\t\t\"[ &lt;$report_link|View Full Report&gt; ]\"\n\t];\n\n\t$ch = curl_init($slack_webhook_url);\n\tcurl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($slack_msg));\n\tcurl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application\/json']);\n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\tcurl_exec($ch);\n\tcurl_close($ch);\n\n\techo \"Done.n\";\n}\n\necho \"--- MONITORING COMPLETED ---n\";<\/code><\/pre>\n<p>In het kort itereert deze code over de elementen van de <code>$sites<\/code> array. Voor elk element van de array wordt <a href=\"https:\/\/kinsta.com\/nl\/blog\/core-web-vitals\/\">Core Web Vitals<\/a> opgehaald en een bericht naar Slack gestuurd.<\/p>\n<h3>Het script testen<\/h3>\n<p>Je kunt verbinding maken met je container <a href=\"https:\/\/kinsta.com\/nl\/blog\/ssh-gebruiken\/\">via SSH<\/a> en je PHP script direct vanaf de terminal uitvoeren. Zo kun je snel problemen met je script oplossen en in realtime prestatieresultaten in Slack ontvangen.<\/p>\n<p>Navigeer in MyKinsta naar<strong>\u00a0Sites<\/strong> &gt; <strong>Sitenaam<\/strong>. Scroll naar beneden naar de sectie <strong>Primaire SFTP\/SSH gebruiker<\/strong> en zoek het <strong>SSH terminal commando<\/strong> veld. Het zou er ongeveer zo uit moeten zien:<\/p>\n<pre><code class=\"language-bash\">ssh wordpress@host-name -p port-number<\/code><\/pre>\n<p>Kopieer het SSH terminal commando en plak het in de terminal. Je wordt gevraagd om het wachtwoord in te voeren dat in dezelfde sectie staat. Druk op Enter en je bent verbonden met je containeromgeving.<\/p>\n<figure id=\"attachment_203842\" aria-describedby=\"caption-attachment-203842\" style=\"width: 1300px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-203842 size-full\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2026\/01\/welcome-msg-kinsta-ssh-1.png\" alt=\"SSH verbinding met Kinsta\" width=\"1300\" height=\"763\"><figcaption id=\"caption-attachment-203842\" class=\"wp-caption-text\">SSH verbinding met Kinsta<\/figcaption><\/figure>\n<p>Nu kun je je code testen. Navigeer vanaf de opdrachtregel naar de map waar je het script hebt ge\u00fcpload. In dit voorbeeld hebben we de map <code>public<\/code> gebruikt:<\/p>\n<pre><code class=\"language-bash\">cd public<\/code><\/pre>\n<p>Gebruik vervolgens de volgende opdracht om het script uit te voeren:<\/p>\n<pre><code class=\"language-bash\">php performance-monitor.php<\/code><\/pre>\n<p>Het script geeft een bericht voor elke actie die het uitvoert. Als het klaar is met draaien, zou je een lijst met berichten moeten zien zoals hieronder:<\/p>\n<pre><code class=\"language-bash\">--- STARTING FULL PERFORMANCE MONITORING ---\nFound 5 sites to analyze.\nAnalyzing site1.kinsta.cloud... Done.\nAnalyzing site2.kinsta.cloud... Done.\nAnalyzing site3.kinsta.cloud... Done.\nAnalyzing example.com... Done.\nAnalyzing site5.kinsta.cloud... Done.\n--- MONITORING COMPLETED ---<\/code><\/pre>\n<p>Als PSI niet tijdig reageert, gaat het script door naar de volgende site. In dat geval zie je een bericht dat er als volgt uitziet:<\/p>\n<pre><code class=\"language-bash\">--- STARTING FULL PERFORMANCE MONITORING ---\nFound 5 sites to analyze.\nAnalyzing site1.kinsta.cloud... Done.\nAnalyzing site2.kinsta.cloud... Done.\nAnalyzing site3.kinsta.cloud... Done.\nAnalyzing example.com... PSI Error.\nAnalyzing site5.kinsta.cloud... Done.\n--- MONITORING COMPLETED ---<\/code><\/pre>\n<p>Terwijl het script Google PSI reacties verwerkt, stuurt het een bericht naar je Slack kanaal. Voor elke site die met succes is geanalyseerd door PSI, zou je een Slack-bericht moeten zien dat lijkt op het volgende:<\/p>\n<figure id=\"attachment_203837\" aria-describedby=\"caption-attachment-203837\" style=\"width: 2086px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-203837 size-full\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2026\/01\/slack-performance-report-message.png\" alt=\"Geautomatiseerd prestatierapport op Slack\" width=\"2086\" height=\"628\"><figcaption id=\"caption-attachment-203837\" class=\"wp-caption-text\">Geautomatiseerd prestatierapport op Slack<\/figcaption><\/figure>\n<p>Mooi. Je hebt zojuist je geautomatiseerde monitoringsysteem gemaakt.<\/p>\n<p>Nu wil je het misschien aanpassen aan je specifieke behoeften. Als je bijvoorbeeld honderden klantensites beheert, kan het ineffici\u00ebnt zijn om voor elke site een Slack-bericht te sturen.<\/p>\n<p>Je zou echter een conditie kunnen instellen die de algehele score van de site test en alleen een bericht naar het Slack kanaal stuurt als de waarde die wordt geretourneerd door de PSI API onder een bepaalde drempel ligt (bijvoorbeeld 90). De volgende code zou hiervoor kunnen zorgen:<\/p>\n<pre><code class=\"language-php\">$threshold = 90;\n\n\/\/ 4. Send rich notification to Slack\n\/\/ The alert is triggered only if the current score is strictly lower than our limit.\nif ($score &lt; $threshold) {\n\techo \"Score below threshold. Sending Slack alert... \";\n\n\t$report_link = \"https:\/\/pagespeed.web.dev\/analysis?url=https:\/\/\" . $primary_domain . \"&strategy=mobile\";\n\n\t\/\/ Prepare the Slack message\n\t$slack_msg = [\n\t\t\"text\" =&gt; \"\u26a0\ufe0f *Performance Alert: $site_label*nThe site score has dropped below the threshold of *$threshold*!nn\" .\n\t\t\t\"\u2022 *Score:* `$score` n\" .\n\t\t\t\"\u2022 *FCP:* $fcp n\" .\n\t\t\t\"\u2022 *LCP:* $lcpnn\" .\n\t\t\t\"[ &lt;$report_link|View Full Audit Report&gt; ]\"\n\t];\n\n\t\/\/ Execute the CURL request to the Slack Webhook\n\t$ch = curl_init($slack_webhook_url);\n\tcurl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($slack_msg));\n\tcurl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application\/json']);\n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\tcurl_exec($ch);\n\tcurl_close($ch);\n\n\techo \"Done.n\";\n} else {\n\techo \"Score is optimal ($score). No alert sent.n\";\n}<\/code><\/pre>\n<p>Werk je script bij, sla het bestand op en upload het opnieuw. Maak dan via SSH verbinding met de server, navigeer naar de juiste map en voer het volgende commando opnieuw uit:<\/p>\n<pre><code class=\"language-bash\">php performance-monitor.php<\/code><\/pre>\n<p>Als je een andere naam hebt gekozen voor je script, pas het commando dan dienovereenkomstig aan.<\/p>\n<p>De terminal zou nu een reeks berichten moeten tonen zoals hieronder:<\/p>\n<pre><code class=\"language-bash\">--- STARTING FULL PERFORMANCE MONITORING ---\nFound 5 sites to analyze.\nAnalyzing site1.kinsta.cloud... Score is optimal (100). No alert sent.\nAnalyzing site2.kinsta.cloud... Score is optimal (95). No alert sent.\nAnalyzing site3.kinsta.cloud... Score is optimal (100). No alert sent.\nAnalyzing example.com... Score below threshold. Sending Slack alert... Done.\nAnalyzing site5.kinsta.cloud... Score below threshold. Sending Slack alert... Done.\n--- MONITORING COMPLETED ---<\/code><\/pre>\n<p>In Slack ontvang je een bericht voor elke site met een totaalscore onder de drempel van 90.<\/p>\n<figure id=\"attachment_203857\" aria-describedby=\"caption-attachment-203857\" style=\"width: 1230px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-203857 size-full\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2026\/01\/slack-performance-alert.png\" alt=\"Een automatische prestatiewaarschuwing in Slack\" width=\"1230\" height=\"514\"><figcaption id=\"caption-attachment-203857\" class=\"wp-caption-text\">Een automatische prestatiewaarschuwing in Slack<\/figcaption><\/figure>\n<p>Prachtig, toch? Maar je kunt het proces nog verder optimaliseren. Zou je niet nog meer tijd willen besparen door het script automatisch op gezette tijden uit te voeren zonder dat je je commandoregeltool hoeft te gebruiken?<\/p>\n<p>Ja, je raadt het al. Je hebt een cron job nodig.<\/p>\n<h3>Automatiseer het proces met een cron job<\/h3>\n<p>Er zijn verschillende manieren om een cron job in te stellen op Kinsta. Hoewel je het <a href=\"https:\/\/kinsta.com\/nl\/blog\/wordpress-cron-job\/\">via WordPress<\/a> kunt doen, kunnen Kinsta-gebruikers <a href=\"https:\/\/kinsta.com\/nl\/docs\/wordpress-hosting\/sitebeheer\/cron-jobs\/\">server cron jobs toevoegen<\/a> aan elke sitecontainer.<\/p>\n<p>Om een cron job op Kinsta in te stellen, maak je een cron commando en voeg je het toe aan het crontab bestand van je container via SSH.<\/p>\n<p>Je kunt bijvoorbeeld een commando als het volgende gebruiken:<\/p>\n<pre><code class=\"language-bash\">0 10 * * * \/usr\/bin\/php \/www\/yoursite_123\/public\/your-script.php &gt;&gt; \/www\/yoursite_123\/performance_monitor.log 2&gt;&1<\/code><\/pre>\n<p>Dit is wat dit commando doet:<\/p>\n<ul>\n<li><code>0 10 * * *<\/code> stelt het script zo in dat het elke dag om 10 uur &#8217;s ochtends wordt uitgevoerd.<\/li>\n<li><code>\/usr\/bin\/php<\/code> is het absolute pad van de PHP-interpreter op de server.<\/li>\n<li><code>\/www\/yoursite_123\/public\/your-script.php<\/code> is het absolute pad van het script. Zorg ervoor dat je het pad en de werkelijke naam van je script op de server controleert.<\/li>\n<li>De operator <code>&gt;&gt;<\/code> (append redirection) voegt nieuwe gegevens toe aan het einde van het opgegeven bestand.<\/li>\n<li><code>\/www\/yoursite_123\/performance_monitor.log<\/code> geeft het bestand aan waarin alle tekst die door het script wordt afgedrukt, wordt opgeslagen.<\/li>\n<li>De opdracht <code>2&gt;&1<\/code> instrueert de server om fouten naar hetzelfde bestand te leiden.<\/li>\n<\/ul>\n<p>We zullen hier niet verder ingaan op cron commando&#8217;s. Je kunt de documentatie van <a href=\"http:\/\/pubs.opengroup.org\/onlinepubs\/9699919799\/utilities\/crontab.html\" target=\"_blank\" rel=\"noopener noreferrer\">The Open Group<\/a> raadplegen of een crontab tool gebruiken, zoals <a href=\"https:\/\/crontab-generator.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">Crontab Generator<\/a> of <a href=\"https:\/\/crontab.guru\/\" target=\"_blank\" rel=\"noopener noreferrer\">Cronitor<\/a>.<\/p>\n<aside role=\"note\" class=\"wp-block-kinsta-notice is-style-info\">\n            <h3>Info<\/h3>\n        <p>Tijdens het uitvoeren van de tests wil je misschien kortere intervallen instellen, zoals een paar minuten, om te controleren of je cron job werkt zoals verwacht. Als je eenmaal hebt bevestigd dat de cron job correct werkt, kun je de timing aanpassen naar uren of dagen op basis van je behoeften.<\/p>\n<\/aside>\n\n<p>Nadat je je cron commando hebt gemaakt, moet je deze toevoegen aan je sitecontainer. Je kunt ons supportteam vragen dit voor je te doen of het zelf doen via SSH. Als je voor het laatste kiest, begin dan met het typen van het volgende commando:<\/p>\n<pre><code class=\"language-bash\">crontab -e<\/code><\/pre>\n<p>Je wordt gevraagd om een editor te selecteren. Kies &#8220;nano&#8221; als je het niet zeker weet.<\/p>\n<p>Plak in de editor je commando <strong>aan het einde van het bestand<\/strong>. Sla het bestand op en keer terug naar de opdrachtregel. Je zou dan een bericht moeten zien dat bevestigt dat je wijzigingen succesvol zijn afgerond.<\/p>\n<pre><code class=\"language-bash\">crontab installing new crontab<\/code><\/pre>\n<p>Dat is het. Het script wordt nu op gezette tijden uitgevoerd en stuurt een bericht naar het Slack-kanaal van je keuze met de gevraagde statistieken voor je clientsites die slecht presteren.<\/p>\n<h2>Opschalen: Wat kun je nog meer automatiseren met de Kinsta API?<\/h2>\n<p>Het script dat in dit artikel wordt gepresenteerd kan worden aangepast en verder worden uitgebreid. Je kunt bijvoorbeeld andere diensten integreren, zoals Trello of Asana, gegevens exporteren of periodieke e-mails naar klanten sturen.<\/p>\n<p>Het automatiseren van je prestatiecontroles op de sites van je klanten is nog maar het begin. De integratie van de Kinsta API met de dagelijkse tools van je team kan de activiteiten van je bureau transformeren door het elimineren van handmatige sitebeheer- en onderhoudstaken, het verbeteren van de effici\u00ebntie en het <a href=\"https:\/\/kinsta.com\/nl\/blog\/schaalbare-groei-bureaus\/\">verlagen van de bedrijfskosten<\/a>. Je zult ook de kwaliteit van je service verbeteren, levertijden verkorten en zorgen voor de best mogelijke ervaring voor je klanten.<\/p>\n<p>Met de Kinsta API kun je <a href=\"https:\/\/kinsta.com\/nl\/blog\/kinsta-api-endpoints\/\">verschillende taken automatiseren<\/a>, zoals <a href=\"https:\/\/api-docs.kinsta.com\/tag\/WordPress-Site-Environments\/\">het cre\u00ebren van testomgevingen<\/a>, selectief wijzigingen van test naar productie pushen, <a href=\"https:\/\/api-docs.kinsta.com\/tag\/Logs\">toegang krijgen tot foutlogboeken<\/a>, <a href=\"https:\/\/api-docs.kinsta.com\/tag\/WordPress-Site-Tools#operation\/clearSiteCache\">de cache van de site leegmaken<\/a>, <a href=\"https:\/\/api-docs.kinsta.com\/tag\/Backups\">backups beheren<\/a> en nog veel meer. Deze features maken het beheren van WordPress sites snel en eenvoudig, waardoor je met vertrouwen kunt schalen.<\/p>\n<p>Klaar om je bureau naar een hoger niveau te tillen? Bekijk <a href=\"https:\/\/kinsta.com\/nl\/prijzen\/\">onze pakketten<\/a> of <a href=\"https:\/\/kinsta.com\/nl\/neem-contact-op-met-sales\/\">neem contact op met ons verkoopteam<\/a> om je specifieke behoeften te bespreken.<\/p>\n<p>Veel plezier met schalen!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Naarmate je bureau meer klanten toevoegt, kan het handhaven van hoge prestaties op alle sites die je beheert al snel een uitdaging worden. Slecht gecodeerde plugins, &#8230;<\/p>\n","protected":false},"author":36,"featured_media":64707,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kinsta_gated_content":false,"_kinsta_gated_content_redirect":"","footnotes":""},"tags":[],"topic":[911,853],"class_list":["post-64706","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","topic-api","topic-kinsta-diensten"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v24.6 (Yoast SEO v24.6) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Prestatiechecks automatiseren voor je WP bureau<\/title>\n<meta name=\"description\" content=\"Een uitgebreide tutorial waarin je leert hoe je performance checks voor al je klantensites automatiseert met Kinsta, PageSpeed Insights en de Slack API.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kinsta.com\/nl\/blog\/wp-bureau-prestatie-automatisering\/\" \/>\n<meta property=\"og:locale\" content=\"nl_NL\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Controle over prestaties automatiseren voor je WP bureau met PageSpeed Insights API\" \/>\n<meta property=\"og:description\" content=\"Een uitgebreide tutorial waarin je leert hoe je performance checks voor al je klantensites automatiseert met Kinsta, PageSpeed Insights en de Slack API.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kinsta.com\/nl\/blog\/wp-bureau-prestatie-automatisering\/\" \/>\n<meta property=\"og:site_name\" content=\"Kinsta\u00ae\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Kinsta-Nederland-476213452787823\/\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-12T16:36:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-18T07:27:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kinsta.com\/nl\/wp-content\/uploads\/sites\/7\/2026\/02\/automating-performance-checks-for-your-wp-agency-with-pagespeed-insights-api.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1470\" \/>\n\t<meta property=\"og:image:height\" content=\"735\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Carlo Daniele\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:description\" content=\"Een uitgebreide tutorial waarin je leert hoe je performance checks voor al je klantensites automatiseert met Kinsta, PageSpeed Insights en de Slack API.\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/kinsta.com\/nl\/wp-content\/uploads\/sites\/7\/2026\/02\/automating-performance-checks-for-your-wp-agency-with-pagespeed-insights-api.png\" \/>\n<meta name=\"twitter:creator\" content=\"@carlodaniele\" \/>\n<meta name=\"twitter:site\" content=\"@Kinsta_NL\" \/>\n<meta name=\"twitter:label1\" content=\"Geschreven door\" \/>\n\t<meta name=\"twitter:data1\" content=\"Carlo Daniele\" \/>\n\t<meta name=\"twitter:label2\" content=\"Geschatte leestijd\" \/>\n\t<meta name=\"twitter:data2\" content=\"16 minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/kinsta.com\/nl\/blog\/wp-bureau-prestatie-automatisering\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kinsta.com\/nl\/blog\/wp-bureau-prestatie-automatisering\/\"},\"author\":{\"name\":\"Carlo Daniele\",\"@id\":\"https:\/\/kinsta.com\/nl\/#\/schema\/person\/962dde02ea6f5df089b5d8d0853bbc63\"},\"headline\":\"Controle over prestaties automatiseren voor je WP bureau met PageSpeed Insights API\",\"datePublished\":\"2026-02-12T16:36:29+00:00\",\"dateModified\":\"2026-02-18T07:27:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kinsta.com\/nl\/blog\/wp-bureau-prestatie-automatisering\/\"},\"wordCount\":2387,\"publisher\":{\"@id\":\"https:\/\/kinsta.com\/nl\/#organization\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/nl\/blog\/wp-bureau-prestatie-automatisering\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kinsta.com\/nl\/wp-content\/uploads\/sites\/7\/2026\/02\/automating-performance-checks-for-your-wp-agency-with-pagespeed-insights-api.png\",\"inLanguage\":\"nl-NL\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kinsta.com\/nl\/blog\/wp-bureau-prestatie-automatisering\/\",\"url\":\"https:\/\/kinsta.com\/nl\/blog\/wp-bureau-prestatie-automatisering\/\",\"name\":\"Prestatiechecks automatiseren voor je WP bureau\",\"isPartOf\":{\"@id\":\"https:\/\/kinsta.com\/nl\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/kinsta.com\/nl\/blog\/wp-bureau-prestatie-automatisering\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/nl\/blog\/wp-bureau-prestatie-automatisering\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kinsta.com\/nl\/wp-content\/uploads\/sites\/7\/2026\/02\/automating-performance-checks-for-your-wp-agency-with-pagespeed-insights-api.png\",\"datePublished\":\"2026-02-12T16:36:29+00:00\",\"dateModified\":\"2026-02-18T07:27:18+00:00\",\"description\":\"Een uitgebreide tutorial waarin je leert hoe je performance checks voor al je klantensites automatiseert met Kinsta, PageSpeed Insights en de Slack API.\",\"breadcrumb\":{\"@id\":\"https:\/\/kinsta.com\/nl\/blog\/wp-bureau-prestatie-automatisering\/#breadcrumb\"},\"inLanguage\":\"nl-NL\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kinsta.com\/nl\/blog\/wp-bureau-prestatie-automatisering\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"nl-NL\",\"@id\":\"https:\/\/kinsta.com\/nl\/blog\/wp-bureau-prestatie-automatisering\/#primaryimage\",\"url\":\"https:\/\/kinsta.com\/nl\/wp-content\/uploads\/sites\/7\/2026\/02\/automating-performance-checks-for-your-wp-agency-with-pagespeed-insights-api.png\",\"contentUrl\":\"https:\/\/kinsta.com\/nl\/wp-content\/uploads\/sites\/7\/2026\/02\/automating-performance-checks-for-your-wp-agency-with-pagespeed-insights-api.png\",\"width\":1470,\"height\":735},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kinsta.com\/nl\/blog\/wp-bureau-prestatie-automatisering\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/kinsta.com\/nl\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"API\",\"item\":\"https:\/\/kinsta.com\/nl\/onderwerpen\/api\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Controle over prestaties automatiseren voor je WP bureau met PageSpeed Insights API\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kinsta.com\/nl\/#website\",\"url\":\"https:\/\/kinsta.com\/nl\/\",\"name\":\"Kinsta\u00ae\",\"description\":\"Snelle, veilige, premium hostingoplossingen\",\"publisher\":{\"@id\":\"https:\/\/kinsta.com\/nl\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kinsta.com\/nl\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"nl-NL\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/kinsta.com\/nl\/#organization\",\"name\":\"Kinsta\",\"url\":\"https:\/\/kinsta.com\/nl\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"nl-NL\",\"@id\":\"https:\/\/kinsta.com\/nl\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/kinsta.com\/nl\/wp-content\/uploads\/sites\/7\/2023\/12\/kinsta-logo.jpeg\",\"contentUrl\":\"https:\/\/kinsta.com\/nl\/wp-content\/uploads\/sites\/7\/2023\/12\/kinsta-logo.jpeg\",\"width\":500,\"height\":500,\"caption\":\"Kinsta\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/nl\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/Kinsta-Nederland-476213452787823\/\",\"https:\/\/x.com\/Kinsta_NL\",\"https:\/\/www.instagram.com\/kinstahosting\/\",\"https:\/\/www.linkedin.com\/company\/kinsta\/\",\"https:\/\/www.pinterest.com\/kinstahosting\/\",\"https:\/\/www.youtube.com\/c\/Kinsta\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/kinsta.com\/nl\/#\/schema\/person\/962dde02ea6f5df089b5d8d0853bbc63\",\"name\":\"Carlo Daniele\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"nl-NL\",\"@id\":\"https:\/\/kinsta.com\/nl\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/429e5568f88110fd9a409b84cb22197e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/429e5568f88110fd9a409b84cb22197e?s=96&d=mm&r=g\",\"caption\":\"Carlo Daniele\"},\"description\":\"Carlo is a passionate lover of webdesign and front-end development. He has been playing with WordPress for more than 20 years, also in collaboration with Italian and European universities and educational institutions. He has written hundreds of articles and guides about WordPress, published both on Italian and international websites, as well as on printed magazines. You can find him on LinkedIn.\",\"sameAs\":[\"https:\/\/frammentidicodice.com\/\",\"https:\/\/x.com\/carlodaniele\"],\"url\":\"https:\/\/kinsta.com\/nl\/blog\/author\/carlodaniele\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Prestatiechecks automatiseren voor je WP bureau","description":"Een uitgebreide tutorial waarin je leert hoe je performance checks voor al je klantensites automatiseert met Kinsta, PageSpeed Insights en de Slack API.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kinsta.com\/nl\/blog\/wp-bureau-prestatie-automatisering\/","og_locale":"nl_NL","og_type":"article","og_title":"Controle over prestaties automatiseren voor je WP bureau met PageSpeed Insights API","og_description":"Een uitgebreide tutorial waarin je leert hoe je performance checks voor al je klantensites automatiseert met Kinsta, PageSpeed Insights en de Slack API.","og_url":"https:\/\/kinsta.com\/nl\/blog\/wp-bureau-prestatie-automatisering\/","og_site_name":"Kinsta\u00ae","article_publisher":"https:\/\/www.facebook.com\/Kinsta-Nederland-476213452787823\/","article_published_time":"2026-02-12T16:36:29+00:00","article_modified_time":"2026-02-18T07:27:18+00:00","og_image":[{"width":1470,"height":735,"url":"https:\/\/kinsta.com\/nl\/wp-content\/uploads\/sites\/7\/2026\/02\/automating-performance-checks-for-your-wp-agency-with-pagespeed-insights-api.png","type":"image\/png"}],"author":"Carlo Daniele","twitter_card":"summary_large_image","twitter_description":"Een uitgebreide tutorial waarin je leert hoe je performance checks voor al je klantensites automatiseert met Kinsta, PageSpeed Insights en de Slack API.","twitter_image":"https:\/\/kinsta.com\/nl\/wp-content\/uploads\/sites\/7\/2026\/02\/automating-performance-checks-for-your-wp-agency-with-pagespeed-insights-api.png","twitter_creator":"@carlodaniele","twitter_site":"@Kinsta_NL","twitter_misc":{"Geschreven door":"Carlo Daniele","Geschatte leestijd":"16 minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kinsta.com\/nl\/blog\/wp-bureau-prestatie-automatisering\/#article","isPartOf":{"@id":"https:\/\/kinsta.com\/nl\/blog\/wp-bureau-prestatie-automatisering\/"},"author":{"name":"Carlo Daniele","@id":"https:\/\/kinsta.com\/nl\/#\/schema\/person\/962dde02ea6f5df089b5d8d0853bbc63"},"headline":"Controle over prestaties automatiseren voor je WP bureau met PageSpeed Insights API","datePublished":"2026-02-12T16:36:29+00:00","dateModified":"2026-02-18T07:27:18+00:00","mainEntityOfPage":{"@id":"https:\/\/kinsta.com\/nl\/blog\/wp-bureau-prestatie-automatisering\/"},"wordCount":2387,"publisher":{"@id":"https:\/\/kinsta.com\/nl\/#organization"},"image":{"@id":"https:\/\/kinsta.com\/nl\/blog\/wp-bureau-prestatie-automatisering\/#primaryimage"},"thumbnailUrl":"https:\/\/kinsta.com\/nl\/wp-content\/uploads\/sites\/7\/2026\/02\/automating-performance-checks-for-your-wp-agency-with-pagespeed-insights-api.png","inLanguage":"nl-NL"},{"@type":"WebPage","@id":"https:\/\/kinsta.com\/nl\/blog\/wp-bureau-prestatie-automatisering\/","url":"https:\/\/kinsta.com\/nl\/blog\/wp-bureau-prestatie-automatisering\/","name":"Prestatiechecks automatiseren voor je WP bureau","isPartOf":{"@id":"https:\/\/kinsta.com\/nl\/#website"},"primaryImageOfPage":{"@id":"https:\/\/kinsta.com\/nl\/blog\/wp-bureau-prestatie-automatisering\/#primaryimage"},"image":{"@id":"https:\/\/kinsta.com\/nl\/blog\/wp-bureau-prestatie-automatisering\/#primaryimage"},"thumbnailUrl":"https:\/\/kinsta.com\/nl\/wp-content\/uploads\/sites\/7\/2026\/02\/automating-performance-checks-for-your-wp-agency-with-pagespeed-insights-api.png","datePublished":"2026-02-12T16:36:29+00:00","dateModified":"2026-02-18T07:27:18+00:00","description":"Een uitgebreide tutorial waarin je leert hoe je performance checks voor al je klantensites automatiseert met Kinsta, PageSpeed Insights en de Slack API.","breadcrumb":{"@id":"https:\/\/kinsta.com\/nl\/blog\/wp-bureau-prestatie-automatisering\/#breadcrumb"},"inLanguage":"nl-NL","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kinsta.com\/nl\/blog\/wp-bureau-prestatie-automatisering\/"]}]},{"@type":"ImageObject","inLanguage":"nl-NL","@id":"https:\/\/kinsta.com\/nl\/blog\/wp-bureau-prestatie-automatisering\/#primaryimage","url":"https:\/\/kinsta.com\/nl\/wp-content\/uploads\/sites\/7\/2026\/02\/automating-performance-checks-for-your-wp-agency-with-pagespeed-insights-api.png","contentUrl":"https:\/\/kinsta.com\/nl\/wp-content\/uploads\/sites\/7\/2026\/02\/automating-performance-checks-for-your-wp-agency-with-pagespeed-insights-api.png","width":1470,"height":735},{"@type":"BreadcrumbList","@id":"https:\/\/kinsta.com\/nl\/blog\/wp-bureau-prestatie-automatisering\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kinsta.com\/nl\/"},{"@type":"ListItem","position":2,"name":"API","item":"https:\/\/kinsta.com\/nl\/onderwerpen\/api\/"},{"@type":"ListItem","position":3,"name":"Controle over prestaties automatiseren voor je WP bureau met PageSpeed Insights API"}]},{"@type":"WebSite","@id":"https:\/\/kinsta.com\/nl\/#website","url":"https:\/\/kinsta.com\/nl\/","name":"Kinsta\u00ae","description":"Snelle, veilige, premium hostingoplossingen","publisher":{"@id":"https:\/\/kinsta.com\/nl\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kinsta.com\/nl\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"nl-NL"},{"@type":"Organization","@id":"https:\/\/kinsta.com\/nl\/#organization","name":"Kinsta","url":"https:\/\/kinsta.com\/nl\/","logo":{"@type":"ImageObject","inLanguage":"nl-NL","@id":"https:\/\/kinsta.com\/nl\/#\/schema\/logo\/image\/","url":"https:\/\/kinsta.com\/nl\/wp-content\/uploads\/sites\/7\/2023\/12\/kinsta-logo.jpeg","contentUrl":"https:\/\/kinsta.com\/nl\/wp-content\/uploads\/sites\/7\/2023\/12\/kinsta-logo.jpeg","width":500,"height":500,"caption":"Kinsta"},"image":{"@id":"https:\/\/kinsta.com\/nl\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Kinsta-Nederland-476213452787823\/","https:\/\/x.com\/Kinsta_NL","https:\/\/www.instagram.com\/kinstahosting\/","https:\/\/www.linkedin.com\/company\/kinsta\/","https:\/\/www.pinterest.com\/kinstahosting\/","https:\/\/www.youtube.com\/c\/Kinsta"]},{"@type":"Person","@id":"https:\/\/kinsta.com\/nl\/#\/schema\/person\/962dde02ea6f5df089b5d8d0853bbc63","name":"Carlo Daniele","image":{"@type":"ImageObject","inLanguage":"nl-NL","@id":"https:\/\/kinsta.com\/nl\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/429e5568f88110fd9a409b84cb22197e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/429e5568f88110fd9a409b84cb22197e?s=96&d=mm&r=g","caption":"Carlo Daniele"},"description":"Carlo is a passionate lover of webdesign and front-end development. He has been playing with WordPress for more than 20 years, also in collaboration with Italian and European universities and educational institutions. He has written hundreds of articles and guides about WordPress, published both on Italian and international websites, as well as on printed magazines. You can find him on LinkedIn.","sameAs":["https:\/\/frammentidicodice.com\/","https:\/\/x.com\/carlodaniele"],"url":"https:\/\/kinsta.com\/nl\/blog\/author\/carlodaniele\/"}]}},"acf":[],"_links":{"self":[{"href":"https:\/\/kinsta.com\/nl\/wp-json\/wp\/v2\/posts\/64706","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kinsta.com\/nl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kinsta.com\/nl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kinsta.com\/nl\/wp-json\/wp\/v2\/users\/36"}],"replies":[{"embeddable":true,"href":"https:\/\/kinsta.com\/nl\/wp-json\/wp\/v2\/comments?post=64706"}],"version-history":[{"count":5,"href":"https:\/\/kinsta.com\/nl\/wp-json\/wp\/v2\/posts\/64706\/revisions"}],"predecessor-version":[{"id":64762,"href":"https:\/\/kinsta.com\/nl\/wp-json\/wp\/v2\/posts\/64706\/revisions\/64762"}],"alternate":[{"embeddable":true,"hreflang":"en","title":"English","href":"https:\/\/kinsta.com\/nl\/wp-json\/kinsta\/v1\/posts\/64706\/translations\/en"},{"embeddable":true,"hreflang":"it","title":"Italian","href":"https:\/\/kinsta.com\/nl\/wp-json\/kinsta\/v1\/posts\/64706\/translations\/it"},{"embeddable":true,"hreflang":"pt","title":"Portuguese","href":"https:\/\/kinsta.com\/nl\/wp-json\/kinsta\/v1\/posts\/64706\/translations\/pt"},{"embeddable":true,"hreflang":"fr","title":"French","href":"https:\/\/kinsta.com\/nl\/wp-json\/kinsta\/v1\/posts\/64706\/translations\/fr"},{"embeddable":true,"hreflang":"de","title":"German","href":"https:\/\/kinsta.com\/nl\/wp-json\/kinsta\/v1\/posts\/64706\/translations\/de"},{"embeddable":true,"hreflang":"ja","title":"Japanese","href":"https:\/\/kinsta.com\/nl\/wp-json\/kinsta\/v1\/posts\/64706\/translations\/jp"},{"embeddable":true,"hreflang":"nl","title":"Dutch","href":"https:\/\/kinsta.com\/nl\/wp-json\/kinsta\/v1\/posts\/64706\/translations\/nl"},{"embeddable":true,"hreflang":"es","title":"Spanish","href":"https:\/\/kinsta.com\/nl\/wp-json\/kinsta\/v1\/posts\/64706\/translations\/es"},{"href":"https:\/\/kinsta.com\/nl\/wp-json\/kinsta\/v1\/posts\/64706\/tree"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kinsta.com\/nl\/wp-json\/wp\/v2\/media\/64707"}],"wp:attachment":[{"href":"https:\/\/kinsta.com\/nl\/wp-json\/wp\/v2\/media?parent=64706"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kinsta.com\/nl\/wp-json\/wp\/v2\/tags?post=64706"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/kinsta.com\/nl\/wp-json\/wp\/v2\/topic?post=64706"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}