Skill站外收录 @skilllib/skill-2117939930272415214
wordpress-org-compliance
确保插件在 WordPress.org 上符合免费发布规范,所有功能无需付费即可完整使用,禁止试用限制或功能锁定。通过非侵入式推广引导用户升级,采用独立扩展形式提供高级功能,避免因违规导致下架风险。 Free users must experience full functionality without artificial barriers.
软件开发 AI 技能
Skills.MD
# WordPress.org Plugin Compliance Guidelines
Ensures WordPress.org compliance for plugin directory guidelines, particularly around free vs premium code and upselling practices.
## When to Use This Skill
**Trigger scenarios:**
- Adding new features that might have premium versions
- Implementing upselling or upgrade prompts
- Creating "teasers" for premium features
- Reviewing code for WordPress.org compliance
- Preparing plugin updates for WordPress.org submission
- Adding license key validation or premium checks
## Core Rule: No Locked Code
**WordPress.org Golden Rule**: No premium/locked code in wp.org plugins. All hosted code must be free and fully functional.
This means:
- Every feature in the free plugin must work completely without a license key
- No "trial periods" or usage limits
- No features that require payment to unlock
- No functionality restricted behind a paywall
## Quick Reference
### ❌ NOT Allowed
- Trial periods or time limits
- Usage quotas or artificial limits
- License keys for local features
- Disabled features requiring payment
- Crippled functionality in free version
- Intrusive nag screens
### ✅ Allowed
- Informational upselling (non-intrusive)
- Separate premium plugin from your site
- Feature detection (not restriction)
- External SaaS integrations
- Comparison tables
- Premium feature teasers
- Disabled form teasers for premium-only features (high conversion)
## Key Patterns
### ❌ Wrong: Feature Restriction
```php
// Blocks functionality without license
if ( ! $this->is_premium() ) {
echo 'Premium required';
return;
}
```
### ✅ Correct: Feature Detection
```php
// Free version works fully
$this->show_basic_export();
// Premium can enhance
if ( $this->has_premium_addon() ) {
do_action( 'sh_premium_export_options' );
}
```
### ❌ Wrong: Artificial Limits
```php
// Artificially limits free version
$limit = $this->is_premium() ? 10000 : 100;
```
### ✅ Correct: No Artificial Limits
```php
// Free version has reasonable limit
$limit = 10000;
// Premium can extend
$limit = apply_filters( 'sh_event_limit', $limit );
```
## Recommended Freemium Model
### Free Plugin (WordPress.org)
- Core functionality fully working
- Basic features complete
- All UI features accessible
- No artificial limitations
### Premium Plugin (Your Site)
- Extended features (not unlocked basics)
- Premium integrations
- Advanced functionality
- Priority support
### Installation Options
**Add-on Style** (Recommended):
- Free: Standalone and functional
- Premium: Installs alongside, extends free
- Both active together
**Replacement Style**:
- Free: Standalone and functional
- Premium: Replaces free with more features
- User deactivates free when installing premium
## Upselling Best Practices
### ✅ Good Upselling
```php
// Subtle, informational
function render_premium_note() {
?>
<p class="sh-premium-note">
<small>
💡 Premium: Export to JSON, XML, or PDF formats.
<a href="https://example.com/premium/">Learn more</a>
</small>
</p>
<?php
}
```
### ✅ High-Converting: Disabled Form Pattern
For premium-only features, show a disabled form that previews the UI:
```php
// Shows what premium feature looks like (greyed out, non-functional)
// CTA box remains clickable - converts 3-4x better than info box
<div class="sh-PremiumTeaser-disabledForm" style="opacity: 0.6; pointer-events: none;">
<table class="form-table">
<tr><th>Setting</th><td><select disabled>...</select></td></tr>
</table>
<div style="pointer-events: auto; opacity: 1;">
<?php echo Helpers::get_premium_feature_teaser(...); ?>
</div>
</div>
```
See [examples.md](examples.md) for full implementation details.
### ❌ Bad Upselling
```php
// Blocks functionality
if ( ! $this->is_premium() ) {
echo '<div class="error">Upgrade required!</div>';
return;
}
```
## Compliance Checklist
Before submitting updates to WordPress.org:
- [ ] All features work without license key
- [ ] No trial periods or time limits
- [ ] No usage quotas or restrictions
- [ ] No features disabled for free users
- [ ] Upselling is informational, not obstructive
- [ ] Premium features are separate addon
- [ ] No "locked" UI elements
- [ ] Free version provides real value
## Code Review Questions
For each feature, ask yourself:
1. **Does it work completely without premium?**
2. **Am I checking for a license key to enable functionality?**
3. **Would a free user be frustrated by this?**
4. **Is the upselling helpful or annoying?**
5. **Does the free version provide real value?**
## Common Violations
### Violation 1: Nag Screens
❌ Don't show constant popups asking users to upgrade
### Violation 2: Crippled Features
❌ Don't make features "work badly" in free to force upgrades
### Violation 3: Expired Trials
❌ Don't stop working after X days
### Violation 4: Usage Limits
❌ Don't impose artificial quotas
### Violation 5: License Validation for Local Features
❌ Don't require license key for features that run locally
## Detailed Information
For comprehensive examples and testing procedures:
- See [examples.md](examples.md) for detailed code examples of allowed and forbidden patterns
- See [testing.md](testing.md) for complete testing procedures, code review checklists, and pre-submission verification
## Resources
- **Official Guidelines**: https://developer.wordpress.org/plugins/wordpress-org/detailed-plugin-guidelines/#5-trialware-is-not-permitted
- **WordPress.org Plugin Directory**: https://wordpress.org/plugins/
- **Plugin Review Team**: For questions about compliance
## Summary
**The Simple Rule**: If it's in the WordPress.org version, it must work completely without payment.
**The Philosophy**: Win users over with quality, not restrictions. Make them **want** premium, not **need** it.
**The Test**: Would you be happy using the free version? If not, you're doing freemium wrong.
评论 0
还没有评论,来抢沙发。
相关内容
同类或同场景的收录内容
building-with-kafka-strimzi
在 Kubernetes 上构建基于 Apache Kafka 的事件驱动系统,支持高可靠的消息传递、事务性处理与精确一次语义,结合 Strimzi 运营商实现集群自动化管理,利用 Schema Registry 保障事件模式演进,适用于微服务间解耦通信与实时数据流处理场景。
站外数据与分析
609 0.0
personal-tool-builder
专注于从个人真实痛点出发快速构建实用工具,涵盖命令行程序、本地优先应用和自动化脚本的开发与演进,强调先满足自身需求再逐步扩展,通过持续自用打磨功能,避免过度设计,确保工具简洁有效且长期可维护。
站外商业与营销
196 0.0
threejs-lighting
实现三维场景中的光照与阴影控制,支持多种光源类型及环境光照明,提供从基础布光到高级阴影优化的完整方案,适用于需要真实感渲染或性能平衡的可视化项目。
站外效率工具
442 0.0
aggregation-helper
提供数据聚合场景的自动化辅助能力,涵盖 SQL 查询编写、统计分析建模、可视化方案设计及商业智能配置,支持从需求理解到生产级代码生成的全流程指导。
站外效率工具数据与分析
217 0.0
举报「wordpress-org-compliance」
举报信息仅审核团队可见,同一资产 24 小时内仅可举报一次