Mod. PSCTab. Optimization of PSC tabs, filtering and search. - #706
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR refactors the “Security Certified” (PSC) plugins tab to improve responsiveness by moving data loading to a local cache table and adding client-side UX features (filtering + search) while supporting incremental loading.
Changes:
- Adds a new DB-backed cache for PSC-certified plugin cards/badges and warms it during activation and sync.
- Reworks the PSC tab backend rendering/API to serve cached pages, “installed” filtering, and search results.
- Updates the React UI to support filter links, search input, and improved infinite-scroll behavior + styling.
Reviewed changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| security-malware-firewall.php | Adds a new table constant for PSC plugins cache. |
| lib/CleantalkSP/SpbctWP/VulnerabilityAlarm/SpbcPluginInstallListTable.php | Reworks list table population to use cache + adds filter/search plumbing and session helpers. |
| lib/CleantalkSP/SpbctWP/VulnerabilityAlarm/PscCertifiedPluginsController.php | Extends AJAX payload (filter/search/api offset) and renders new toolbar UI. |
| lib/CleantalkSP/SpbctWP/VulnerabilityAlarm/PscCertifiedPluginsCatalogScanner.php | Extracts catalog parsing + WP.org normalization helpers for cache warming/enrichment. |
| lib/CleantalkSP/SpbctWP/VulnerabilityAlarm/PscCertifiedPluginsCacheRepository.php | Implements CRUD/query operations for the PSC cache table. |
| lib/CleantalkSP/SpbctWP/VulnerabilityAlarm/PscCertifiedPluginsCache.php | Implements cache warm-up, paging enrichment, installed filtering, and search. |
| lib/CleantalkSP/SpbctWP/VulnerabilityAlarm/PscCertifiedPluginsApi.php | Adds app_status filtering and introduces fetchAll() helper. |
| lib/CleantalkSP/SpbctWP/Sync.php | Adds a new sync step to warm the PSC cache. |
| lib/CleantalkSP/SpbctWP/Activator.php | Warms PSC cache during plugin activation. |
| lib/CleantalkSP/SpbctWP/Deactivator.php | Drops the new PSC cache table on deactivation cleanup. |
| lib/CleantalkSP/SpbctWP/DB/SQLSchema.php | Adds schema definition for the new psc_plugins_cache table. |
| js/src/react/components/TabContent/TabSecurityCertified/TabSecurityCertified.js | Adds filter/search UX, request de-duping, and updated infinite-scroll flow. |
| js/src/react/components/TabContent/TabSecurityCertified/styles.css | Styles the new toolbar/search UI and empty results spacing. |
| js/public/spbct-react-bundle.js | Updates the built bundle to reflect the React/CSS changes. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…ce with the available cache data
… of PSCs, edits for comments
AntonV1211
requested review from
Glomberg,
alexander-b-clean and
alexandergull
August 10, 2026 05:35
alexandergull
removed their request for review
August 10, 2026 05:38
Glomberg
approved these changes
Aug 10, 2026
alexander-b-clean
approved these changes
Aug 10, 2026
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.
https://app.doboard.com/1/task/53700