Changeset 3329658
- Timestamp:
- 07/17/2025 11:44:41 AM (8 months ago)
- Location:
- site-suggest
- Files:
-
- 32 added
- 8 edited
-
tags/1.2.4 (added)
-
tags/1.2.4/app (added)
-
tags/1.2.4/app/ajax-controller.php (added)
-
tags/1.2.4/app/cron-controller.php (added)
-
tags/1.2.4/app/info-controller.php (added)
-
tags/1.2.4/app/main-controller.php (added)
-
tags/1.2.4/assets (added)
-
tags/1.2.4/assets/css (added)
-
tags/1.2.4/assets/css/style.css (added)
-
tags/1.2.4/assets/js (added)
-
tags/1.2.4/assets/js/script.js (added)
-
tags/1.2.4/index.php (added)
-
tags/1.2.4/license.txt (added)
-
tags/1.2.4/readme.txt (added)
-
tags/1.2.4/site-suggest.php (added)
-
tags/1.2.4/vendor (added)
-
tags/1.2.4/vendor/DetectLanguage (added)
-
tags/1.2.4/vendor/DetectLanguage/Client.php (added)
-
tags/1.2.4/vendor/DetectLanguage/DetectLanguage.php (added)
-
tags/1.2.4/vendor/DetectLanguage/Error.php (added)
-
tags/1.2.4/vendor/detectlanguage.php (added)
-
tags/1.2.4/views (added)
-
tags/1.2.4/views/admin (added)
-
tags/1.2.4/views/admin-parts (added)
-
tags/1.2.4/views/admin-parts/admin-settings-fields.php (added)
-
tags/1.2.4/views/admin-parts/admin-site-info.php (added)
-
tags/1.2.4/views/admin/admin-robots-txt.php (added)
-
tags/1.2.4/views/admin/admin-server.php (added)
-
tags/1.2.4/views/admin/admin-settings.php (added)
-
tags/1.2.4/views/admin/admin-tool-content.php (added)
-
tags/1.2.4/views/admin/stsgt-log-single.php (added)
-
tags/1.2.4/views/admin/stsgt-log.php (added)
-
trunk/app/ajax-controller.php (modified) (6 diffs)
-
trunk/app/info-controller.php (modified) (8 diffs)
-
trunk/app/main-controller.php (modified) (4 diffs)
-
trunk/assets/css/style.css (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/site-suggest.php (modified) (2 diffs)
-
trunk/views/admin-parts/admin-site-info.php (modified) (9 diffs)
-
trunk/views/admin/admin-tool-content.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
site-suggest/trunk/app/ajax-controller.php
r3325546 r3329658 182 182 183 183 if ($log_id != "") { 184 if (isset($prev_opt_data['_404_ page_checker'][$log_id])) {185 unset($prev_opt_data['_404_ page_checker'][$log_id]);184 if (isset($prev_opt_data['_404_error_monitor'][$log_id])) { 185 unset($prev_opt_data['_404_error_monitor'][$log_id]); 186 186 } 187 187 update_option('stsgt_site_speed_data', $prev_opt_data); 188 188 } else { 189 if (isset($prev_opt_data['_404_ page_checker'])) {190 $prev_opt_data['_404_ page_checker'] = [];189 if (isset($prev_opt_data['_404_error_monitor'])) { 190 $prev_opt_data['_404_error_monitor'] = []; 191 191 } 192 192 update_option('stsgt_site_speed_data', $prev_opt_data); … … 194 194 ob_start(); 195 195 $is_404_page = true; 196 $_404_monitor_tab_keys = ['_404_ page_checker'];196 $_404_monitor_tab_keys = ['_404_error_monitor']; 197 197 $new_site_info_data = []; 198 198 foreach ($_404_monitor_tab_keys as $_404_monitor_tab_item) { … … 202 202 $new_html = ob_get_contents(); 203 203 ob_end_clean(); 204 $resp = ['status' => 200, 'message' => 'Log Deleted!', 'html' => $new_html, 'hide_all' => (empty($prev_opt_data['_404_ page_checker']) ? 'true' : 'false')];204 $resp = ['status' => 200, 'message' => 'Log Deleted!', 'html' => $new_html, 'hide_all' => (empty($prev_opt_data['_404_error_monitor']) ? 'true' : 'false')]; 205 205 } else { 206 206 $resp = ['status' => 400, 'message' => 'Nonce invalid']; … … 387 387 foreach ($matches[0] as $http_link) { 388 388 if (strpos($http_link, 'w3.org') == false) { 389 $url_arr = parse_url($http_link);389 $url_arr = wp_parse_url($http_link); 390 390 $new_url = $url_arr['scheme'].'://'.$url_arr['host'].(isset($url_arr['port']) ? ':'.$url_arr['port'] : '').$url_arr['path']; 391 391 $stsgt_http_links[] = $new_url; … … 686 686 $real_cron_obsv_post_page = empty($real_cron_obsv_post_page) ? 1 : $real_cron_obsv_post_page; 687 687 688 $cron_progress = ($real_cron_obsv_post_page / $rlcrov_post_cnt) * 100;688 $cron_progress = $rlcrov_post_cnt >= 1 ? ($real_cron_obsv_post_page / $rlcrov_post_cnt) * 100 : 0; 689 689 690 690 update_option('stsgt_cron_progress', $cron_progress); … … 1076 1076 } 1077 1077 1078 $general_tab_keys = ['custom_login_path', ' PHP_Memory_Limit_[Beta]', 'search_engine_indexing', 'SMTP_email_enabled', 'wp_version', 'PHP_version', 'plugin_risk_level_[Experimental]', 'active_theme', 'SSL_status', 'active_plugins', 'plugin_update_status', 'favicon_enabled', 'enabled_google_analytics', 'enabled_google_tags', 'has_cookie_banner', 'CDN_detected', 'reCaptcha_enabled', 'lorem_ipsum_check', 'privacy_policy_page', 'cookie_policy_page'];1079 $performance_tab_keys = ['desktop_speed_score', 'mobile_speed_score', 'server_response_time', 'accessibility_ score', 'page_caching_enabled', 'revisions', 'drafts', 'trash', 'spam_comment', 'trash_comment', 'transients', 'Non_webP_images_[Beta]'];1078 $general_tab_keys = ['custom_login_path', 'wp_Memory_Limit_[Beta]', 'search_engine_indexing', 'SMTP_email_enabled', 'wp_version', 'PHP_version', 'plugin_risk_level_[Experimental]', 'active_theme', 'SSL_status', 'active_plugins', 'plugin_update_status', 'favicon_enabled', 'enabled_google_analytics', 'enabled_google_tags', 'has_cookie_banner', 'CDN_detected', 'reCaptcha_enabled', 'lorem_ipsum_check', 'privacy_policy_page', 'cookie_policy_page']; 1079 $performance_tab_keys = ['desktop_speed_score', 'mobile_speed_score', 'server_response_time', 'accessibility_check', 'page_caching_enabled', 'revisions', 'drafts', 'trash', 'spam_comment', 'trash_comment', 'transients', 'Non_webP_images_[Beta]']; 1080 1080 $seo_tab_keys = ['seo_plugin_active', 'admin_username_detected', 'html_language_Tag', 'sitemap_available', 'www_redirect_check', 'sitemap_in_robots.txt', 'canonical_tags_check_[Beta]', 'schema_markup_check']; 1081 $_404_monitor_tab_keys = ['_404_ page_checker'];1082 $tools_check_list = ['HTTP_links_found', 'broken_links_detected_[Beta]', 'Large_image_check', 'H1_tag_check', 'media_slug_conflict_[ Beta]'];1081 $_404_monitor_tab_keys = ['_404_error_monitor']; 1082 $tools_check_list = ['HTTP_links_found', 'broken_links_detected_[Beta]', 'Large_image_check', 'H1_tag_check', 'media_slug_conflict_[Experimental]']; 1083 1083 1084 1084 switch ($audit_type): -
site-suggest/trunk/app/info-controller.php
r3325546 r3329658 79 79 $audit_data['PHP_version'] = $this->get_php_version(); 80 80 break; 81 // case ' PHP_Memory_Limit_[Beta]':82 // $audit_data[' PHP_Memory_Limit_[Beta]'] = $this->get_php_memory_limit();83 case ' PHP_Memory_Limit_[Beta]':84 $audit_data[' PHP_Memory_Limit_[Beta]'] = $this->check_memory_limit_suggestion();81 // case 'wp_Memory_Limit_[Beta]': 82 // $audit_data['wp_Memory_Limit_[Beta]'] = $this->get_php_memory_limit(); 83 case 'wp_Memory_Limit_[Beta]': 84 $audit_data['wp_Memory_Limit_[Beta]'] = $this->check_memory_limit_suggestion(); 85 85 break; 86 86 case 'mobile_speed_score': … … 112 112 $audit_data['SSL_status'] = $this->check_ssl($this->url); 113 113 break; 114 case 'accessibility_ score':115 $audit_data['accessibility_ score'] = $this->check_accessibility($this->url, 'mobile', $pagespeed_api_key);114 case 'accessibility_check': 115 $audit_data['accessibility_check'] = $this->check_accessibility($this->url, 'mobile', $pagespeed_api_key); 116 116 break; 117 117 case 'sitemap_available': … … 217 217 $audit_data['memory_limit_suggestion'] = $this->check_memory_limit_suggestion(); 218 218 $audit_data['PHP_version'] = $this->get_php_version(); 219 // $audit_data[' PHP_Memory_Limit_[Beta]'] = $this->get_php_memory_limit();220 $audit_data[' PHP_Memory_Limit_[Beta]'] = $this->check_memory_limit_suggestion();219 // $audit_data['wp_Memory_Limit_[Beta]'] = $this->get_php_memory_limit(); 220 $audit_data['wp_Memory_Limit_[Beta]'] = $this->check_memory_limit_suggestion(); 221 221 222 222 // Check Mobile and Desktop Page Speed using Google PageSpeed Insights API … … 239 239 $audit_data['active_theme'] = $this->get_theme(); 240 240 $audit_data['SSL_status'] = $this->check_ssl($this->url); 241 $audit_data['accessibility_ score'] = $this->check_accessibility($this->url, 'mobile', $pagespeed_api_key);241 $audit_data['accessibility_check'] = $this->check_accessibility($this->url, 'mobile', $pagespeed_api_key); 242 242 $audit_data['sitemap_available'] = $this->check_sitemap($this->url); 243 243 $audit_data['favicon_enabled'] = $this->check_favicon(); … … 1001 1001 $json_ld_blocks = isset($json_ld_blocks[0]) ? json_decode($json_ld_blocks[0], true) : []; 1002 1002 $page_title = $json_ld_blocks['@graph'][0]['name']; 1003 // error_log(print_r(json_decode($json_ld_blocks['@graph'], true), true));1004 1005 1003 $ld_schemas = $this->check_nested_schmark($json_ld_blocks); 1006 1004 … … 1649 1647 public function site_has_cookie_banner() 1650 1648 { 1651 $keywords = ['cookie', 'iubenda', /*'privacy', 'consent',*/ 'gdpr', 'eu-cookie']; 1652 foreach ($keywords as $keyword) { 1653 if (stripos($this->html, $keyword) !== false) { 1654 return "Yes"; 1655 } 1656 } 1657 return 'No'; 1649 if($this->is_localhost()){ 1650 return 'Local site'; 1651 }else{ 1652 $stsgt_analytics_fetch_time = get_option('stsgt_analytics_fetch_time', false); 1653 $time_diff = $stsgt_analytics_fetch_time !== false ? time() - $stsgt_analytics_fetch_time : false; 1654 if($time_diff !== false && $time_diff <= 120){ 1655 $stsgt_analytics_data = get_option('stsgt_analytics_data'); 1656 if(isset($stsgt_analytics_data['cookieBanner'])){ 1657 return $stsgt_analytics_data['cookieBanner'] ? 'Yes' : 'No'; 1658 } 1659 } 1660 1661 $remote_data = wp_remote_get('https://c.sitesuggest.io/?url=' . get_site_url()); 1662 if (!is_wp_error($remote_data)) { 1663 $response = $remote_data['body']; 1664 $resp_arr = json_decode($response, true); 1665 1666 update_option('stsgt_analytics_data', $resp_arr); 1667 update_option('stsgt_analytics_fetch_time', time()); 1668 1669 1670 if ($resp_arr && !empty($resp_arr)) { 1671 return isset($resp_arr['cookieBanner']) && $resp_arr['cookieBanner'] == true ? 'Yes' : 'No'; 1672 } 1673 } 1674 return 'No'; 1675 } 1658 1676 } 1659 1677 … … 1664 1682 function is_google_analytic_installed() 1665 1683 { 1666 $remote_data = wp_remote_get('http://sitesuggestcheck.satest.online/?url=' . get_site_url()); 1667 if (!is_wp_error($remote_data)) { 1668 $response = $remote_data['body']; 1669 $resp_arr = json_decode($response, true); 1670 1671 if ($resp_arr && !empty($resp_arr)) { 1672 return isset($resp_arr['googleAnalytics']) && $resp_arr['googleAnalytics'] == true ? 'Yes' : 'No'; 1673 } 1674 } 1675 1676 // $html = $this->html; 1677 // if (strpos($html, 'analytics.js') !== false || strpos($html, 'collect?') !== false || strpos($html, 'google-analytics') !== false) { 1678 // return 'Yes'; 1679 // } 1680 return 'No'; 1684 if($this->is_localhost()){ 1685 return 'Local site'; 1686 }else{ 1687 $stsgt_analytics_fetch_time = get_option('stsgt_analytics_fetch_time', false); 1688 $time_diff = $stsgt_analytics_fetch_time !== false ? time() - $stsgt_analytics_fetch_time : false; 1689 if($time_diff !== false && $time_diff <= 120){ 1690 $stsgt_analytics_data = get_option('stsgt_analytics_data'); 1691 if(isset($stsgt_analytics_data['googleAnalytics'])){ 1692 return $stsgt_analytics_data['googleAnalytics'] ? 'Yes' : 'No'; 1693 } 1694 } 1695 1696 $remote_data = wp_remote_get('https://c.sitesuggest.io/?url=' . get_site_url()); 1697 if (!is_wp_error($remote_data)) { 1698 $response = $remote_data['body']; 1699 $resp_arr = json_decode($response, true); 1700 1701 update_option('stsgt_analytics_data', $resp_arr); 1702 update_option('stsgt_analytics_fetch_time', time()); 1703 1704 1705 if ($resp_arr && !empty($resp_arr)) { 1706 return isset($resp_arr['googleAnalytics']) && $resp_arr['googleAnalytics'] == true ? 'Yes' . ((isset($resp_arr['analytics_id']) && $resp_arr['analytics_id'] != "" && $resp_arr['analytics_id'] != null) ? " - " . $resp_arr['analytics_id'] : "") : 'No'; 1707 } 1708 } 1709 return 'No'; 1710 } 1681 1711 } 1682 1712 … … 1688 1718 function is_google_tags_installed() 1689 1719 { 1690 $html = $this->html; 1691 if (strpos($html, 'gtm.js') !== false && strpos($html, 'www.googletagmanager.com') !== false) { 1692 // Match all GTM IDs in the HTML (e.g., GTM-XXXXXXX) 1693 if (preg_match_all('/GTM-[A-Z0-9]+/i', $html, $matches)) { 1694 $gtm_ids = array_unique($matches[0]); 1695 } 1696 if (!empty($gtm_ids)) { 1697 return 'Yes - ' . implode(', ', $gtm_ids); 1698 } else { 1699 return 'Yes'; 1700 } 1701 } 1702 return 'No'; 1720 if($this->is_localhost()){ 1721 return 'Local site'; 1722 }else{ 1723 $stsgt_analytics_fetch_time = get_option('stsgt_analytics_fetch_time', false); 1724 $time_diff = $stsgt_analytics_fetch_time !== false ? time() - $stsgt_analytics_fetch_time : false; 1725 if($time_diff !== false && $time_diff <= 120){ 1726 $stsgt_analytics_data = get_option('stsgt_analytics_data'); 1727 if(isset($stsgt_analytics_data['googleTagManager'])){ 1728 return $stsgt_analytics_data['googleTagManager'] ? 'Yes' : 'No'; 1729 } 1730 } 1731 1732 $remote_data = wp_remote_get('https://c.sitesuggest.io/?url=' . get_site_url()); 1733 if (!is_wp_error($remote_data)) { 1734 $response = $remote_data['body']; 1735 $resp_arr = json_decode($response, true); 1736 1737 update_option('stsgt_analytics_data', $resp_arr); 1738 update_option('stsgt_analytics_fetch_time', time()); 1739 1740 1741 if ($resp_arr && !empty($resp_arr)) { 1742 return isset($resp_arr['googleTagManager']) && $resp_arr['googleTagManager'] == true ? 'Yes' . ((isset($resp_arr['tag_id']) && $resp_arr['tag_id'] != "" && $resp_arr['tag_id'] != null) ? " - " . $resp_arr['tag_id'] : "") : 'No'; 1743 } 1744 } 1745 return 'No'; 1746 } 1703 1747 } 1704 1748 -
site-suggest/trunk/app/main-controller.php
r3324828 r3329658 555 555 if ($stsgt_redirect_permission && $stsgt_redirect_permission < time()) { 556 556 $stsgt_site_speed_data = get_option('stsgt_site_speed_data', []) ?? []; 557 $_404_ page_checker = $stsgt_site_speed_data['_404_page_checker'] ?? [];557 $_404_error_monitor = $stsgt_site_speed_data['_404_error_monitor'] ?? []; 558 558 $protocol = ((isset($_SERVER['HTTPS']) && !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') || isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://"; 559 559 … … 564 564 565 565 if (is_404()) { 566 $_404_ page_checker[] = $this_page_anchor;566 $_404_error_monitor[] = $this_page_anchor; 567 567 } else { 568 if (!empty($_404_ page_checker)) {569 foreach ($_404_ page_checker as $this_index => $_404_page_checker_link) {570 if ($_404_ page_checker_link == $this_page_anchor) {571 if (is_array($_404_ page_checker_link)) {572 unset($_404_ page_checker_link[$this_index]);573 $_404_ page_checker_link = array_values($_404_page_checker_link);568 if (!empty($_404_error_monitor)) { 569 foreach ($_404_error_monitor as $this_index => $_404_error_monitor_link) { 570 if ($_404_error_monitor_link == $this_page_anchor) { 571 if (is_array($_404_error_monitor_link)) { 572 unset($_404_error_monitor_link[$this_index]); 573 $_404_error_monitor_link = array_values($_404_error_monitor_link); 574 574 } 575 575 } … … 577 577 } 578 578 } 579 $stsgt_site_speed_data['_404_ page_checker'] = array_unique($_404_page_checker);579 $stsgt_site_speed_data['_404_error_monitor'] = array_unique($_404_error_monitor); 580 580 update_option('stsgt_site_speed_data', $stsgt_site_speed_data); 581 581 } … … 630 630 $all_post_ids = $this->get_all_post_ids(); 631 631 632 $general_check_list = ['custom_login_path', ' PHP_Memory_Limit_[Beta]', 'search_engine_indexing', 'SMTP_email_enabled', 'wp_version', 'PHP_version', 'plugin_risk_level_[Experimental]', 'active_theme', 'SSL_status', 'active_plugins', 'plugin_update_status', 'favicon_enabled', 'enabled_google_analytics', 'enabled_google_tags', 'has_cookie_banner', 'CDN_detected', 'reCaptcha_enabled', 'lorem_ipsum_check', 'privacy_policy_page', 'cookie_policy_page'];633 $performance_check_list = ['desktop_speed_score', 'mobile_speed_score', 'server_response_time', 'accessibility_ score', 'page_caching_enabled', 'revisions', 'drafts', 'trash', 'spam_comment', 'trash_comment', 'transients', 'Non_webP_images_[Beta]'];632 $general_check_list = ['custom_login_path', 'wp_Memory_Limit_[Beta]', 'search_engine_indexing', 'SMTP_email_enabled', 'wp_version', 'PHP_version', 'plugin_risk_level_[Experimental]', 'active_theme', 'SSL_status', 'active_plugins', 'plugin_update_status', 'favicon_enabled', 'enabled_google_analytics', 'enabled_google_tags', 'has_cookie_banner', 'CDN_detected', 'reCaptcha_enabled', 'lorem_ipsum_check', 'privacy_policy_page', 'cookie_policy_page']; 633 $performance_check_list = ['desktop_speed_score', 'mobile_speed_score', 'server_response_time', 'accessibility_check', 'page_caching_enabled', 'revisions', 'drafts', 'trash', 'spam_comment', 'trash_comment', 'transients', 'Non_webP_images_[Beta]']; 634 634 $seo_check_list = ['seo_plugin_active', 'admin_username_detected', 'html_language_Tag', 'sitemap_available', 'www_redirect_check', 'sitemap_in_robots.txt', 'canonical_tags_check_[Beta]', 'schema_markup_check']; 635 $_404_monitor_check_list = ['_404_ page_checker'];636 $tools_check_list = ['HTTP_links_found', 'broken_links_detected_[Beta]', 'Large_image_check', 'H1_tag_check','media_slug_conflict_[ Beta]'];635 $_404_monitor_check_list = ['_404_error_monitor']; 636 $tools_check_list = ['HTTP_links_found', 'broken_links_detected_[Beta]', 'Large_image_check', 'H1_tag_check','media_slug_conflict_[Experimental]']; 637 637 638 638 -
site-suggest/trunk/assets/css/style.css
r3325546 r3329658 352 352 } 353 353 354 .stsgt_site_info_wrap ul>li>ul>li:not(:has(._404_ page_checker_single_list_row)) {354 .stsgt_site_info_wrap ul>li>ul>li:not(:has(._404_error_monitor_single_list_row)) { 355 355 background: #fff; 356 356 margin: 0; … … 364 364 } 365 365 366 .stsgt_site_info_wrap ul>li>ul>li:has(._404_ page_checker_single_list_row) {366 .stsgt_site_info_wrap ul>li>ul>li:has(._404_error_monitor_single_list_row) { 367 367 padding: 8px 12px; 368 368 margin: 0; 369 369 } 370 370 371 span._404_ page_checker_single_list_row {371 span._404_error_monitor_single_list_row { 372 372 display: flex !important; 373 373 justify-content: space-between !important; … … 448 448 margin: 4px 8px; 449 449 cursor: pointer; 450 z-index: 999;450 z-index: 1; 451 451 position: relative; 452 452 } -
site-suggest/trunk/readme.txt
r3325546 r3329658 4 4 Tested up to: 6.8 5 5 Requires PHP: 7.2 6 Stable tag: 1.2. 36 Stable tag: 1.2.4 7 7 License: GPLv2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 151 151 == Changelog == 152 152 153 = 1.2.4 - 2025-07-17 = 154 * Optimized database calls 155 * Improved user experience 156 * Improved user accessibility. 157 153 158 = 1.2.3 - 2025-07-10 = 154 159 * Improved user experience -
site-suggest/trunk/site-suggest.php
r3325546 r3329658 6 6 * Author: Blurr Studio 7 7 * Author URI: https://blurr.it/ 8 * Version: 1.2. 38 * Version: 1.2.4 9 9 * License: GPL v2 or later 10 10 * License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 36 36 define('stsgt_URL', plugin_dir_url(__FILE__)); 37 37 define('stsgt_SLUG', 'site-suggest'); 38 define('stsgt_VERSION', '1.2. 3');38 define('stsgt_VERSION', '1.2.4'); 39 39 } 40 40 -
site-suggest/trunk/views/admin-parts/admin-site-info.php
r3324828 r3329658 48 48 </span> 49 49 <?php } 50 if ($title == ' PHP_Memory_Limit_[Beta]') { ?>50 if ($title == 'wp_Memory_Limit_[Beta]') { ?> 51 51 <span class="stsgt_tooltip_wrap"> 52 52 <span class="stsgt_tooltip_ico">?</span> … … 88 88 </span> 89 89 <?php } 90 if ($title == '_404_ page_checker') { ?>90 if ($title == '_404_error_monitor') { ?> 91 91 <span class="stsgt_tooltip_wrap"> 92 92 <span class="stsgt_tooltip_ico">?</span> … … 176 176 </span> 177 177 <?php } 178 if ($title == 'accessibility_ score') { ?>178 if ($title == 'accessibility_check') { ?> 179 179 <span class="stsgt_tooltip_wrap"> 180 180 <span class="stsgt_tooltip_ico">?</span> … … 300 300 <span class="stsgt_tooltip_ico">?</span> 301 301 <span class="stsgt_tooltip_data"> 302 A Privacy Policy is legally required in many regions, including under GDPR and CCPA. It explains how your site collects, uses, and protects user data.302 Checks whether a privacy policy page is published and assigned in your site settings. A clear privacy policy is required by laws like GDPR and informs users how their data is collected, used, and stored. Make sure the page is accessible and up to date. 303 303 </span> 304 304 </span> … … 308 308 <span class="stsgt_tooltip_ico">?</span> 309 309 <span class="stsgt_tooltip_data"> 310 A Cookie Notice informs visitors about cookie usage and often includes consent mechanisms, which are required under GDPR and ePrivacy laws for most sites using tracking or analytics tools.310 Checks if your site displays a cookie notice to inform users about cookie usage. Required by privacy regulations like GDPR and ePrivacy, this notice should appear on first visit and link to your cookie or privacy policy. Make sure it’s clear, compliant, and functional. 311 311 </span> 312 312 </span> … … 360 360 </span> 361 361 <?php } 362 if ($title == 'media_slug_conflict_[ Beta]') { ?>362 if ($title == 'media_slug_conflict_[Experimental]') { ?> 363 363 <span class="stsgt_tooltip_wrap"> 364 364 <span class="stsgt_tooltip_ico">?</span> … … 375 375 if ($new_site_info_data && !empty($new_site_info_data)) { 376 376 if (isset($is_404_page)) { 377 if (!empty($new_site_info_data['_404_ page_checker'])) {377 if (!empty($new_site_info_data['_404_error_monitor'])) { 378 378 echo wp_kses('<button type="button" class="button button-primary stsgt_clear_all_400log">Clear Log</button>', $allowd_html); 379 379 } … … 386 386 $real_cron_obsv_checklists = get_option('stsgt_real_cron_obsv_checklists', []); 387 387 $cron_progress = get_option('stsgt_real_cron_obsv_post_page', 0);; //get_option('stsgt_cron_progress', 0); 388 $allowd_items = ['custom_login_path', ' PHP_Memory_Limit_[Beta]', 'search_engine_indexing', 'SMTP_email_enabled', 'wp_version', 'PHP_version', 'plugin_risk_level_[Experimental]', 'active_theme', 'SSL_status', 'active_plugins', 'plugin_update_status', 'favicon_enabled', 'enabled_google_analytics', 'enabled_google_tags', 'has_cookie_banner', 'CDN_detected', 'reCaptcha_enabled', 'lorem_ipsum_check', 'privacy_policy_page', 'cookie_policy_page', 'desktop_speed_score', 'mobile_speed_score', 'server_response_time', 'accessibility_score', 'page_caching_enabled', 'revisions', 'drafts', 'trash', 'spam_comment', 'trash_comment', 'transients', 'Non_webP_images_[Beta]', 'seo_plugin_active', 'admin_username_detected', 'html_language_Tag', 'sitemap_available', 'www_redirect_check', 'sitemap_in_robots.txt', 'canonical_tags_check_[Beta]', 'schema_markup_check', '_404_page_checker','HTTP_links_found', 'broken_links_detected_[Beta]', 'Large_image_check', 'H1_tag_check', 'media_slug_conflict_[Beta]'];388 $allowd_items = ['custom_login_path', 'wp_Memory_Limit_[Beta]', 'search_engine_indexing', 'SMTP_email_enabled', 'wp_version', 'PHP_version', 'plugin_risk_level_[Experimental]', 'active_theme', 'SSL_status', 'active_plugins', 'plugin_update_status', 'favicon_enabled', 'enabled_google_analytics', 'enabled_google_tags', 'has_cookie_banner', 'CDN_detected', 'reCaptcha_enabled', 'lorem_ipsum_check', 'privacy_policy_page', 'cookie_policy_page', 'desktop_speed_score', 'mobile_speed_score', 'server_response_time', 'accessibility_check', 'page_caching_enabled', 'revisions', 'drafts', 'trash', 'spam_comment', 'trash_comment', 'transients', 'Non_webP_images_[Beta]', 'seo_plugin_active', 'admin_username_detected', 'html_language_Tag', 'sitemap_available', 'www_redirect_check', 'sitemap_in_robots.txt', 'canonical_tags_check_[Beta]', 'schema_markup_check', '_404_error_monitor','HTTP_links_found', 'broken_links_detected_[Beta]', 'Large_image_check', 'H1_tag_check', 'media_slug_conflict_[Experimental]']; 389 389 390 390 … … 458 458 <span class="<?php echo wp_kses(sanitize_title($title), true); ?>_single_list_row "><?php echo wp_kses($wp_si_sb_item, true); ?> 459 459 <?php 460 if (sanitize_title($title) == '_404_ page_checker') {460 if (sanitize_title($title) == '_404_error_monitor') { 461 461 ?> 462 462 <button type="button" class="button button-secnodary delete_single_404_log" data_id="<?php echo wp_kses($subtitle, true); ?>">Delete</button> -
site-suggest/trunk/views/admin/admin-tool-content.php
r3324828 r3329658 140 140 141 141 $is_404_page = false; 142 $general_tab_keys = ['custom_login_path', ' PHP_Memory_Limit_[Beta]', 'search_engine_indexing', 'SMTP_email_enabled', 'wp_version', 'PHP_version', 'plugin_risk_level_[Experimental]', 'active_theme', 'SSL_status', 'active_plugins', 'plugin_update_status', 'favicon_enabled', 'enabled_google_analytics', 'enabled_google_tags', 'has_cookie_banner', 'CDN_detected', 'reCaptcha_enabled', 'lorem_ipsum_check', 'privacy_policy_page', 'cookie_policy_page'];143 144 $performance_tab_keys = ['desktop_speed_score', 'mobile_speed_score', 'server_response_time', 'accessibility_ score', 'page_caching_enabled', 'revisions', 'drafts', 'trash', 'spam_comment', 'trash_comment', 'transients', 'Non_webP_images_[Beta]'];142 $general_tab_keys = ['custom_login_path', 'wp_Memory_Limit_[Beta]', 'search_engine_indexing', 'SMTP_email_enabled', 'wp_version', 'PHP_version', 'plugin_risk_level_[Experimental]', 'active_theme', 'SSL_status', 'active_plugins', 'plugin_update_status', 'favicon_enabled', 'enabled_google_analytics', 'enabled_google_tags', 'has_cookie_banner', 'CDN_detected', 'reCaptcha_enabled', 'lorem_ipsum_check', 'privacy_policy_page', 'cookie_policy_page']; 143 144 $performance_tab_keys = ['desktop_speed_score', 'mobile_speed_score', 'server_response_time', 'accessibility_check', 'page_caching_enabled', 'revisions', 'drafts', 'trash', 'spam_comment', 'trash_comment', 'transients', 'Non_webP_images_[Beta]']; 145 145 146 146 $seo_tab_keys = ['seo_plugin_active', 'admin_username_detected', 'html_language_Tag', 'sitemap_available', 'www_redirect_check', 'sitemap_in_robots.txt', 'canonical_tags_check_[Beta]', 'schema_markup_check']; 147 147 148 $_404_monitor_tab_keys = ['_404_ page_checker'];149 $tools_tab_keys = ['HTTP_links_found', 'broken_links_detected_[Beta]', 'Large_image_check', 'H1_tag_check', 'media_slug_conflict_[ Beta]'];148 $_404_monitor_tab_keys = ['_404_error_monitor']; 149 $tools_tab_keys = ['HTTP_links_found', 'broken_links_detected_[Beta]', 'Large_image_check', 'H1_tag_check', 'media_slug_conflict_[Experimental]']; 150 150 151 151 echo wp_kses(sprintf('<div class="stsgt_site_info_content" stsgt_data_content="general" %s>', $is_general_tab_open), $allowd_html);
Note: See TracChangeset
for help on using the changeset viewer.