@mytechtoday/augment-extensions 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/augment-extensions/domain-rules/wordpress/README.md +163 -0
- package/augment-extensions/domain-rules/wordpress/module.json +32 -0
- package/augment-extensions/domain-rules/wordpress/rules/coding-standards.md +617 -0
- package/augment-extensions/domain-rules/wordpress/rules/directory-structure.md +270 -0
- package/augment-extensions/domain-rules/wordpress/rules/file-patterns.md +423 -0
- package/augment-extensions/domain-rules/wordpress/rules/gutenberg-blocks.md +493 -0
- package/augment-extensions/domain-rules/wordpress/rules/performance.md +568 -0
- package/augment-extensions/domain-rules/wordpress/rules/plugin-development.md +510 -0
- package/augment-extensions/domain-rules/wordpress/rules/project-detection.md +251 -0
- package/augment-extensions/domain-rules/wordpress/rules/rest-api.md +501 -0
- package/augment-extensions/domain-rules/wordpress/rules/security.md +564 -0
- package/augment-extensions/domain-rules/wordpress/rules/theme-development.md +388 -0
- package/augment-extensions/domain-rules/wordpress/rules/woocommerce.md +441 -0
- package/augment-extensions/domain-rules/wordpress-plugin/README.md +139 -0
- package/augment-extensions/domain-rules/wordpress-plugin/examples/ajax-plugin.md +1599 -0
- package/augment-extensions/domain-rules/wordpress-plugin/examples/custom-post-type-plugin.md +1727 -0
- package/augment-extensions/domain-rules/wordpress-plugin/examples/gutenberg-block-plugin.md +428 -0
- package/augment-extensions/domain-rules/wordpress-plugin/examples/gutenberg-block.md +422 -0
- package/augment-extensions/domain-rules/wordpress-plugin/examples/mvc-plugin.md +1623 -0
- package/augment-extensions/domain-rules/wordpress-plugin/examples/object-oriented-plugin.md +1343 -0
- package/augment-extensions/domain-rules/wordpress-plugin/examples/rest-endpoint.md +734 -0
- package/augment-extensions/domain-rules/wordpress-plugin/examples/settings-page-plugin.md +1350 -0
- package/augment-extensions/domain-rules/wordpress-plugin/examples/simple-procedural-plugin.md +503 -0
- package/augment-extensions/domain-rules/wordpress-plugin/examples/singleton-plugin.md +971 -0
- package/augment-extensions/domain-rules/wordpress-plugin/module.json +53 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/activation-hooks.md +770 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/admin-interface.md +874 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/ajax-handlers.md +629 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/asset-management.md +559 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/context-providers.md +709 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/cron-jobs.md +736 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/database-management.md +1057 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/documentation-standards.md +463 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/frontend-functionality.md +478 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/gutenberg-blocks.md +818 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/internationalization.md +416 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/migration.md +667 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/performance-optimization.md +878 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/plugin-architecture.md +693 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/plugin-structure.md +352 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/rest-api.md +818 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/scaffolding-workflow.md +624 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/security-best-practices.md +866 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/testing-patterns.md +1165 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/testing.md +414 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/vscode-integration.md +751 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/woocommerce-integration.md +949 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/wordpress-org-submission.md +458 -0
- package/augment-extensions/examples/gutenberg-block-plugin/README.md +101 -0
- package/augment-extensions/examples/gutenberg-block-plugin/examples/testimonial-block.md +428 -0
- package/augment-extensions/examples/gutenberg-block-plugin/module.json +40 -0
- package/augment-extensions/examples/rest-api-plugin/README.md +98 -0
- package/augment-extensions/examples/rest-api-plugin/examples/task-manager-api.md +1299 -0
- package/augment-extensions/examples/rest-api-plugin/module.json +40 -0
- package/augment-extensions/examples/woocommerce-extension/README.md +98 -0
- package/augment-extensions/examples/woocommerce-extension/examples/product-customizer.md +763 -0
- package/augment-extensions/examples/woocommerce-extension/module.json +40 -0
- package/augment-extensions/workflows/wordpress-plugin/README.md +232 -0
- package/augment-extensions/workflows/wordpress-plugin/ai-prompts.md +839 -0
- package/augment-extensions/workflows/wordpress-plugin/bead-decomposition-patterns.md +854 -0
- package/augment-extensions/workflows/wordpress-plugin/examples/complete-plugin-example.md +540 -0
- package/augment-extensions/workflows/wordpress-plugin/examples/custom-post-type-example.md +1083 -0
- package/augment-extensions/workflows/wordpress-plugin/examples/feature-addition-workflow.md +669 -0
- package/augment-extensions/workflows/wordpress-plugin/examples/plugin-creation-workflow.md +597 -0
- package/augment-extensions/workflows/wordpress-plugin/examples/secure-form-handler-example.md +925 -0
- package/augment-extensions/workflows/wordpress-plugin/examples/security-audit-workflow.md +752 -0
- package/augment-extensions/workflows/wordpress-plugin/examples/wordpress-org-submission-workflow.md +773 -0
- package/augment-extensions/workflows/wordpress-plugin/module.json +49 -0
- package/augment-extensions/workflows/wordpress-plugin/rules/best-practices.md +942 -0
- package/augment-extensions/workflows/wordpress-plugin/rules/development-workflow.md +702 -0
- package/augment-extensions/workflows/wordpress-plugin/rules/submission-workflow.md +728 -0
- package/augment-extensions/workflows/wordpress-plugin/rules/testing-workflow.md +775 -0
- package/cli/dist/cli.js +5 -1
- package/cli/dist/cli.js.map +1 -1
- package/cli/dist/commands/show.d.ts.map +1 -1
- package/cli/dist/commands/show.js +41 -0
- package/cli/dist/commands/show.js.map +1 -1
- package/modules.md +52 -0
- package/package.json +1 -1
|
@@ -0,0 +1,728 @@
|
|
|
1
|
+
# WordPress.org Plugin Submission Workflow
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
This workflow guides you through preparing and submitting a WordPress plugin to the WordPress.org Plugin Directory, including security audits, code standards compliance, and responding to review feedback.
|
|
6
|
+
|
|
7
|
+
## Prerequisites
|
|
8
|
+
|
|
9
|
+
- Completed WordPress plugin
|
|
10
|
+
- All features tested and working
|
|
11
|
+
- Documentation complete
|
|
12
|
+
- Domain rules: `domain-rules/wordpress-plugin/wordpress-org-submission.md`
|
|
13
|
+
|
|
14
|
+
## Workflow Steps
|
|
15
|
+
|
|
16
|
+
### 1. Pre-Submission Checklist
|
|
17
|
+
|
|
18
|
+
**Code Quality**:
|
|
19
|
+
- [ ] All code follows WordPress Coding Standards (WPCS)
|
|
20
|
+
- [ ] No PHP errors or warnings
|
|
21
|
+
- [ ] All functions are properly documented (PHPDoc)
|
|
22
|
+
- [ ] Code is well-organized and maintainable
|
|
23
|
+
- [ ] No debug code or console.log statements
|
|
24
|
+
|
|
25
|
+
**Security**:
|
|
26
|
+
- [ ] All user input is sanitized
|
|
27
|
+
- [ ] All output is escaped
|
|
28
|
+
- [ ] Nonces are used for all forms
|
|
29
|
+
- [ ] Capability checks are in place
|
|
30
|
+
- [ ] No SQL injection vulnerabilities
|
|
31
|
+
- [ ] No XSS vulnerabilities
|
|
32
|
+
- [ ] No CSRF vulnerabilities
|
|
33
|
+
- [ ] File upload restrictions (if applicable)
|
|
34
|
+
|
|
35
|
+
**Functionality**:
|
|
36
|
+
- [ ] All features work as expected
|
|
37
|
+
- [ ] No JavaScript errors in console
|
|
38
|
+
- [ ] Responsive design works on mobile
|
|
39
|
+
- [ ] Works with latest WordPress version
|
|
40
|
+
- [ ] Works with minimum supported WordPress version
|
|
41
|
+
- [ ] Compatible with common themes
|
|
42
|
+
- [ ] Compatible with common plugins
|
|
43
|
+
|
|
44
|
+
**Performance**:
|
|
45
|
+
- [ ] Database queries are optimized
|
|
46
|
+
- [ ] No N+1 query problems
|
|
47
|
+
- [ ] Caching implemented where appropriate
|
|
48
|
+
- [ ] Assets are minified and combined
|
|
49
|
+
- [ ] Lazy loading used where appropriate
|
|
50
|
+
|
|
51
|
+
**Accessibility**:
|
|
52
|
+
- [ ] Keyboard navigation works
|
|
53
|
+
- [ ] Screen reader compatible
|
|
54
|
+
- [ ] Color contrast meets WCAG standards
|
|
55
|
+
- [ ] Forms have proper labels
|
|
56
|
+
- [ ] Images have alt text
|
|
57
|
+
|
|
58
|
+
**Licensing**:
|
|
59
|
+
- [ ] Plugin is GPL-compatible
|
|
60
|
+
- [ ] All third-party libraries are GPL-compatible
|
|
61
|
+
- [ ] License file included
|
|
62
|
+
- [ ] Copyright notices in place
|
|
63
|
+
|
|
64
|
+
### 2. Security Audit Workflow
|
|
65
|
+
|
|
66
|
+
**Step 2.1: Automated Security Scan**
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
# Install security scanner
|
|
70
|
+
composer require --dev automattic/vipwpcs
|
|
71
|
+
|
|
72
|
+
# Run security scan
|
|
73
|
+
vendor/bin/phpcs --standard=WordPress-VIP-Go .
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
**Step 2.2: Manual Security Review**
|
|
77
|
+
|
|
78
|
+
Check for common vulnerabilities:
|
|
79
|
+
|
|
80
|
+
**Nonce Verification**:
|
|
81
|
+
```bash
|
|
82
|
+
# Search for forms without nonce verification
|
|
83
|
+
grep -r "wp_nonce_field" . --include="*.php"
|
|
84
|
+
grep -r "wp_verify_nonce" . --include="*.php"
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
**Capability Checks**:
|
|
88
|
+
```bash
|
|
89
|
+
# Search for capability checks
|
|
90
|
+
grep -r "current_user_can" . --include="*.php"
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
**Input Sanitization**:
|
|
94
|
+
```bash
|
|
95
|
+
# Search for $_POST, $_GET, $_REQUEST usage
|
|
96
|
+
grep -r "\$_POST\[" . --include="*.php"
|
|
97
|
+
grep -r "\$_GET\[" . --include="*.php"
|
|
98
|
+
grep -r "\$_REQUEST\[" . --include="*.php"
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
**Output Escaping**:
|
|
102
|
+
```bash
|
|
103
|
+
# Search for echo statements
|
|
104
|
+
grep -r "echo " . --include="*.php"
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
**Step 2.3: Security Audit Checklist**
|
|
108
|
+
|
|
109
|
+
- [ ] All forms have nonce verification
|
|
110
|
+
- [ ] All admin actions have capability checks
|
|
111
|
+
- [ ] All $_POST data is sanitized
|
|
112
|
+
- [ ] All $_GET data is sanitized
|
|
113
|
+
- [ ] All output is escaped
|
|
114
|
+
- [ ] No direct database queries (use $wpdb prepared statements)
|
|
115
|
+
- [ ] File uploads are restricted and validated
|
|
116
|
+
- [ ] No eval() or exec() usage
|
|
117
|
+
- [ ] No unserialize() on user input
|
|
118
|
+
- [ ] No file_get_contents() on user input
|
|
119
|
+
|
|
120
|
+
### 3. Code Standards Check (WPCS)
|
|
121
|
+
|
|
122
|
+
**Step 3.1: Install WordPress Coding Standards**
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
# Install WPCS
|
|
126
|
+
composer require --dev wp-coding-standards/wpcs
|
|
127
|
+
|
|
128
|
+
# Configure PHPCS
|
|
129
|
+
vendor/bin/phpcs --config-set installed_paths vendor/wp-coding-standards/wpcs
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
**Step 3.2: Run WPCS Check**
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
# Run WPCS check
|
|
136
|
+
vendor/bin/phpcs --standard=WordPress .
|
|
137
|
+
|
|
138
|
+
# Run with specific rules
|
|
139
|
+
vendor/bin/phpcs --standard=WordPress-Core .
|
|
140
|
+
vendor/bin/phpcs --standard=WordPress-Docs .
|
|
141
|
+
vendor/bin/phpcs --standard=WordPress-Extra .
|
|
142
|
+
|
|
143
|
+
# Generate report
|
|
144
|
+
vendor/bin/phpcs --standard=WordPress --report=summary .
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
**Step 3.3: Fix WPCS Issues**
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
# Auto-fix issues
|
|
151
|
+
vendor/bin/phpcbf --standard=WordPress .
|
|
152
|
+
|
|
153
|
+
# Check specific file
|
|
154
|
+
vendor/bin/phpcs --standard=WordPress path/to/file.php
|
|
155
|
+
|
|
156
|
+
# Ignore specific rules (if necessary)
|
|
157
|
+
vendor/bin/phpcs --standard=WordPress --exclude=WordPress.Files.FileName .
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
**Step 3.4: WPCS Compliance Checklist**
|
|
161
|
+
|
|
162
|
+
- [ ] Indentation is correct (tabs, not spaces)
|
|
163
|
+
- [ ] Braces are on correct lines
|
|
164
|
+
- [ ] Function names are lowercase with underscores
|
|
165
|
+
- [ ] Class names are capitalized with underscores
|
|
166
|
+
- [ ] Variable names are lowercase with underscores
|
|
167
|
+
- [ ] No trailing whitespace
|
|
168
|
+
- [ ] Files end with newline
|
|
169
|
+
- [ ] No PHP short tags
|
|
170
|
+
- [ ] Proper spacing around operators
|
|
171
|
+
- [ ] Proper PHPDoc comments
|
|
172
|
+
|
|
173
|
+
### 4. Create/Update readme.txt
|
|
174
|
+
|
|
175
|
+
**Step 4.1: readme.txt Template**
|
|
176
|
+
|
|
177
|
+
```
|
|
178
|
+
=== Plugin Name ===
|
|
179
|
+
Contributors: yourusername
|
|
180
|
+
Donate link: https://example.com/donate
|
|
181
|
+
Tags: tag1, tag2, tag3
|
|
182
|
+
Requires at least: 6.0
|
|
183
|
+
Tested up to: 6.4
|
|
184
|
+
Requires PHP: 7.4
|
|
185
|
+
Stable tag: 1.0.0
|
|
186
|
+
License: GPLv2 or later
|
|
187
|
+
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
|
188
|
+
|
|
189
|
+
Short description of your plugin (max 150 characters).
|
|
190
|
+
|
|
191
|
+
== Description ==
|
|
192
|
+
|
|
193
|
+
Detailed description of your plugin.
|
|
194
|
+
|
|
195
|
+
**Features:**
|
|
196
|
+
|
|
197
|
+
* Feature 1
|
|
198
|
+
* Feature 2
|
|
199
|
+
* Feature 3
|
|
200
|
+
|
|
201
|
+
**Use Cases:**
|
|
202
|
+
|
|
203
|
+
* Use case 1
|
|
204
|
+
* Use case 2
|
|
205
|
+
|
|
206
|
+
== Installation ==
|
|
207
|
+
|
|
208
|
+
1. Upload the plugin files to `/wp-content/plugins/plugin-name` directory, or install through WordPress plugins screen.
|
|
209
|
+
2. Activate the plugin through 'Plugins' screen in WordPress.
|
|
210
|
+
3. Use Settings -> Plugin Name to configure the plugin.
|
|
211
|
+
|
|
212
|
+
== Frequently Asked Questions ==
|
|
213
|
+
|
|
214
|
+
= Question 1? =
|
|
215
|
+
|
|
216
|
+
Answer 1.
|
|
217
|
+
|
|
218
|
+
= Question 2? =
|
|
219
|
+
|
|
220
|
+
Answer 2.
|
|
221
|
+
|
|
222
|
+
== Screenshots ==
|
|
223
|
+
|
|
224
|
+
1. Screenshot 1 description
|
|
225
|
+
2. Screenshot 2 description
|
|
226
|
+
|
|
227
|
+
== Changelog ==
|
|
228
|
+
|
|
229
|
+
= 1.0.0 =
|
|
230
|
+
* Initial release
|
|
231
|
+
|
|
232
|
+
== Upgrade Notice ==
|
|
233
|
+
|
|
234
|
+
= 1.0.0 =
|
|
235
|
+
Initial release.
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
**Step 4.2: Validate readme.txt**
|
|
239
|
+
|
|
240
|
+
```bash
|
|
241
|
+
# Use WordPress.org readme validator
|
|
242
|
+
# Visit: https://wordpress.org/plugins/developers/readme-validator/
|
|
243
|
+
|
|
244
|
+
# Or use WP-CLI
|
|
245
|
+
wp plugin readme validate readme.txt
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
**Step 4.3: readme.txt Best Practices**
|
|
249
|
+
|
|
250
|
+
- [ ] Short description is under 150 characters
|
|
251
|
+
- [ ] Tags are relevant (max 12 tags)
|
|
252
|
+
- [ ] "Requires at least" is accurate
|
|
253
|
+
- [ ] "Tested up to" is latest WordPress version
|
|
254
|
+
- [ ] "Requires PHP" is accurate
|
|
255
|
+
- [ ] "Stable tag" matches plugin version
|
|
256
|
+
- [ ] Description is clear and comprehensive
|
|
257
|
+
- [ ] Installation instructions are complete
|
|
258
|
+
- [ ] FAQ section addresses common questions
|
|
259
|
+
- [ ] Changelog is up to date
|
|
260
|
+
- [ ] Screenshots are described
|
|
261
|
+
|
|
262
|
+
### 5. Prepare Screenshots
|
|
263
|
+
|
|
264
|
+
**Step 5.1: Take Screenshots**
|
|
265
|
+
|
|
266
|
+
Requirements:
|
|
267
|
+
- PNG or JPG format
|
|
268
|
+
- Minimum width: 772px
|
|
269
|
+
- Maximum width: 1600px (recommended)
|
|
270
|
+
- Aspect ratio: 4:3 or 16:9
|
|
271
|
+
- Clear and high quality
|
|
272
|
+
- Show actual plugin functionality
|
|
273
|
+
|
|
274
|
+
**Step 5.2: Name Screenshots**
|
|
275
|
+
|
|
276
|
+
```
|
|
277
|
+
screenshot-1.png # Corresponds to "1. Description" in readme.txt
|
|
278
|
+
screenshot-2.png # Corresponds to "2. Description" in readme.txt
|
|
279
|
+
screenshot-3.png # Corresponds to "3. Description" in readme.txt
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
**Step 5.3: Optimize Screenshots**
|
|
283
|
+
|
|
284
|
+
```bash
|
|
285
|
+
# Install image optimization tool
|
|
286
|
+
npm install -g imagemin-cli
|
|
287
|
+
|
|
288
|
+
# Optimize screenshots
|
|
289
|
+
imagemin screenshot-*.png --out-dir=assets/
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
**Step 5.4: Screenshot Checklist**
|
|
293
|
+
|
|
294
|
+
- [ ] Screenshots show key features
|
|
295
|
+
- [ ] Screenshots are high quality
|
|
296
|
+
- [ ] Screenshots are properly sized
|
|
297
|
+
- [ ] Screenshots are optimized
|
|
298
|
+
- [ ] Screenshot descriptions are in readme.txt
|
|
299
|
+
- [ ] Screenshots are numbered correctly
|
|
300
|
+
|
|
301
|
+
### 6. Test in Clean WordPress Install
|
|
302
|
+
|
|
303
|
+
**Step 6.1: Set Up Clean Test Environment**
|
|
304
|
+
|
|
305
|
+
```bash
|
|
306
|
+
# Using Local by Flywheel, XAMPP, or similar
|
|
307
|
+
# Or use WP-CLI
|
|
308
|
+
|
|
309
|
+
wp core download
|
|
310
|
+
wp config create --dbname=test_db --dbuser=root --dbpass=root
|
|
311
|
+
wp core install --url=http://localhost/test --title="Test Site" --admin_user=admin --admin_password=admin --admin_email=admin@example.com
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
**Step 6.2: Install Plugin**
|
|
315
|
+
|
|
316
|
+
```bash
|
|
317
|
+
# Copy plugin to wp-content/plugins/
|
|
318
|
+
cp -r /path/to/plugin wp-content/plugins/
|
|
319
|
+
|
|
320
|
+
# Or use WP-CLI
|
|
321
|
+
wp plugin install /path/to/plugin.zip --activate
|
|
322
|
+
```
|
|
323
|
+
|
|
324
|
+
**Step 6.3: Clean Install Testing Checklist**
|
|
325
|
+
|
|
326
|
+
- [ ] Plugin activates without errors
|
|
327
|
+
- [ ] Plugin deactivates without errors
|
|
328
|
+
- [ ] Plugin uninstalls cleanly (removes data)
|
|
329
|
+
- [ ] No PHP errors or warnings
|
|
330
|
+
- [ ] No JavaScript errors in console
|
|
331
|
+
- [ ] Admin interface works correctly
|
|
332
|
+
- [ ] Frontend display works correctly
|
|
333
|
+
- [ ] Settings save correctly
|
|
334
|
+
- [ ] Database tables created correctly (if applicable)
|
|
335
|
+
- [ ] Cron jobs scheduled correctly (if applicable)
|
|
336
|
+
|
|
337
|
+
**Step 6.4: Test with Different Themes**
|
|
338
|
+
|
|
339
|
+
```bash
|
|
340
|
+
# Test with default WordPress themes
|
|
341
|
+
wp theme install twentytwentyfour --activate
|
|
342
|
+
wp theme install twentytwentythree --activate
|
|
343
|
+
wp theme install twentytwentytwo --activate
|
|
344
|
+
```
|
|
345
|
+
|
|
346
|
+
- [ ] Works with Twenty Twenty-Four
|
|
347
|
+
- [ ] Works with Twenty Twenty-Three
|
|
348
|
+
- [ ] Works with Twenty Twenty-Two
|
|
349
|
+
- [ ] Works with popular themes (Astra, GeneratePress, etc.)
|
|
350
|
+
|
|
351
|
+
**Step 6.5: Test with Different PHP Versions**
|
|
352
|
+
|
|
353
|
+
- [ ] Works with PHP 7.4
|
|
354
|
+
- [ ] Works with PHP 8.0
|
|
355
|
+
- [ ] Works with PHP 8.1
|
|
356
|
+
- [ ] Works with PHP 8.2
|
|
357
|
+
|
|
358
|
+
**Step 6.6: Test with Different WordPress Versions**
|
|
359
|
+
|
|
360
|
+
- [ ] Works with minimum supported version
|
|
361
|
+
- [ ] Works with latest stable version
|
|
362
|
+
- [ ] Works with latest beta version (if available)
|
|
363
|
+
|
|
364
|
+
### 7. Submit to WordPress.org
|
|
365
|
+
|
|
366
|
+
**Step 7.1: Create WordPress.org Account**
|
|
367
|
+
|
|
368
|
+
1. Visit https://wordpress.org/support/register.php
|
|
369
|
+
2. Create account with valid email
|
|
370
|
+
3. Verify email address
|
|
371
|
+
|
|
372
|
+
**Step 7.2: Submit Plugin**
|
|
373
|
+
|
|
374
|
+
1. Visit https://wordpress.org/plugins/developers/add/
|
|
375
|
+
2. Upload plugin ZIP file
|
|
376
|
+
3. Fill out submission form:
|
|
377
|
+
- Plugin name
|
|
378
|
+
- Plugin slug (unique, lowercase, hyphens)
|
|
379
|
+
- Plugin description
|
|
380
|
+
- Plugin URL (if applicable)
|
|
381
|
+
4. Agree to guidelines
|
|
382
|
+
5. Submit for review
|
|
383
|
+
|
|
384
|
+
**Step 7.3: Submission Checklist**
|
|
385
|
+
|
|
386
|
+
- [ ] Plugin ZIP file created
|
|
387
|
+
- [ ] ZIP file contains only plugin files (no .git, node_modules, etc.)
|
|
388
|
+
- [ ] Plugin slug is unique
|
|
389
|
+
- [ ] Plugin name is unique
|
|
390
|
+
- [ ] All required fields filled out
|
|
391
|
+
- [ ] Guidelines acknowledged
|
|
392
|
+
|
|
393
|
+
**Step 7.4: Create Plugin ZIP**
|
|
394
|
+
|
|
395
|
+
```bash
|
|
396
|
+
# Navigate to plugin directory
|
|
397
|
+
cd wp-content/plugins/your-plugin
|
|
398
|
+
|
|
399
|
+
# Create ZIP (exclude unnecessary files)
|
|
400
|
+
zip -r ../your-plugin.zip . -x "*.git*" "node_modules/*" "tests/*" "*.md" "composer.json" "composer.lock" "package.json" "package-lock.json"
|
|
401
|
+
|
|
402
|
+
# Or use build script
|
|
403
|
+
npm run build # If you have a build process
|
|
404
|
+
```
|
|
405
|
+
|
|
406
|
+
### 8. Respond to Review Feedback
|
|
407
|
+
|
|
408
|
+
**Step 8.1: Review Timeline**
|
|
409
|
+
|
|
410
|
+
- Initial review: 1-14 days (typically 3-7 days)
|
|
411
|
+
- Follow-up reviews: 1-7 days
|
|
412
|
+
- Total time: 1-4 weeks (varies)
|
|
413
|
+
|
|
414
|
+
**Step 8.2: Common Review Feedback**
|
|
415
|
+
|
|
416
|
+
**Security Issues**:
|
|
417
|
+
- Missing nonce verification
|
|
418
|
+
- Missing capability checks
|
|
419
|
+
- Unsanitized input
|
|
420
|
+
- Unescaped output
|
|
421
|
+
- SQL injection vulnerabilities
|
|
422
|
+
|
|
423
|
+
**Code Quality Issues**:
|
|
424
|
+
- Not following WordPress Coding Standards
|
|
425
|
+
- Missing text domain
|
|
426
|
+
- Hardcoded URLs
|
|
427
|
+
- Direct file access not prevented
|
|
428
|
+
- Missing license information
|
|
429
|
+
|
|
430
|
+
**Functionality Issues**:
|
|
431
|
+
- Plugin doesn't work as described
|
|
432
|
+
- Errors on activation
|
|
433
|
+
- Conflicts with other plugins
|
|
434
|
+
- Performance issues
|
|
435
|
+
|
|
436
|
+
**Documentation Issues**:
|
|
437
|
+
- Incomplete readme.txt
|
|
438
|
+
- Missing installation instructions
|
|
439
|
+
- Missing FAQ section
|
|
440
|
+
- Missing changelog
|
|
441
|
+
|
|
442
|
+
**Step 8.3: Responding to Feedback**
|
|
443
|
+
|
|
444
|
+
1. **Read feedback carefully**
|
|
445
|
+
2. **Fix all issues mentioned**
|
|
446
|
+
3. **Test fixes thoroughly**
|
|
447
|
+
4. **Reply to review thread** with:
|
|
448
|
+
- Acknowledgment of issues
|
|
449
|
+
- Description of fixes made
|
|
450
|
+
- Confirmation that all issues are resolved
|
|
451
|
+
5. **Wait for follow-up review**
|
|
452
|
+
|
|
453
|
+
**Example Response**:
|
|
454
|
+
|
|
455
|
+
```
|
|
456
|
+
Thank you for the review!
|
|
457
|
+
|
|
458
|
+
I've addressed all the issues mentioned:
|
|
459
|
+
|
|
460
|
+
1. Added nonce verification to all forms (lines 45, 67, 89)
|
|
461
|
+
2. Added capability checks to admin actions (lines 123, 145)
|
|
462
|
+
3. Sanitized all $_POST data using sanitize_text_field() (lines 50, 72)
|
|
463
|
+
4. Escaped all output using esc_html() and esc_attr() (lines 200-250)
|
|
464
|
+
5. Updated readme.txt with complete installation instructions
|
|
465
|
+
6. Added text domain to all translatable strings
|
|
466
|
+
|
|
467
|
+
All changes have been tested in a clean WordPress install with no errors.
|
|
468
|
+
|
|
469
|
+
Please let me know if there are any other issues to address.
|
|
470
|
+
```
|
|
471
|
+
|
|
472
|
+
**Step 8.4: Resubmit Plugin**
|
|
473
|
+
|
|
474
|
+
1. Make all requested changes
|
|
475
|
+
2. Test thoroughly
|
|
476
|
+
3. Update version number (if requested)
|
|
477
|
+
4. Create new ZIP file
|
|
478
|
+
5. Reply to review thread (don't create new submission)
|
|
479
|
+
6. Wait for follow-up review
|
|
480
|
+
|
|
481
|
+
### 9. Post-Approval Workflow
|
|
482
|
+
|
|
483
|
+
**Step 9.1: Set Up SVN Repository**
|
|
484
|
+
|
|
485
|
+
```bash
|
|
486
|
+
# Checkout SVN repository
|
|
487
|
+
svn co https://plugins.svn.wordpress.org/your-plugin-slug
|
|
488
|
+
|
|
489
|
+
# Navigate to repository
|
|
490
|
+
cd your-plugin-slug
|
|
491
|
+
```
|
|
492
|
+
|
|
493
|
+
**Step 9.2: Add Plugin Files**
|
|
494
|
+
|
|
495
|
+
```bash
|
|
496
|
+
# Copy files to trunk
|
|
497
|
+
cp -r /path/to/plugin/* trunk/
|
|
498
|
+
|
|
499
|
+
# Add files to SVN
|
|
500
|
+
svn add trunk/*
|
|
501
|
+
|
|
502
|
+
# Commit to trunk
|
|
503
|
+
svn ci -m "Initial commit"
|
|
504
|
+
```
|
|
505
|
+
|
|
506
|
+
**Step 9.3: Create Tag for Release**
|
|
507
|
+
|
|
508
|
+
```bash
|
|
509
|
+
# Copy trunk to tags/1.0.0
|
|
510
|
+
svn cp trunk tags/1.0.0
|
|
511
|
+
|
|
512
|
+
# Commit tag
|
|
513
|
+
svn ci -m "Tagging version 1.0.0"
|
|
514
|
+
```
|
|
515
|
+
|
|
516
|
+
**Step 9.4: Add Assets**
|
|
517
|
+
|
|
518
|
+
```bash
|
|
519
|
+
# Create assets directory (if not exists)
|
|
520
|
+
mkdir -p assets
|
|
521
|
+
|
|
522
|
+
# Copy screenshots and banner
|
|
523
|
+
cp screenshot-*.png assets/
|
|
524
|
+
cp banner-772x250.png assets/
|
|
525
|
+
cp banner-1544x500.png assets/
|
|
526
|
+
cp icon-128x128.png assets/
|
|
527
|
+
cp icon-256x256.png assets/
|
|
528
|
+
|
|
529
|
+
# Add assets to SVN
|
|
530
|
+
svn add assets/*
|
|
531
|
+
|
|
532
|
+
# Commit assets
|
|
533
|
+
svn ci -m "Add plugin assets"
|
|
534
|
+
```
|
|
535
|
+
|
|
536
|
+
**Step 9.5: Post-Approval Checklist**
|
|
537
|
+
|
|
538
|
+
- [ ] SVN repository set up
|
|
539
|
+
- [ ] Plugin files committed to trunk
|
|
540
|
+
- [ ] Version tag created
|
|
541
|
+
- [ ] Screenshots added to assets
|
|
542
|
+
- [ ] Banner images added (optional)
|
|
543
|
+
- [ ] Icon images added (optional)
|
|
544
|
+
- [ ] Plugin appears on WordPress.org
|
|
545
|
+
|
|
546
|
+
### 10. Update Workflow (Future Releases)
|
|
547
|
+
|
|
548
|
+
**Step 10.1: Prepare Update**
|
|
549
|
+
|
|
550
|
+
1. Make changes to plugin
|
|
551
|
+
2. Update version number in plugin header
|
|
552
|
+
3. Update version in readme.txt
|
|
553
|
+
4. Update changelog in readme.txt
|
|
554
|
+
5. Test thoroughly
|
|
555
|
+
|
|
556
|
+
**Step 10.2: Commit to SVN**
|
|
557
|
+
|
|
558
|
+
```bash
|
|
559
|
+
# Update trunk
|
|
560
|
+
svn up
|
|
561
|
+
|
|
562
|
+
# Copy new files to trunk
|
|
563
|
+
cp -r /path/to/plugin/* trunk/
|
|
564
|
+
|
|
565
|
+
# Check status
|
|
566
|
+
svn status
|
|
567
|
+
|
|
568
|
+
# Add new files (if any)
|
|
569
|
+
svn add trunk/new-file.php
|
|
570
|
+
|
|
571
|
+
# Commit changes
|
|
572
|
+
svn ci -m "Update to version 1.1.0"
|
|
573
|
+
|
|
574
|
+
# Create new tag
|
|
575
|
+
svn cp trunk tags/1.1.0
|
|
576
|
+
svn ci -m "Tagging version 1.1.0"
|
|
577
|
+
```
|
|
578
|
+
|
|
579
|
+
**Step 10.3: Update Checklist**
|
|
580
|
+
|
|
581
|
+
- [ ] Version number updated in plugin header
|
|
582
|
+
- [ ] Version number updated in readme.txt
|
|
583
|
+
- [ ] Changelog updated in readme.txt
|
|
584
|
+
- [ ] All changes tested
|
|
585
|
+
- [ ] Changes committed to trunk
|
|
586
|
+
- [ ] New tag created
|
|
587
|
+
- [ ] Update appears on WordPress.org
|
|
588
|
+
|
|
589
|
+
## AI Prompt Templates
|
|
590
|
+
|
|
591
|
+
### Security Audit Prompt
|
|
592
|
+
|
|
593
|
+
```
|
|
594
|
+
Perform a comprehensive security audit on [plugin name].
|
|
595
|
+
|
|
596
|
+
Check for:
|
|
597
|
+
- Missing nonce verification in forms
|
|
598
|
+
- Missing capability checks in admin actions
|
|
599
|
+
- Unsanitized input ($_POST, $_GET, $_REQUEST)
|
|
600
|
+
- Unescaped output (echo, print)
|
|
601
|
+
- SQL injection vulnerabilities
|
|
602
|
+
- XSS vulnerabilities
|
|
603
|
+
- CSRF vulnerabilities
|
|
604
|
+
- File upload vulnerabilities
|
|
605
|
+
|
|
606
|
+
Provide a report with:
|
|
607
|
+
- List of vulnerabilities found
|
|
608
|
+
- Severity rating (Critical, High, Medium, Low)
|
|
609
|
+
- Line numbers where issues occur
|
|
610
|
+
- Recommended fixes with code examples
|
|
611
|
+
```
|
|
612
|
+
|
|
613
|
+
### WPCS Compliance Prompt
|
|
614
|
+
|
|
615
|
+
```
|
|
616
|
+
Check [plugin name] for WordPress Coding Standards compliance.
|
|
617
|
+
|
|
618
|
+
Run PHPCS with WordPress standards and fix all issues:
|
|
619
|
+
- Indentation (tabs, not spaces)
|
|
620
|
+
- Braces placement
|
|
621
|
+
- Function naming (lowercase with underscores)
|
|
622
|
+
- Class naming (capitalized with underscores)
|
|
623
|
+
- Variable naming (lowercase with underscores)
|
|
624
|
+
- Spacing around operators
|
|
625
|
+
- PHPDoc comments
|
|
626
|
+
- File structure
|
|
627
|
+
|
|
628
|
+
Auto-fix where possible using PHPCBF.
|
|
629
|
+
Provide a summary of changes made.
|
|
630
|
+
```
|
|
631
|
+
|
|
632
|
+
### readme.txt Creation Prompt
|
|
633
|
+
|
|
634
|
+
```
|
|
635
|
+
Create a comprehensive readme.txt for [plugin name].
|
|
636
|
+
|
|
637
|
+
Include:
|
|
638
|
+
- Short description (max 150 characters)
|
|
639
|
+
- Detailed description with features and use cases
|
|
640
|
+
- Installation instructions
|
|
641
|
+
- FAQ section with common questions
|
|
642
|
+
- Screenshots section with descriptions
|
|
643
|
+
- Changelog with version history
|
|
644
|
+
- Upgrade notices
|
|
645
|
+
|
|
646
|
+
Follow WordPress.org readme.txt format.
|
|
647
|
+
Validate using WordPress.org readme validator.
|
|
648
|
+
```
|
|
649
|
+
|
|
650
|
+
## Best Practices
|
|
651
|
+
|
|
652
|
+
### DO
|
|
653
|
+
|
|
654
|
+
✅ Run security audit before submission
|
|
655
|
+
✅ Follow WordPress Coding Standards
|
|
656
|
+
✅ Test in clean WordPress install
|
|
657
|
+
✅ Test with different themes and plugins
|
|
658
|
+
✅ Respond promptly to review feedback
|
|
659
|
+
✅ Keep readme.txt up to date
|
|
660
|
+
✅ Use semantic versioning
|
|
661
|
+
✅ Maintain changelog
|
|
662
|
+
✅ Test updates before releasing
|
|
663
|
+
✅ Monitor support forums after release
|
|
664
|
+
|
|
665
|
+
### DON'T
|
|
666
|
+
|
|
667
|
+
❌ Submit without security audit
|
|
668
|
+
❌ Ignore coding standards
|
|
669
|
+
❌ Skip testing in clean install
|
|
670
|
+
❌ Argue with reviewers
|
|
671
|
+
❌ Resubmit without fixing issues
|
|
672
|
+
❌ Use misleading plugin name or description
|
|
673
|
+
❌ Include premium features in free version
|
|
674
|
+
❌ Phone home without user consent
|
|
675
|
+
❌ Include affiliate links in plugin
|
|
676
|
+
❌ Violate WordPress.org guidelines
|
|
677
|
+
|
|
678
|
+
## Common Rejection Reasons
|
|
679
|
+
|
|
680
|
+
1. **Security Issues**
|
|
681
|
+
- Missing nonce verification
|
|
682
|
+
- Missing capability checks
|
|
683
|
+
- Unsanitized input
|
|
684
|
+
- Unescaped output
|
|
685
|
+
|
|
686
|
+
2. **Code Quality Issues**
|
|
687
|
+
- Not following WordPress Coding Standards
|
|
688
|
+
- Missing text domain
|
|
689
|
+
- Hardcoded URLs
|
|
690
|
+
- Direct file access not prevented
|
|
691
|
+
|
|
692
|
+
3. **Guideline Violations**
|
|
693
|
+
- Trademark violations
|
|
694
|
+
- Including premium features
|
|
695
|
+
- Phone home without consent
|
|
696
|
+
- Obfuscated code
|
|
697
|
+
|
|
698
|
+
4. **Functionality Issues**
|
|
699
|
+
- Plugin doesn't work as described
|
|
700
|
+
- Errors on activation
|
|
701
|
+
- Conflicts with WordPress core
|
|
702
|
+
|
|
703
|
+
## Timeline Expectations
|
|
704
|
+
|
|
705
|
+
- **Submission to initial review**: 1-14 days (typically 3-7 days)
|
|
706
|
+
- **Follow-up reviews**: 1-7 days
|
|
707
|
+
- **Total approval time**: 1-4 weeks (varies)
|
|
708
|
+
- **After approval**: Plugin appears immediately on WordPress.org
|
|
709
|
+
|
|
710
|
+
## Resources
|
|
711
|
+
|
|
712
|
+
- [WordPress Plugin Guidelines](https://developer.wordpress.org/plugins/wordpress-org/detailed-plugin-guidelines/)
|
|
713
|
+
- [WordPress Plugin Handbook](https://developer.wordpress.org/plugins/)
|
|
714
|
+
- [WordPress Coding Standards](https://developer.wordpress.org/coding-standards/wordpress-coding-standards/)
|
|
715
|
+
- [readme.txt Validator](https://wordpress.org/plugins/developers/readme-validator/)
|
|
716
|
+
- [Plugin SVN Guide](https://developer.wordpress.org/plugins/wordpress-org/how-to-use-subversion/)
|
|
717
|
+
|
|
718
|
+
## Related Workflows
|
|
719
|
+
|
|
720
|
+
- `development-workflow.md` - Feature development cycle
|
|
721
|
+
- `testing-workflow.md` - Testing setup and execution
|
|
722
|
+
- `scaffolding-workflow.md` - Creating new plugins
|
|
723
|
+
|
|
724
|
+
## Related Domain Rules
|
|
725
|
+
|
|
726
|
+
- `domain-rules/wordpress-plugin/wordpress-org-submission.md` - Detailed submission requirements
|
|
727
|
+
- `domain-rules/wordpress-plugin/security-best-practices.md` - Security guidelines
|
|
728
|
+
|