PluginProbe
xSpeed Cache: AI-Powered Performance Hub with MCP, Caching & CDN / 1.3.2
xSpeed Cache: AI-Powered Performance Hub with MCP, Caching & CDN v1.3.2
1.3.2 1.3.1 1.3.0 1.2.4 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.2.0 All 28 releases
← All changes | includes/modules/Database/DatabaseModule.php +9 -6 1.0.41.3.2 View file →
@@ -12,8 +12,10 @@
12 12 declare(strict_types=1);
13 13
14 14 namespace XSpeed\Modules\Database;
15 15
16 +defined( 'ABSPATH' ) || exit;
17 +
16 18 use XSpeed\Database_Cleaner;
17 19 use XSpeed\Module;
18 20 use XSpeed\Settings_Manager;
19 21
@@ -24,11 +26,11 @@
24 26 public const VERSION = '1.0.0';
25 27
26 28 public function ui_metadata(): array {
27 29 return array(
28 - 'label' => 'Database',
30 + 'label' => __( 'Database', 'xspeed' ),
29 31 'icon' => 'Trash2',
30 - 'description' => 'Scan + clean WordPress bloat (revisions, spam, transients, orphan meta) and optimize tables.',
32 + 'description' => __( 'Scan + clean WordPress bloat (revisions, spam, transients, orphan meta) and optimize tables.', 'xspeed' ),
31 33 'custom_panel' => 'DatabaseCleanerPanel',
32 34 );
33 35 }
34 36
@@ -43,17 +45,17 @@
43 45 'hourly' => 'Hourly',
44 46 'daily' => 'Daily',
45 47 'weekly' => 'Weekly',
46 48 ),
47 - 'label' => 'Auto-Cleanup Schedule',
48 - 'description' => 'How often to run cleanup automatically. Manual means cleanup only runs when you press the button.',
49 + 'label' => __( 'Auto-Cleanup Schedule', 'xspeed' ),
50 + 'description' => __( 'How often to run cleanup automatically. Manual means cleanup only runs when you press the button.', 'xspeed' ),
49 51 ),
50 52 'included_types' => array(
51 53 'type' => 'list',
52 54 'default' => array(),
53 55 'item_type' => 'string',
54 - 'label' => 'Auto-Cleanup Types',
55 - 'description' => 'Which cleanup categories run on the schedule above. Leave empty to keep auto-cleanup disabled even if a schedule is set.',
56 + 'label' => __( 'Auto-Cleanup Types', 'xspeed' ),
57 + 'description' => __( 'Which cleanup categories run on the schedule above. Leave empty to keep auto-cleanup disabled even if a schedule is set.', 'xspeed' ),
56 58 ),
57 59 );
58 60 }
59 61
@@ -87,8 +89,9 @@
87 89 array(
88 90 'name' => 'xspeed db',
89 91 'callback' => array( $this, 'cli_handler' ),
90 92 'shortdesc' => 'Scan or clean WordPress bloat. Use --types=a,b to clean specific categories.',
93 + 'ai_hint' => 'Find and remove database bloat (post revisions, spam comments, expired transients, orphaned metadata). Always `scan` first to see what would go; `clean` is destructive and requires confirmation.',
91 94 'synopsis' => array(
92 95 array(
93 96 'type' => 'positional',
94 97 'name' => 'action',