Version 1.2.1 addresses all issues identified in the WordPress.org plugin review: the missing composer.json file has been included to support transparency in dependency management, JavaScript and CSS are now properly enqueued using WordPress's built-in wp_enqueue_script() and wp_enqueue_style() functions instead of inline code, and all function names, classes, and constants have been refactored to use the unique prefix "juanma_jwt_auth_pro" or "JUANMA_JWT_AUTH_PRO" to prevent conflicts with other plugins while maintaining backward compatibility through deprecated wrappers.
Security
- Database Security Enhancements:
- Replaced
esc_sql()with proper table name validation for database identifiers - Enhanced database query security with prepared statements throughout the codebase
- Added proper validation for table names to prevent SQL injection vulnerabilities
- Refactored database queries for refresh tokens with improved security measures
- Replaced
Fixed
- Plugin Review Fixes (merged from branch
fix/plugin-review-nov-9):- Fixed table name validation in
deactivate()method to remove unnecessary whitespace - Corrected inline script and style enqueuing to use WordPress best practices
- Moved inline JavaScript and CSS to external files (
assets/admin.jsandassets/admin.css) - Fixed nonce verification and security checks in admin settings
- Fixed table name validation in
Changed
- Code Quality Improvements:
- Replaced hardcoded version strings with
JMJAP_VERSIONconstant for consistency - Refactored plugin class names from generic naming to JuanMa JWT Auth Pro branding
- Updated all constant references throughout the codebase (e.g.,
JWT_AUTH_PRO_*toJMJAP_*) - Updated
.wp-env.jsonconfiguration with new constant names - Updated PHPStan configuration to include new constants
- Improved test suite with updated constant references
- Replaced hardcoded version strings with
Improved
- Admin Interface:
- Extracted inline styles and scripts to dedicated asset files for better maintainability
- Enhanced admin settings page with proper WordPress script/style enqueueing
- Improved tab navigation with proper nonce verification
Developer Experience
- Removed unnecessary files from
.distignore - Updated bootstrap files for unit and integration tests with new constants
- Improved helper functions with updated constant references