Skip to content

Release Verifycate WordPress plugin 0.1.0 - #1

Merged
aswinshenoy merged 15 commits into
mainfrom
feat/php-sdk-v1
Oct 23, 2026
Merged

aswinshenoy merged 15 commits into
mainfrom
feat/php-sdk-v1

Conversation

@aswinshenoy

@aswinshenoy aswinshenoy commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Ships the Verifycate WordPress plugin with native LearnDash, Tutor LMS, LearnPress, LifterLMS and Sensei triggers, a dynamic LMS → trigger → course/quiz/lesson mapping flow, certificate catalogue pickers, wallet/verification shortcodes, translation support, queue/log screens, and a local end-to-end harness.

This also adds:

  • Tag-based GitHub Releases that publish verifycate.zip automatically.
  • A WordPress.org-ready .wordpress-org screenshot set (iPad Pro 13 landscape, 2752 × 2064).
  • Updated readme screenshot captions and release documentation.
  • A local wp-env loopback shim for LearnPress/Site Health checks.

Validation

  • PHPCS, PHPStan and PHPUnit (29 tests / 97 assertions)
  • Plugin Check on the built zip
  • Browser-tested mappings, certificate picker, save/restore, native issuance, score threshold, duplicate suppression, verification and wallet
  • GitHub Actions package artifact

Release

Merge this PR, then push a v0.1.0 tag. The release workflow builds the zip and attaches it to the GitHub Release.

Replace the scaffold with a working WordPress client: encrypted connection
settings, certificate mappings for LearnDash, Tutor LMS, LearnPress, LifterLMS,
Sensei and a custom hook, and a durable issuance queue with retries and logs.

All API calls go through the Verifycate PHP SDK and a wp_remote_request-backed
transport, so the plugin no longer hand-writes endpoint paths. The wallet
shortcode and server-rendered block let learners open their certificates, and
WP-CLI covers status, issuance, queue and log operations.

Signed-off-by: Ashwin S Shenoy <aswinshenoy65@gmail.com>
Reuse the existing issue when an import is rejected, so a retry after a failed
release does not silently mark the job done. Recertification now reissues the
existing credential instead of relying on the import endpoint to accept a
duplicate. Normalise an API base URL that includes /api/v1, validate the wallet
filter result, and purge completed or failed jobs after 30 days.

Signed-off-by: Ashwin S Shenoy <aswinshenoy65@gmail.com>
The GitHub Actions runner cannot use a developer's local git credentials, so
the workflow writes a read-only deploy key to a temporary SSH identity and
clones verifycate/php-sdk over SSH before Composer install.

Signed-off-by: Ashwin S Shenoy <aswinshenoy65@gmail.com>
@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

🔍 WordPress Plugin Check Report

⚠️ Status: Passed with warnings

📊 Report

🎯 Total Issues ❌ Errors ⚠️ Warnings
29 0 29

⚠️ Warnings (29)

