Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼10.39ms] Passed 4 tests
This is a short check of server-side resources used by AH JWT Auth
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.16 ▼1.12 |
Dashboard /wp-admin | 3.32 ▼0.02 | 42.30 ▼21.49 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.73 ▼4.12 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 81.65 ▼14.81 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.63 ▲1.14 |
AH JWT Auth /wp-admin/options-general.php?page=ahjwtauth-sign-in-widget | 3.24 | 31.62 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by AH JWT Auth
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲72 | 14.72 ▲0.44 | 2.07 ▲0.43 | 44.53 ▼0.84 |
Dashboard /wp-admin | 2,193 ▲19 | 5.49 ▼0.18 | 89.56 ▼10.45 | 40.23 ▼2.75 |
Posts /wp-admin/edit.php | 2,101 ▼2 | 2.00 ▲0.05 | 39.47 ▲2.65 | 35.56 ▲5.57 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.49 ▼0.12 | 608.98 ▼81.32 | 63.43 ▲9.79 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.15 ▼0.01 | 96.99 ▼7.80 | 40.35 ▼5.40 |
AH JWT Auth /wp-admin/options-general.php?page=ahjwtauth-sign-in-widget | 859 | 2.00 | 22.83 | 26.82 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
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
Please fix the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/ah-jwt-auth/templates/options-form.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function AhJwtAuth\\add_action() in wp-content/plugins/ah-jwt-auth/includes/class-ahjwtauthadmin.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: auth, sso, authentication, jwt, login
ah-jwt-auth/ah-jwt-auth.php Passed 13 tests
The entry point to "AH JWT Auth" version 1.5.1 is a PHP file that has certain tags in its header comment area
95 characters long description:
This plugin allows sign in to WordPress using a JSON Web Token (JWT) contained in a HTTP Header
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,965 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 310 | 935 | 1,544 |
Markdown | 2 | 85 | 0 | 304 |
JSON | 3 | 0 | 0 | 117 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 18.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 3.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 88 | |
▷ Static methods | 38 | 43.18% |
▷ Public methods | 66 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 22 | 25.00% |
Functions | 6 | |
▷ Named functions | 1 | 16.67% |
▷ Anonymous functions | 5 | 83.33% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 0 | 0.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
There are no PNG files in this plugin