plugin-icon

EasyCommerce FakerPress

Fill an EasyCommerce store with realistic test data. Generate dummy products, orders, customers and coupons in seconds, with a live preview.
評價
5
版本
2.4.0
最近更新:
Jul 22, 2026
EasyCommerce FakerPress

EasyCommerce FakerPress generates realistic test data for EasyCommerce stores. It creates dummy products, orders, customers, coupons and ten other record types on demand, so you can build, test and demo a store that looks real without typing a single product by hand.

It is a developer tool for local, staging and demo sites. It is not meant for production stores.

Point it at a generator, set how many records you want, and click Generate. A live preview shows exactly what the run will produce before anything is written to your database.

Sample data is optional and consent-based. The plugin can download locale-specific reference data (product names, addresses and tags for 75+ locales) from GitHub to make generated content more realistic. This never happens automatically — it runs only after you accept a one-time consent prompt on the plugin’s admin page, transmits no data about your site, and can be declined without losing any functionality (generators fall back to built-in defaults). You can change the decision at any time from Settings.

What it generates

Fourteen generators, covering the records an EasyCommerce store actually holds:

  • Products — pricing, categories, inventory, attributes and variations
  • Customers — profiles with addresses, demographics and purchase history
  • Orders — complete order histories with payments, shipping and tax
  • Coupons — discount codes with rules, usage limits and restrictions
  • Product Variations — variable attributes, price variance and stock settings
  • Shipping Plans — methods, zones and rate tables
  • Tax Classes — tax rules by region and product type
  • Transactions — payment records across multiple gateways and statuses
  • Cart Sessions — abandoned cart scenarios and session data
  • Attributes — Text, Color and Image attribute types for variations and filtering
  • Refunds — refunds against existing completed or processing orders
  • Logs — activity entries for orders, products, customers and system events
  • Locations — countries, states and cities
  • Product Reviews — ratings linked to real products and customers

Why the data holds together

Generated records are created through EasyCommerce’s own models rather than by writing rows directly to the database. Validation, relationships and inventory changes all run exactly as they would for a real order. That means orders link to genuine customers and products, refunds attach to orders that can actually be refunded, and reviews belong to products that exist.

FakerPHP supplies the names, addresses and text, layered with commerce-specific logic for pricing, geography and customer lifecycle. Optional sample data sync adds locale-specific product names and addresses for 75+ locales.

Built for repeatable testing

  • Live preview — see real generated rows before committing anything
  • Seeds — reuse a seed to reproduce an identical dataset on demand
  • Batch queue — line up several generators and run them in sequence
  • Run history — per-generator log with all-time stats on the dashboard
  • Locales — generate region-appropriate data for 75+ locales
  • Light and dark themes, five accent palettes, keyboard-driven command palette

For developers

  • 15+ filters and actions for customising data before and after creation
  • 14 REST controllers under the easycommerce-fakerpress/v1 namespace
  • Abstract generator classes you can extend with your own generators
  • 131 Playwright end-to-end tests

Key hooks:

  • easycommerce_fakerpress_*_data_before_create — change generated data before it is created
  • easycommerce_fakerpress_after_*_created — react once an item exists
  • easycommerce_fakerpress_*_generation_result — reshape what a run returns
  • easycommerce_fakerpress_rest_response — filter REST API responses

Important: this plugin writes large volumes of fake data into your store. Use it on development or staging sites only, and back up your database before generating large datasets.

External services

This plugin connects to two external services. Neither is contacted on activation, and no personal or store data is ever transmitted.

1. GitHub — sample data repository

When you first open the plugin admin page, a consent prompt offers to download locale-specific reference data (product names, addresses, customer tags for 75+ locales) used to make generated content more realistic. The same download is available any time from the “Sample Data Sync” action on the Settings page.

Service: GitHub Endpoint: https://github.com/mralaminahamed/easycommerce-fakerpress-sample-data/archive/refs/heads/trunk.zip When data is sent: Only after an administrator allows it — either by accepting the sample-data consent prompt shown on the plugin admin page, or by clicking “Sync now” on the plugin Settings page. No download happens until consent is given, and no data about your site is transmitted. Data sent: An unauthenticated HTTP GET request. No site, user, or store data is included — only the request itself (and the IP address and user agent inherent to any HTTP request). Terms of Service: https://docs.github.com/en/site-policy/github-terms/github-terms-of-service Privacy Policy: https://docs.github.com/en/site-policy/privacy-policies/github-general-privacy-statement

2. WordPress.org — plugin directory API

The “Our Plugins” admin page lists the plugin author’s other WordPress.org plugins with live ratings and install counts.

Service: WordPress.org Plugin Directory API Endpoint: https://api.wordpress.org/plugins/info/1.2/ When data is sent: Only when an administrator opens the “Our Plugins” page in the plugin admin. The request is made by the browser. Data sent: A query for plugins by the author “mralaminahamed”. No site, user, or store data is included — only the request itself (and the IP address and user agent inherent to any HTTP request). Terms of Service: https://wordpress.org/about/ Privacy Policy: https://wordpress.org/about/privacy/

Source code

The minified JavaScript and CSS in build/ is compiled from the TypeScript and CSS sources in src/, which are not included in the distributed plugin package. The complete, human-readable source is public:

github.com/mralaminahamed/easycommerce-fakerpress

Build steps:

composer install yarn install yarn build

Build tooling: webpack (via @wordpress/scripts), TypeScript, and Tailwind CSS. Configuration files (webpack.config.js, tsconfig.json, postcss.config.js) are in the repository root.Privacy

All generated data is stored in your own WordPress database and is never transmitted anywhere. Generated content is fictional and does not represent real individuals or transactions. The plugin does not collect analytics, does not phone home, and does not send any site, user, or store data to a third party.

The plugin makes two outbound requests, both administrator-initiated and both carrying no site data — see the “External services” section for the full disclosure.

Contributing

Development happens on GitHub. Report bugs and request features on the issue tracker, and read the contributing guide before opening a pull request — it covers local setup, coding standards, and the checks that run on every change.

Found a security issue? Please follow the security policy and report it privately rather than in a public issue.

Support

目前已測試版本
WordPress 7.0.2
此外掛程式已可供下載,並可用於你 系統。