📁 composer.json (1 warning)
📍 Line 🔖 Check 💬 Message
0 missing_composer_json_file The "/vendor" directory using composer exists, but "composer.json" file is missing.
📁 verifycate.php (1 warning)
📍 Line 🔖 Check 💬 Message
80 PluginCheck.CodeAnalysis.DiscouragedFunctions.load_plugin_textdomainFound load_plugin_textdomain() has been discouraged since WordPress version 4.6. When your plugin is hosted on WordPress.org, you no longer need to manually include this function call for translations under your plugin slug. WordPress will automatically load the translations for you as needed.
📁 uninstall.php (1 warning)
📍 Line 🔖 Check 💬 Message
45 PluginCheck.Security.DirectDB.UnescapedDBParameter Unescaped parameter $verifycate_name used in $wpdb->query()\n$verifycate_name assigned unsafely at line 43.
📁 src/Install.php (4 warnings)
📍 Line 🔖 Check 💬 Message
156 PluginCheck.Security.DirectDB.UnescapedDBParameter Unescaped parameter $table used in $wpdb->query()\n$table assigned unsafely at line 153.
159 PluginCheck.Security.DirectDB.UnescapedDBParameter Unescaped parameter $table used in $wpdb->get_results()\n$table assigned unsafely at line 153.
176 PluginCheck.Security.DirectDB.UnescapedDBParameter Unescaped parameter $table used in $wpdb->query()\n$table assigned unsafely at line 153.
180 PluginCheck.Security.DirectDB.UnescapedDBParameter Unescaped parameter $table used in $wpdb->query()\n$table assigned unsafely at line 153.
📁 src/Integrations/LearnPress.php (1 warning)
📍 Line 🔖 Check 💬 Message
89 PluginCheck.Security.DirectDB.UnescapedDBParameter Unescaped parameter $items used in $wpdb->get_results()\n$items assigned unsafely at line 86.
📁 src/Support/Logger.php (4 warnings)
📍 Line 🔖 Check 💬 Message
111 PluginCheck.Security.DirectDB.UnescapedDBParameter Unescaped parameter $table used in $wpdb->get_results()\n$table assigned unsafely at line 107.
117 PluginCheck.Security.DirectDB.UnescapedDBParameter Unescaped parameter $table used in $wpdb->get_results()\n$table assigned unsafely at line 107.
150 PluginCheck.Security.DirectDB.UnescapedDBParameter Unescaped parameter $table used in $wpdb->query()\n$table assigned unsafely at line 148.
165 PluginCheck.Security.DirectDB.UnescapedDBParameter Unescaped parameter $table used in $wpdb->query()
📁 src/Issuance/MappingRepository.php (5 warnings)
📍 Line 🔖 Check 💬 Message
51 PluginCheck.Security.DirectDB.UnescapedDBParameter Unescaped parameter $sql used in $wpdb->get_results()\n$sql assigned unsafely at line 48.
84 PluginCheck.Security.DirectDB.UnescapedDBParameter Unescaped parameter $prepared used in $wpdb->get_results()\n$prepared assigned unsafely at line 81.
100 PluginCheck.Security.DirectDB.UnescapedDBParameter Unescaped parameter $table used in $wpdb->get_row()\n$table assigned unsafely at line 98.
210 PluginCheck.Security.DirectDB.UnescapedDBParameter Unescaped parameter $table used in $wpdb->get_results()\n$table assigned unsafely at line 208.
245 PluginCheck.Security.DirectDB.UnescapedDBParameter Unescaped parameter $sql used in $wpdb->get_var()\n$sql assigned unsafely at line 241.
📁 src/Issuance/Queue.php (11 warnings)
📍 Line 🔖 Check 💬 Message
138 PluginCheck.Security.DirectDB.UnescapedDBParameter Unescaped parameter $table used in $wpdb->query()\n$table assigned unsafely at line 133.
146 PluginCheck.Security.DirectDB.UnescapedDBParameter Unescaped parameter $table used in $wpdb->get_col()\n$table assigned unsafely at line 133.
158 PluginCheck.Security.DirectDB.UnescapedDBParameter Unescaped parameter $table used in $wpdb->query()\n$table assigned unsafely at line 133.
172 PluginCheck.Security.DirectDB.UnescapedDBParameter Unescaped parameter $table used in $wpdb->get_row()\n$table assigned unsafely at line 133.
232 PluginCheck.Security.DirectDB.UnescapedDBParameter Unescaped parameter $table used in $wpdb->get_var()\n$table assigned unsafely at line 230.
295 PluginCheck.Security.DirectDB.UnescapedDBParameter Unescaped parameter $table used in $wpdb->query()\n$table assigned unsafely at line 291.
323 PluginCheck.Security.DirectDB.UnescapedDBParameter Unescaped parameter $table used in $wpdb->query()\n$table assigned unsafely at line 319.
350 PluginCheck.Security.DirectDB.UnescapedDBParameter Unescaped parameter $table used in $wpdb->get_results()\n$table assigned unsafely at line 349.
386 PluginCheck.Security.DirectDB.UnescapedDBParameter Unescaped parameter $table used in $wpdb->get_results()\n$table assigned unsafely at line 382.
432 PluginCheck.Security.DirectDB.UnescapedDBParameter Unescaped parameter $table used in $wpdb->query()\n$table assigned unsafely at line 428.
461 PluginCheck.Security.DirectDB.UnescapedDBParameter Unescaped parameter $table used in $wpdb->get_var()\n$table assigned unsafely at line 456.
📁 assets/wallet.css (1 warning)
📍 Line 🔖 Check 💬 Message
0 EnqueuedStylesScope This style is being loaded in all contexts.

🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check

The action input is build-dir; pointing it at the repository root made it flag
development files that never ship. Build and extract the zip first, drop the
invalid Network header, trim the tag list, and stop calling the discouraged
load_plugin_textdomain() so the check reflects the artifact users install.

Signed-off-by: Ashwin S Shenoy <aswinshenoy65@gmail.com>
Signed-off-by: Ashwin S Shenoy <aswinshenoy65@gmail.com>
Rename wp-env.json to .wp-env.json so wp-env actually reads it, and pin PHP 8.3
because the 7.4 image no longer builds. Add a mock Verifycate API, seeding
scripts, LMS hook fixtures and a runbook that exercise the custom hook, Tutor
LMS, LearnPress, LifterLMS and Sensei against a real WordPress install. Fix the
long code sample overflowing the Setup card.

Signed-off-by: Ashwin S Shenoy <aswinshenoy65@gmail.com>
Connect now saves and tests in one action, accepts a workspace slug or
dashboard URL, and exposes API/portal URLs and uninstall cleanup only under
Advanced settings. The connected screen is a short checklist: connect, map a
course, add the wallet shortcode (with a copy button). Links open the right
Verifycate app screen for API keys and certificate creation.

The mapping form now shows only the course and certificate, with attributes,
duplicate handling and release under Advanced options, an onboarding empty
state, and a create-certificate link. Also fixes the Edit-link href that
template whitespace made malformed.

Signed-off-by: Ashwin S Shenoy <aswinshenoy65@gmail.com>
Use the new SDK workspace lookup to replace the workspace field with a single
API-key field. Connecting resolves the workspace, checks the key scopes and seat
state, reports read-only keys as needing attention, and keeps a manual override
under Advanced settings.

Replace the course and certificate selects with accessible, progressive
comboboxes that filter by LMS, course title or certificate name, support keyboard
selection, and fall back to the native selects without JavaScript. Also surface
scopes and plan state in wp verifycate status.

Signed-off-by: Ashwin S Shenoy <aswinshenoy65@gmail.com>
Replace the opaque key = template textarea with one row per declared
certificate attribute, fetched from the selected certificate. Each row has a
full-width value field, a clearly labelled Insert token action row with pill
buttons, a rounded More tokens control, a live preview, and a clear action. The
raw editor remains as an advanced fallback and stays in sync both ways.

Also resolve the workspace from the API key in the connect flow and expose
searchable course and certificate comboboxes.

Signed-off-by: Ashwin S Shenoy <aswinshenoy65@gmail.com>
Switch the attribute section between a visual row mapper and a raw key = value
view with a minimal tab control at the top right. The two views stay in sync,
tabs support keyboard navigation, and the field is named Attribute mapping
rather than a template editor.

Signed-off-by: Ashwin S Shenoy <aswinshenoy65@gmail.com>
- Split mapping list and add/edit screens
- Use editor-style panels with collapsible headers and proper spacing
- Move attribute mapping into its own panel above advanced options
- Add a single Publish sidebar with actions, options and timestamps
- Keep labels above fields and stack panels on narrow screens
- Move helper copy into focusable info tooltips
- Replace release and status checkboxes with toggles
- Rename release controls to Certificate release / Automatic release
- Put Delete on the left and the WP primary Save on the right
- Remove the Cancel action
Add course, quiz and lesson triggers with dynamic LMS/object pickers, certificate catalogue selection, improved mapping tables and logs, new shortcodes, translation template, and local end-to-end fixtures.
Publish the built plugin zip as a GitHub Release for every v* tag, document the release flow, and add the iPad Pro 13 screenshot set plus WordPress.org captions.
@aswinshenoy aswinshenoy changed the title Build the plugin on the Verifycate PHP SDK Release Verifycate WordPress plugin 0.1.0 Oct 23, 2026
@aswinshenoy
aswinshenoy merged commit 4b8cba6 into main Oct 23, 2026
8 checks passed
@aswinshenoy
aswinshenoy deleted the feat/php-sdk-v1 branch October 23, 2026 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant