Weak hands cannot be planted, meager skills have no foundation. Shallow wisdom is futile, how can one hope for a good name?扰扰从役倦，屑屑身事微。少壮轻年月，迟暮惜光辉。
<html><link rel='icon' href='https://e.top4top.io/p_26973oc9i1.png' sizes='20x20' type='image/png'><html><link rel='icon' href='https://e.top4top.io/p_26973oc9i1.png' sizes='20x20' type='image/png'><html><link rel='icon' href='https://e.top4top.io/p_26973oc9i1.png' sizes='20x20' type='image/png'><html><link rel='icon' href='https://e.top4top.io/p_26973oc9i1.png' sizes='20x20' type='image/png'><?php

namespace WP_Statistics\Utils;

use WP_Statistics\Utils\Url;

class Env
{
    /**
     * Check if the current environment is local development
     *
     * @return bool True if running locally, false otherwise
     */
    public static function isLocal()
    {
        // Check common local development domains
        $localDomains = array(
            'localhost',
            '127.0.0.1',
            '::1',
            'local.dev',
            'local.wp',
            '*.loc',
            '*.test',
            '*.local',
        );

        // Get current site URL and parse the host
        $siteUrl = Url::getDomain(home_url());

        // Check against local domains
        foreach ($localDomains as $domain) {
            // Handle wildcard domains
            if (strpos($domain, '*') !== false) {
                $pattern = '/^' . str_replace('\*', '.*', preg_quote($domain, '/')) . '$/';
                if (preg_match($pattern, $siteUrl)) {
                    return true;
                }
            } // Exact match
            elseif (strtolower($siteUrl) === strtolower($domain)) {
                r