WP Manifestindependent plugin directory
manifest / developer / tribe-ext-test-data-generator

The Events Calendar Extension: Test Data Generator WP Registry grade C-. High-severity findings · 1 findingWP RegistryHigh-severity findings · 1 findingOpen the reportC-

This extension aims to provide an automated tool to generate high quality, life-like data for The Events Calendar family of plugins.

★ 6stars
2.3krelease downloads
≈250active sites
v1.2.2latest · 1 year ago

Install

Download tribe-ext-test-data-generator-1.2.2.zip From the v1.2.2 release on GitHub, Dec 5, 2024

Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/mt-support/tribe-ext-test-data-generator/releases/download/v1.2.2/tribe-ext-test-data-generator-1.2.2.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Test Data Generator

This extension aims to provide an automated tool to generate high quality, life-like data for The Events Calendar family of plugins.

Setting it up

Setting up the extension is simple, just install it and activate it on your WordPress site, alongside The Events Calendar (v5.1.1+).

You can access all the available features in Events > Test Data.

What you can do:

  1. Create Venues: you can automatically generate any specified number of venues for your site.
  2. Create Organizers: you can automatically generate any specified number of organizers for your site.
  3. Create Events: you can automatically generate any specified number of events, pulling from your pre-existing Venues, Organizers and uploaded images in your Media Library. You can select the date range for which each generated event's date will be randomly selected. Generated events can be standard events, Virtual events or Recurring events. You can also choose to add RSVP and/or Tickets to the generated events.
PLEASE NOTE that the amount of Venues, Organizers and Events you can create might be limited by your site's server setup (Available memory, timeout, processing power, etc.)
Handy Dandy Toolset
  1. Import random images into your site's Media Library: you can choose to import a few or a bunch of images to your site. A random selection of images with aspect ratio 16:9 will be selected from the service Picsum.photo
  2. Clear generated Events-related posts: this will help you when you need to scratch everything that has been automatically generated and start over! Automatically removes every Venue, Organizer and Event created using this extension. This won't delete your pre-existing Organizers, Venues or Events.
  3. Delete ALL Events-related posts: this will do as promise and wipe out all existing Organizers,
  4. Reset TEC Settings and Options: this will clear out all your TEC-related options, settings and transients, effectively giving you a "factory reset".
Please note that if you have a lot of Organizers, Venues or Events, the delete requests may time-out.

WP-CLI Support

Example:

wp tec-test-data events generate 23 --with-organizers=10 --with-venues=5 --with-images=10

The command above will:

  • Upload 10 images
  • Create 5 Venues
  • Create 10 Organizers
  • Create 23 Events

To specify a value each available option via the built-in prompt, use:

wp tec-test-data events generate --prompt 

Using the delete command:

To delete generated events-related data:

wp tec-test-data delete

To delete all events-related data:

wp tec-test-data delete --all

For a full list of supported capabilities, check out src/Tribe/Cli/Command.php

Releases

16 releases. Each count is every asset in that release; expand a row for the breakdown.

Tag
Published
Assets
Downloads
v1.2.2 latest
Dec 5, 2024 1 year ago
tribe-ext-test-data-generator-1.2.2.zip
394
Apr 16, 2024 2 years ago
tribe-ext-test-data-generator-1.2.1.zip
257
Jul 31, 2023 3 years ago
tribe-ext-test-data-generator-1.2.0.zip
306
Jun 22, 2023 3 years ago
tribe-ext-test-data-generator.1.1.0.zip
9
Apr 6, 2023 3 years ago
tribe-ext-test-data-v1.0.10.zip
118
Sep 12, 2022 4 years ago
tribe-ext-test-data-generator-v1.0.9.zip
247
Jun 29, 2022 4 years ago
tribe-ext-test-data-generator-v1.0.8.zip
96
Jun 28, 2022 4 years ago
tribe-ext-test-data-generator-v1.0.7.zip
7
Jun 1, 2022 4 years ago
tribe-ext-test-data-generator-v1.0.6.zip
36
Oct 29, 2020 5 years ago
tribe-ext-test-data-generator-v1.0.5.zip
635
Aug 11, 2020 6 years ago
test-data-generator-v1.0.4.zip
89
Jul 30, 2020 6 years ago
test-data-generator-1.0.3.zip
14
Jul 14, 2020 6 years ago
test-data-generator-1.0.2.zip
22
Jul 7, 2020 6 years ago
test-data-generator-1.0.1.zip
20
Jun 29, 2020 6 years ago
test-data-generator-1.0.0.1.zip
21
Jun 26, 2020 6 years ago
tag only
—

Active-site estimate ≈250 comes from the median of recent superseded releases. Method.

C- grade

Security

The Events Calendar Extension: Test Data Generator 1.2.2 · audited by WP Registry

High-severity findings.

1 high
Audited release
1.2.2
Findings
1
Worst severity
high
Content hash
ff889683242f87684bfe9f27…

Findings

  • high Destructive test-data actions require only edit_posts, not manage_options

    missing_capability

    The Events > Test Data screen is registered with add_submenu_page capability edit_posts. parse_request is attached to load-{$menu_hook} (Hooks::on_admin_init) and, after a tribe-ext-test-data-generator nonce, performs mass state changes with no current_user_can: Utils::clear_generated, Utils::clear_all (deletes every Venue/Organizer/Event via the TEC ORM, then every tribe_events_cat term), Utils::reset_tec_settings (delete_option on tribe_events_calendar_options and related TEC/widget/PUE keys), and do_action('tec_ext_test_data_generator_handle_batch') which creates published events/venues/organizers and uploads remote images. WordPress core only checks the submenu cap before firing that load hook, so any role with edit_posts — Contributor, Author, Editor, WooCommerce Shop Manager — can load the page, copy the nonce from wp_nonce_field, and POST. That is below manage_options. Event::create additionally add_filter('user_has_cap') to force tribe_events/post edit_posts and category/tag assign_terms for the create call, so a Contributor who cannot publish through the normal Events UI still inserts post_status=publish events that the public calendar displays. clear_all/reset_tec_settings are site-wide integrity/availability (empty calendar, factory-reset TEC settings including map API keys). Quantity from POST is not absint'd; leftovers are queued with as_enqueue_async_action so the same low-priv user can keep generating in 50-row batches. This is a test-data generator and should not run on production; if it does, these actions must require manage_options (or a dedicated cap) inside parse_request itself, not only as a menu flag.

    src/Tribe/Page.php:105-174

    Recommendation

    Require current_user_can('manage_options') (or a dedicated cap such as manage_tribe_events) at the start of parse_request, and pass that same cap to add_submenu_page. Do not treat wp_verify_nonce as authorization. Remove or hard-disable clear_all/reset_tec_settings on non-development environments (for example WP_ENVIRONMENT_TYPE === 'production'). Drop the user_has_cap override or keep it only for WP-CLI. Cap and absint quantity/content_length before queueing Action Scheduler batches.

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.