Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼2.39ms] Passed 4 tests
Analyzing server-side resources used by Simple JWT Login - Login and Register to WordPress using JWT
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 38.73 ▼0.94 |
Dashboard /wp-admin | 3.36 ▲0.05 | 44.32 ▼6.69 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 51.92 ▲8.41 |
Add New Post /wp-admin/post-new.php | 6.35 ▲0.45 | 94.50 ▲0.28 |
Media Library /wp-admin/upload.php | 3.29 ▲0.05 | 33.54 ▼2.22 |
Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 73 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Simple JWT Login - Login and Register to WordPress using JWT: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲43 | 14.25 ▼0.04 | 1.80 ▼0.06 | 41.10 ▼3.77 |
Dashboard /wp-admin | 2,207 ▲33 | 5.49 ▼0.11 | 91.76 ▼4.10 | 86.21 ▲39.57 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 1.97 ▲0.02 | 39.66 ▲1.65 | 34.43 ▼1.63 |
Add New Post /wp-admin/post-new.php | 1,556 ▲30 | 23.39 ▲0.44 | 684.80 ▲6.73 | 53.79 ▼8.82 |
Media Library /wp-admin/upload.php | 1,418 ▲18 | 4.12 ▼0.04 | 96.28 ▼12.25 | 66.66 ▲16.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 26× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'SimpleJWTLogin\\Services\\BaseService' not found in wp-content/plugins/simple-jwt-login/src/Services/RegisterUserService.php:15
- > PHP Fatal error
Uncaught Error: Class 'SimpleJWTLogin\\Modules\\Settings\\BaseSettings' not found in wp-content/plugins/simple-jwt-login/src/Modules/Settings/CorsSettings.php:7
- > PHP Fatal error
Uncaught Error: Class 'SimpleJWTLogin\\Services\\BaseService' not found in wp-content/plugins/simple-jwt-login/src/Services/RouteService.php:8
- > PHP Fatal error
Uncaught Error: Class 'SimpleJWTLogin\\Services\\AuthenticateService' not found in wp-content/plugins/simple-jwt-login/src/Services/ValidateTokenService.php:10
- > PHP Fatal error
Uncaught Error: Class 'SimpleJWTLogin\\Modules\\Settings\\BaseSettings' not found in wp-content/plugins/simple-jwt-login/src/Modules/Settings/ResetPasswordSettings.php:8
- > PHP Fatal error
Uncaught Error: Class 'SimpleJWTLogin\\Modules\\Settings\\BaseSettings' not found in wp-content/plugins/simple-jwt-login/src/Modules/Settings/AuthenticationSettings.php:7
- > PHP Fatal error
Uncaught Error: Interface 'SimpleJWTLogin\\Modules\\WordPressDataInterface' not found in wp-content/plugins/simple-jwt-login/src/Modules/WordPressData.php:10
- > PHP Fatal error
Uncaught Error: Class 'SimpleJWTLogin\\Services\\BaseService' not found in wp-content/plugins/simple-jwt-login/src/Services/AuthenticateService.php:16
- > PHP Fatal error
Uncaught Error: Class 'SimpleJWTLogin\\Services\\BaseService' not found in wp-content/plugins/simple-jwt-login/src/Services/DeleteUserService.php:10
- > PHP Fatal error
Uncaught Error: Class 'SimpleJWTLogin\\Services\\BaseService' not found in wp-content/plugins/simple-jwt-login/src/Services/LoginService.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: tokens, protect, rest, auto login, generate jwt...
simple-jwt-login/simple-jwt-login.php Passed 13 tests
The main PHP script in "Simple JWT Login - Login and Register to WordPress using JWT" version 3.5.3 is automatically included on every request by WordPress
88 characters long description:
Simple-JWT-Login REST API Plugin. Allows you to login / register to WordPress using JWT.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin9,582 lines of code in 71 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 61 | 955 | 1,490 | 8,555 |
Markdown | 1 | 172 | 0 | 509 |
CSS | 2 | 38 | 30 | 210 |
JavaScript | 2 | 29 | 8 | 210 |
SVG | 5 | 3 | 0 | 98 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 13.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 41 | |
▷ Abstract classes | 2 | 4.88% |
▷ Concrete classes | 39 | 95.12% |
▷ Final classes | 0 | 0.00% |
Methods | 321 | |
▷ Static methods | 23 | 7.17% |
▷ Public methods | 268 | 83.49% |
▷ Protected methods | 11 | 3.43% |
▷ Private methods | 42 | 13.08% |
Functions | 16 | |
▷ Named functions | 7 | 43.75% |
▷ Anonymous functions | 9 | 56.25% |
Constants | 187 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 187 | 100.00% |
▷ Public constants | 187 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/simple-jwt-login-16x16.png | 0.48KB | 0.46KB | ▼ 4.24% |