Commit Graph

15 Commits

Author SHA1 Message Date
peptiderepo
4f894f255e perf: improve rate limiting resilience and reduce cache invalidation overhead
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-11 18:53:18 +07:00
peptiderepo
b1412d7824 fix: resolve JS typos breaking form submit and network error handling, fix CSS missing semicolon
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-11 18:52:26 +07:00
peptiderepo
866a8dc1ea security: apply 11 audit findings (2 critical, 4 high, 5 medium/low)
SEC-001 CRITICAL: Remove spoofable X-Forwarded-For/X-Real-IP from IP detection; trust only CF-Connecting-IP + REMOTE_ADDR
SEC-004 HIGH: Add peptide name input validation with character whitelist and prompt injection blocking
SEC-006 HIGH: Add missing return after wp_send_json_success in handle_pending_retry max-retries block
SEC-007 MEDIUM: KB articles now respect auto_publish setting instead of always publishing
SEC-009 MEDIUM: Replace hardcoded page ID 73 with configurable kb_page_id setting
SEC-010 MEDIUM: Fix cache invalidation — add underscore prefix to transient name pattern
SEC-011 MEDIUM: Skip sleep() during WP-Cron to avoid blocking PHP workers on rate limit retry
SEC-012 MEDIUM: Add global daily generation cap (50/day) to prevent cost overruns
SEC-013 LOW: Add @deprecated notice to unused PSA_Error class
SEC-015 LOW: Convert uninstall.php from space to tab indentation (WPCS)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-10 20:46:46 +07:00
peptiderepo
229fb577bf fix: resolve remaining PHPCS errors (short ternaries, array formatting, Yoda conditions) 2026-04-09 10:58:49 +07:00
peptiderepo
adc55c7c45 fix: convert space indentation to tabs for WPCS compliance
All 499 PHPCS errors were 'Tabs must be used to indent lines; spaces are not allowed'.
Converted 4-space indentation to tabs throughout class-psa-ai-generator.php.
2026-04-09 10:46:00 +07:00
peptiderepo
f08497241f Fix corrupted class-psa-ai-generator.php (restore clean version) 2026-04-08 20:30:19 +07:00
peptiderepo
8dadf8e353 fix: replace corrupted deploy.yml with clean workflow 2026-04-08 19:17:42 +07:00
peptiderepo
4457f70b0f ci: ignore PHPCS warnings on exit (only errors should fail CI) 2026-04-08 19:06:05 +07:00
peptiderepo
8ffd2013d8 Fix WPCS: split multi-item associative arrays in template.php 2026-04-08 19:02:16 +07:00
peptiderepo
9f384d861f Fix final WPCS errors: closing brace, short ternary, Yoda condition, multi-line array 2026-04-08 18:56:47 +07:00
peptiderepo
5e0830a744 style: fix WPCS tab indentation in pubchem, error, post-type, template classes 2026-04-08 18:44:45 +07:00
peptiderepo
0a2d7aeb4a style: fix WPCS violations in config and admin classes
- Align equals signs in PSA_Config constant definitions
- Convert space indentation to tabs in PSA_Admin
2026-04-08 18:31:57 +07:00
peptiderepo
8a311523c5 fix: replace class-psa-search.php with correct content (utf-8 blob) 2026-04-08 18:12:09 +07:00
peptiderepo
25a0c458b7 fix: add missing closing brace for rest_search() method in class-psa-search.php 2026-04-08 18:06:40 +07:00
peptiderepo
8fe543b726 fix: correct class-psa-search.php blob (was truncated in chunked upload)
Co-Authored-By: Claude <noreply@anthropic.com>
2026-04-08 17:44:57 +07:00