tab_id; } /** * Get the tab title * * @return string The tab title */ public function get_title() { return __('Hosting', 'seoprostack'); } /** * Get the tab description * * @return string The tab description */ public function get_description() { return __('Details about your current hosting environment and recommendations for improvement.', 'seoprostack'); } /** * Get hosting providers * This internalizes the data previously retrieved from wp_seoprostack_get_hosting_providers() * * @return array Array of hosting providers with their details */ public function get_hosting_providers() { return array( 'closte' => array( 'name' => 'Closte', 'description' => 'Managed WordPress hosting with advanced performance optimization and auto-scaling.', 'features' => array( 'Auto-scaling architecture', 'Global CDN included', 'Advanced caching', 'Free SSL certificates' ), 'button_group' => array( array( 'text' => 'Home Page', 'url' => 'https://closte.com/', 'primary' => true ), array( 'text' => 'Pricing', 'url' => 'https://closte.com/pricing' ) ) ), 'cloudron' => array( 'name' => 'Cloudron', 'description' => 'Self-hosted platform that makes it easy to run web applications like WordPress on your server.', 'features' => array( 'One-click installation', 'Automatic updates', 'Built-in backups', 'SSL certificate management' ), 'button_group' => array( array( 'text' => 'Home Page', 'url' => 'https://www.cloudron.io/', 'primary' => true ), array( 'text' => 'Pricing', 'url' => 'https://www.cloudron.io/pricing.html' ) ) ), 'hostinger' => array( 'name' => 'Hostinger', 'description' => 'Affordable WordPress hosting with good performance and user-friendly management tools.', 'features' => array( 'Free domain name', 'Managed WordPress features', 'LiteSpeed cache', 'Weekly backups' ), 'button_group' => array( array( 'text' => 'Home Page', 'url' => 'https://www.hostinger.com/', 'primary' => true ), array( 'text' => 'Pricing', 'url' => 'https://www.hostinger.com/wordpress-hosting' ) ) ), 'hetzner' => array( 'name' => 'Hetzner Cloud', 'description' => 'High-performance cloud servers with excellent price-to-performance ratio for self-managed WordPress hosting.', 'features' => array( 'Scalable cloud instances', 'Per-minute billing', 'Snapshots and backups', 'Global data centers' ), 'button_group' => array( array( 'text' => 'Home Page', 'url' => 'https://www.hetzner.com/cloud/', 'primary' => true ), array( 'text' => 'Pricing', 'url' => 'https://www.hetzner.com/cloud#pricing' ) ) ), 'simplehost' => array( 'name' => 'SimpleHost', 'description' => 'Streamlined WordPress hosting with a focus on simplicity and performance.', 'features' => array( 'Simplified hosting dashboard', 'Pre-optimized WordPress', 'Automated backups', 'Email hosting included' ), 'button_group' => array( array( 'text' => 'Home Page', 'url' => 'https://simplehost.so/', 'primary' => true ), array( 'text' => 'Pricing', 'url' => 'https://simplehost.so/#pricing' ) ) ), 'cloudflare' => array( 'name' => 'Cloudflare', 'description' => 'Global cloud platform that provides CDN, security, and performance optimization services.', 'features' => array( 'Global CDN network', 'DDoS protection', 'Web application firewall', 'Performance optimization' ), 'button_group' => array( array( 'text' => 'Home Page', 'url' => 'https://www.cloudflare.com/en-gb/', 'primary' => true ), array( 'text' => 'Pricing', 'url' => 'https://www.cloudflare.com/en-gb/plans/' ) ) ), 'spaceship' => array( 'name' => 'Spaceship', 'description' => 'Modern hosting platform with advanced features for WordPress sites.', 'features' => array( 'Advanced WordPress tools', 'Optimized for speed', 'Developer-friendly features', 'Smart caching system' ), 'button_group' => array( array( 'text' => 'Home Page', 'url' => 'https://www.spaceship.com/', 'primary' => true ) ) ), '101domain' => array( 'name' => '101Domain', 'description' => 'Domain registration and management service with support for hundreds of TLDs.', 'features' => array( 'Extensive TLD selection', 'Domain privacy protection', 'Expert domain support', 'Bulk domain management' ), 'button_group' => array( array( 'text' => 'Home Page', 'url' => 'https://www.101domain.com/', 'primary' => true ) ) ), 'namecheap' => array( 'name' => 'Namecheap', 'description' => 'Domain registrar and web hosting provider with competitive pricing and good support.', 'features' => array( 'Free WhoisGuard protection', 'Competitive domain pricing', 'Reliable hosting services', 'Excellent support' ), 'button_group' => array( array( 'text' => 'Home Page', 'url' => 'https://www.namecheap.com/', 'primary' => true ), array( 'text' => 'Pricing', 'url' => 'https://www.namecheap.com/hosting/shared/' ) ) ), 'updownio' => array( 'name' => 'Updown.io', 'description' => 'Simple and affordable website monitoring service with uptime checks and performance metrics.', 'features' => array( 'Real-time monitoring', 'Performance metrics', 'Notification alerts', 'Detailed reports' ), 'button_group' => array( array( 'text' => 'Home Page', 'url' => 'https://updown.io/', 'primary' => true ), array( 'text' => 'Pricing', 'url' => 'https://updown.io/pricing' ) ) ) ); } /** * Render the tab content. */ public function render() { // Get server information $server_info = $this->get_server_info(); // Get hosting providers from the internal method $hosting_providers = $this->get_hosting_providers(); // For backward compatibility, make hosting providers available through global function if (function_exists('wp_seoprostack_get_hosting_providers') && empty($GLOBALS['_wp_seoprostack_hosting_loaded'])) { // Optional: merge with any providers from the external function to ensure none are lost $external_providers = wp_seoprostack_get_hosting_providers(); $hosting_providers = array_merge($external_providers, $hosting_providers); $GLOBALS['_wp_seoprostack_hosting_loaded'] = true; } ?>
get_description()); ?>
get_status_icon($server_info['php_status']); ?> | ||
get_status_icon($server_info['mysql_status']); ?> | ||
get_status_icon($server_info['wp_status']); ?> | ||
get_status_icon($server_info['memory_status']); ?> | ||
seconds get_status_icon($server_info['execution_status']); ?> |