@extends('layouts.app') @section('title', $site->name . ' - AI Performans Agent') @section('content')
Agent, mobil performans odaklı optimizasyon kararı verir ve uygular. AI, mobil FCP ve mobil skorları analiz ederek mobil için özel optimizasyonlar (görsel optimizasyonu, critical CSS, lazy loading, font optimizasyonu) önerebilir. Yeni performans analizi için lütfen manuel olarak "Performans Analizini Başlat" butonunu kullanın (cache'in yeniden oluşması için en az 10-15 dakika bekleyin).
Şu anda optimizasyonlar sadece cache purge olarak uygulanıyor. Cache purge performansı ARTIRMAZ, sadece cache'i temizler. Bu yüzden performans KÖTÜLEŞEBİLİR çünkü cache temizlenince ilk yükleme yavaş olur. Gerçek mobil optimizasyonlar (görsel optimizasyonu, critical CSS, lazy loading, font optimizasyonu) ve LiteSpeed Cache optimizasyonları için GSP Connector eklentisinde ilgili metodların eklenmesi gerekmektedir.
Mobil performans sorunları ciddi değilse (Mobil FCP < 2.5s VE Mobil Score >= 65), agent'i çalıştırmayın. Sadece ciddi mobil performans sorunlarında (Mobil FCP > 3.0s veya Mobil Score < 50) kullanın.
Toplam Çalıştırma
{{ $stats['total'] }}
Tüm zamanlar
Başarılı
{{ $stats['completed'] }}
@if($stats['total'] > 0) {{ round(($stats['completed'] / $stats['total']) * 100, 1) }}% başarı oranı @else Henüz veri yok @endif
Başarısız
{{ $stats['failed'] }}
@if($stats['total'] > 0) {{ round(($stats['failed'] / $stats['total']) * 100, 1) }}% hata oranı @else Henüz veri yok @endif
Çalışıyor
{{ $stats['running'] }}
@if($stats['running'] > 0) Aktif işlemler @else Beklemede @endif
Henüz performans agent çalıştırılmamış.
İlk çalıştırmayı başlatmak için yukarıdaki "Agent'i Başlat" butonuna tıklayın.
| Tarih | Durum | PageSpeed Skorları | Aksiyon | Başlatan | Süre |
|---|---|---|---|---|---|
|
{{ $log->created_at->format('d.m.Y') }}
{{ $log->created_at->format('H:i:s') }}
|
@if($log->status === 'running') @elseif($log->status === 'completed') @elseif($log->status === 'failed') @else @endif {{ ucfirst($log->status) }} |
@if($log->mobile_score || $log->desktop_score)
@if($log->mobile_score)
@php
$mobileChange = $log->mobile_score_change;
@endphp
@else
-
@endif
Mobile:
{{ $log->mobile_score }}/100
@if($mobileChange)
@php
$isPositive = $mobileChange['points'] > 0;
$isNegative = $mobileChange['points'] < 0;
@endphp
@if($isPositive)
+{{ abs($mobileChange['points']) }} puan
(+{{ abs($mobileChange['percent']) }}%)
@elseif($isNegative)
{{ $mobileChange['points'] }} puan
({{ $mobileChange['percent'] }}%)
@else
Değişmedi
@endif
@endif
@if($log->mobile_fcp)
FCP: {{ $log->mobile_fcp }}s
@php
$mobileFcpChange = $log->mobile_fcp_change;
@endphp
@if($mobileFcpChange)
@php
$fcpIsPositive = $mobileFcpChange['seconds'] < 0; // FCP azalması iyidir
$fcpIsNegative = $mobileFcpChange['seconds'] > 0; // FCP artması kötüdür
@endphp
@if($fcpIsPositive)
{{ abs($mobileFcpChange['seconds']) }}s daha hızlı
({{ abs($mobileFcpChange['percent']) }}% iyileşme)
@elseif($fcpIsNegative)
+{{ $mobileFcpChange['seconds'] }}s daha yavaş
({{ abs($mobileFcpChange['percent']) }}% kötüleşme)
@else
Değişmedi
@endif
@endif
@endif
Desktop:
{{ $log->desktop_score }}/100
@if($desktopChange)
@php
$isPositive = $desktopChange['points'] > 0;
$isNegative = $desktopChange['points'] < 0;
@endphp
@if($isPositive)
+{{ abs($desktopChange['points']) }} puan
(+{{ abs($desktopChange['percent']) }}%)
@elseif($isNegative)
{{ $desktopChange['points'] }} puan
({{ $desktopChange['percent'] }}%)
@else
Değişmedi
@endif
@endif
@if($log->desktop_fcp)
FCP: {{ $log->desktop_fcp }}s
@php
$desktopFcpChange = $log->desktop_fcp_change;
@endphp
@if($desktopFcpChange)
@php
$fcpIsPositive = $desktopFcpChange['seconds'] < 0; // FCP azalması iyidir
$fcpIsNegative = $desktopFcpChange['seconds'] > 0; // FCP artması kötüdür
@endphp
@if($fcpIsPositive)
{{ abs($desktopFcpChange['seconds']) }}s daha hızlı
({{ abs($desktopFcpChange['percent']) }}% iyileşme)
@elseif($fcpIsNegative)
+{{ $desktopFcpChange['seconds'] }}s daha yavaş
({{ abs($desktopFcpChange['percent']) }}% kötüleşme)
@else
Değişmedi
@endif
@endif
@endif
|
@if($log->action_taken) @if($log->action_taken === 'MOBILE_IMAGE_OPTIMIZE') @elseif($log->action_taken === 'MOBILE_CSS_CRITICAL') @elseif($log->action_taken === 'MOBILE_LAZY_LOAD') @elseif($log->action_taken === 'MOBILE_FONT_OPTIMIZE') @elseif($log->action_taken === 'LS_CSS_MINIFY') @elseif($log->action_taken === 'LS_JS_DEFER') @elseif($log->action_taken === 'IMAGE_WEBP') @elseif($log->action_taken === 'UNUSED_CSS') @elseif($log->action_taken === 'CACHE_PURGE') @elseif($log->action_taken === 'DB_OPTIMIZE') @else @endif {{ $log->action_label }} @else - @endif | {{ $log->initiatedBy ? $log->initiatedBy->name : 'Sistem' }} | @if($log->started_at && $log->finished_at) {{ $log->started_at->diffForHumans($log->finished_at, true) }} @elseif($log->started_at) Devam ediyor... @else - @endif |