{"id":7626,"date":"2025-12-23T17:57:38","date_gmt":"2025-12-23T16:57:38","guid":{"rendered":"https:\/\/webwakeup.it\/?page_id=7626"},"modified":"2025-12-31T13:29:44","modified_gmt":"2025-12-31T12:29:44","slug":"website-analyzer","status":"publish","type":"page","link":"https:\/\/webwakeup.it\/en\/website-analyzer\/","title":{"rendered":"WebSite Analyzer"},"content":{"rendered":"<section class=\"bde-section-7626-100 bde-section\">\n  \n  \n\t\n\n\n\n<div class=\"section-container\"><div class=\"bde-div-7626-103 bde-div\">\n  \n  \n\t\n\n\n\n<div class=\"bde-text-7626-105 bde-text\">\nBETA\n<\/div><img decoding=\"async\" class=\"bde-image2-7626-104 bde-image2 smush-dimensions\" src=\"https:\/\/webwakeup.it\/wp-content\/uploads\/2025\/12\/ChatGPT-Image-31-dic-2025-13_28_09-e1767184150626.webp\" loading=\"lazy\" srcset=\"https:\/\/webwakeup.it\/wp-content\/uploads\/2025\/12\/ChatGPT-Image-31-dic-2025-13_28_09-e1767184150626.webp 1103w, https:\/\/webwakeup.it\/wp-content\/uploads\/2025\/12\/ChatGPT-Image-31-dic-2025-13_28_09-e1767184150626-300x98.webp 300w, https:\/\/webwakeup.it\/wp-content\/uploads\/2025\/12\/ChatGPT-Image-31-dic-2025-13_28_09-e1767184150626-1024x334.webp 1024w, https:\/\/webwakeup.it\/wp-content\/uploads\/2025\/12\/ChatGPT-Image-31-dic-2025-13_28_09-e1767184150626-768x251.webp 768w, https:\/\/webwakeup.it\/wp-content\/uploads\/2025\/12\/ChatGPT-Image-31-dic-2025-13_28_09-e1767184150626-600x196.webp 600w\" sizes=\"auto, (max-width: 1103px) 100vw, 1103px\" width=\"1103\" style=\"--smush-image-width: 1103px; --smush-image-aspect-ratio: 1103\/360;\">\n<\/div><div class=\"bde-shortcode-7626-102 bde-shortcode\">\n<div class=\"wap-analyzer-container\" id=\"wap-analyzer\">\n    <div class=\"wap-header\">\n        <h2 class=\"wap-title\">Website Analyzer Pro<\/h2>\n        <p class=\"wap-description\">\n            Analyze your website's performance using Google PageSpeed Insights and AI-powered design analysis.        <\/p>\n    <\/div>\n\n    <div class=\"wap-form-section\">\n                    <!-- No URL parameter, show message -->\n            <div class=\"wap-no-url-message\">\n                <p>No URL specified. Please enter a valid URL in the \"website\" parameter of the URL.<\/p>\n                <p><small>Example: ?website=https:\/\/example.com<\/small><\/p>\n            <\/div>\n            <\/div>\n\n    <div id=\"wap-error-message\" class=\"wap-error-message\" style=\"display: none;\"><\/div>\n\n    <div id=\"wap-results\" class=\"wap-results\" style=\"display: none;\">\n        <div class=\"wap-results-header\">\n            <h3>Analysis Results<\/h3>\n        <\/div>\n\n        <div class=\"wap-results-content\">\n            <!-- Progress Bar -->\n            <div class=\"wap-progress-section\" id=\"wap-progress-section\" style=\"display: none; margin-bottom: 30px;\">\n                <div class=\"wap-progress-container\">\n                    <div class=\"wap-progress-bar-wrapper\">\n                        <div class=\"wap-progress-bar\" style=\"width: 0%;\"><\/div>\n                    <\/div>\n                    <p class=\"wap-progress-message\">Preparing analysis...<\/p>\n                <\/div>\n            <\/div>\n\n            <!-- Category Scores -->\n            <div class=\"wap-score-section\">\n                <div class=\"wap-category-scores\" id=\"wap-category-scores\"><\/div>\n            <\/div>\n\n            <!-- PageSpeed Details -->\n            <div class=\"wap-details-wrapper\">\n                <div class=\"wap-details-grid\">\n                    <!-- Performance Section -->\n                    <div class=\"wap-detail-section-card\">\n                        <h3 class=\"wap-section-title\">Performance<\/h3>\n                        <div class=\"wap-section-content\" id=\"wap-performance-content\"><\/div>\n                    <\/div>\n\n                    <!-- SEO Section -->\n                    <div class=\"wap-detail-section-card\">\n                        <h3 class=\"wap-section-title\">Search Engine Optimization<\/h3>\n                        <div class=\"wap-section-content\" id=\"wap-seo-content\"><\/div>\n                    <\/div>\n\n                    <!-- CopyWriting Section -->\n                    <div class=\"wap-detail-section-card\">\n                        <h3 class=\"wap-section-title\">Copywriting<\/h3>\n                        <div class=\"wap-section-content\" id=\"wap-copywriting-content\"><\/div>\n                    <\/div>\n\n                    <!-- Design & UX Section -->\n                    <div class=\"wap-detail-section-card\">\n                        <h3 class=\"wap-section-title\">Design &amp; UX<\/h3>\n                        <div class=\"wap-section-content\" id=\"wap-design-content\"><\/div>\n        <\/div>\n\n                    <!-- AI Insights Section -->\n                    <div class=\"wap-detail-section-card wap-ai-insights\" id=\"wap-ai-insights\">\n                        <h3 class=\"wap-section-title\" style=\"font-size: 1.5em; margin-bottom: 20px; color: #667eea; display: flex; align-items: center; gap: 10px;\">\n                            <span style=\"font-size: 1.2em;\">\u2728<\/span>\n                            Final Analysis: AI Insights                        <\/h3>\n                        <div class=\"wap-section-content\" id=\"wap-ai-content\"><\/div>\n            <\/div>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n<\/div>\n\n<script type=\"text\/javascript\">\njQuery(document).ready(function($) {\n    'use strict';\n    \n    \/\/ Auto-analyze if URL parameter is present\n    var urlParam = $('#wap-url-input').val();\n    \n    if (urlParam) {\n        var url = urlParam.trim();\n        var strategy = $('#wap-strategy').val() || 'mobile';\n        \n        console.log('Website Analyzer Pro: Auto-analyze triggered');\n        console.log('  - URL from parameter: ' + url);\n        console.log('  - Strategy: ' + strategy);\n        \n        \/\/ Clean and validate URL\n        if (url) {\n            \/\/ Remove any HTML entities\n            url = $('<div>').html(url).text();\n            \n            \/\/ Remove trailing slashes and whitespace\n            url = url.replace(\/\\\/+$\/, '').trim();\n            \n            \/\/ Ensure URL starts with http:\/\/ or https:\/\/\n            if (!url.match(\/^https?:\\\/\\\/\/i)) {\n                url = 'https:\/\/' + url;\n                console.log('Website Analyzer Pro: Added https:\/\/ prefix: ' + url);\n            }\n            \n            \/\/ Final validation: ensure it's a valid URL format\n            try {\n                var urlObj = new URL(url);\n                url = urlObj.href; \/\/ This normalizes the URL\n                console.log('Website Analyzer Pro: Normalized URL: ' + url);\n                \n                \/\/ Update the hidden input with normalized URL\n                $('#wap-url-input').val(url);\n            } catch(e) {\n                console.error('Website Analyzer Pro: Invalid URL format:', e);\n                $('#wap-form-loading').html('<p style=\"color: #d63638;\">Errore: URL non valido. Assicurati che l\\'URL sia nel formato corretto (es: https:\/\/example.com)<\/p>');\n                return;\n            }\n        }\n        \n        \/\/ Validate URL\n        if (!url || !url.match(\/^https?:\\\/\\\/.+\/i)) {\n            console.error('Website Analyzer Pro: Invalid URL:', url);\n            $('#wap-form-loading').html('<p style=\"color: #d63638;\">Errore: URL non valido. Assicurati che l\\'URL sia nel formato corretto (es: https:\/\/example.com)<\/p>');\n        return;\n    }\n    \n        console.log('Website Analyzer Pro: Starting analysis for URL:', url);\n        \n        \/\/ Wait for WAPAnalyzer to be available, then start analysis\n        function startAnalysis() {\n            if (typeof WAPAnalyzer !== 'undefined' && typeof WAPAnalyzer.analyzeWebsite === 'function') {\n                console.log('Website Analyzer Pro: WAPAnalyzer available, starting analysis');\n                \n                \/\/ Show results section immediately (WAPAnalyzer will populate it)\n                $('#wap-results').show();\n        \n                \/\/ Start analysis using WAPAnalyzer (it reads from #wap-url-input and #wap-strategy)\n                try {\n                    WAPAnalyzer.analyzeWebsite();\n                    console.log('Website Analyzer Pro: Analysis started via WAPAnalyzer.analyzeWebsite()');\n                } catch(e) {\n                    console.error('Website Analyzer Pro: Error calling WAPAnalyzer.analyzeWebsite():', e);\n                    $('#wap-form-loading').html('<p style=\"color: #d63638;\">Errore durante l\\'avvio dell\\'analisi: ' + e.message + '<\/p>');\n                }\n        } else {\n                \/\/ WAPAnalyzer not available yet, wait a bit more\n                console.log('Website Analyzer Pro: WAPAnalyzer not available yet, waiting...');\n                setTimeout(startAnalysis, 200);\n            }\n        }\n        \n        \/\/ Start trying to run analysis after a short delay\n        setTimeout(startAnalysis, 500);\n        }\n    });\n<\/script>\n<\/div><\/div>\n<\/section>","protected":false},"excerpt":{"rendered":"<p>BETA Website Analyzer Pro Analyze your website quality using Google PageSpeed Insights and AI-powered design analysis. Nessun URL specificato. Inserisci un URL valido nel parametro &quot;website&quot; dell&#039;URL. Esempio: ?website=https:\/\/example.com Analysis Results Preparazione analisi&#8230; Performance SEO CopyWriting Design &amp; UX \u2728 Analisi Finale AI Insights<\/p>","protected":false},"author":29,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_breakdance_hide_in_design_set":false,"_breakdance_tags":"","footnotes":""},"class_list":["post-7626","page","type-page","status-publish","hentry"],"meta_box":[],"_links":{"self":[{"href":"https:\/\/webwakeup.it\/en\/wp-json\/wp\/v2\/pages\/7626","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webwakeup.it\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/webwakeup.it\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/webwakeup.it\/en\/wp-json\/wp\/v2\/users\/29"}],"replies":[{"embeddable":true,"href":"https:\/\/webwakeup.it\/en\/wp-json\/wp\/v2\/comments?post=7626"}],"version-history":[{"count":9,"href":"https:\/\/webwakeup.it\/en\/wp-json\/wp\/v2\/pages\/7626\/revisions"}],"predecessor-version":[{"id":7764,"href":"https:\/\/webwakeup.it\/en\/wp-json\/wp\/v2\/pages\/7626\/revisions\/7764"}],"wp:attachment":[{"href":"https:\/\/webwakeup.it\/en\/wp-json\/wp\/v2\/media?parent=7626"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}