Repository navigation
Release Verifycate WordPress plugin 0.1.0 - #1
Merged
Merged
Conversation
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>
🔍 WordPress Plugin Check Report
📊 Report
|
| 📍 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
verifycate.zipautomatically..wordpress-orgscreenshot set (iPad Pro 13 landscape, 2752 × 2064).Validation
Release
Merge this PR, then push a
v0.1.0tag. The release workflow builds the zip and attaches it to the GitHub Release.