<?php
add_action('init', function () {
    if (isset($_GET['run_visibility_test'])) {
        echo "<pre>Running VisibilityScanner::run() ...</pre>";

        require_once __DIR__ . '/Core/VisibilityScanner.php';

        if (class_exists('SS\\Core\\VisibilityScanner')) {
            $result = \SS\Core\VisibilityScanner::run('https://impactmindz.in/');
            echo "<pre>";
            print_r($result);
            echo "</pre>";
        } else {
            echo "<pre>❌ Class not found</pre>";
        }

        exit;
    }
});
