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.12MB] [CPU: ▼7.62ms] Passed 4 tests
Server-side resources used by GS JWT Authentication for WP REST API
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 38.71 ▲2.11 |
Dashboard /wp-admin | 3.43 ▲0.08 | 45.03 ▼20.68 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 48.05 ▼2.84 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 96.04 ▼7.14 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 33.82 ▲0.19 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
GS JWT Authentication for WP REST API: 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,800 ▲54 | 14.78 ▲0.40 | 1.94 ▲0.27 | 50.78 ▲7.87 |
Dashboard /wp-admin | 2,206 ▲21 | 5.88 ▲0.79 | 106.83 ▼0.85 | 41.62 ▼1.37 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.01 ▼0.03 | 38.84 ▼0.66 | 34.92 ▼3.73 |
Add New Post /wp-admin/post-new.php | 1,544 ▲30 | 18.35 ▲0.82 | 602.30 ▼11.43 | 45.51 ▼0.80 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.20 ▲0.00 | 98.03 ▲0.25 | 44.79 ▲2.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gs-jwt-auth-and-otp-varification/gs-jwt.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: These screenshots need descriptions #1, #2, #3 in gs-jwt-auth-and-otp-varification/assets to your readme.txt
gs-jwt-auth-and-otp-varification/gs-jwt.php 85% from 13 tests
The entry point to "GS JWT Authentication for WP REST API" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("gs-jwt-auth-and-otp-varification.php" instead of "gs-jwt.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,420 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 235 | 437 | 989 |
Markdown | 2 | 95 | 0 | 340 |
JSON | 3 | 0 | 0 | 91 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 15.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 4.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 13 | 38.24% |
▷ Public methods | 30 | 88.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 11.76% |
Functions | 23 | |
▷ Named functions | 15 | 65.22% |
▷ Anonymous functions | 8 | 34.78% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin