Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▲0.50ms] Passed 4 tests
A check of server-side resources used by JWT Authentication for WP REST API
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.27 ▼2.56 |
Dashboard /wp-admin | 3.33 ▲0.03 | 53.90 ▲2.06 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 48.13 ▼2.16 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 118.59 ▲12.52 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 40.46 ▲4.64 |
JWT Authentication /wp-admin/options-general.php?page=jwt_authentication | 3.23 | 34.21 |
Server storage [IO: ▲0.74MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 161 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
jwt_auth_admin_notice |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
JWT Authentication for WP REST API: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲75 | 13.33 ▼1.21 | 1.61 ▼0.23 | 39.59 ▼5.45 |
Dashboard /wp-admin | 2,228 ▲27 | 4.85 ▼1.09 | 101.05 ▼33.56 | 36.50 ▼6.86 |
Posts /wp-admin/edit.php | 2,101 ▲22 | 2.00 ▼0.01 | 37.64 ▲1.55 | 31.28 ▼1.05 |
Add New Post /wp-admin/post-new.php | 1,557 ▲17 | 23.49 ▲5.30 | 619.38 ▼0.60 | 53.50 ▼0.37 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.29 ▲0.05 | 102.99 ▼10.76 | 45.45 ▼2.81 |
JWT Authentication /wp-admin/options-general.php?page=jwt_authentication | 992 | 9.14 | 184.35 | 33.85 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- jwt_auth_admin_notice
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 102× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/jwt-authentication-for-wp-rest-api/includes/vendor/composer/installers/src/Composer/Installers/OsclassInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/jwt-authentication-for-wp-rest-api/includes/vendor/composer/installers/src/Composer/Installers/PhiftyInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/jwt-authentication-for-wp-rest-api/includes/vendor/composer/installers/src/Composer/Installers/TaoInstaller.php:7
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/jwt-authentication-for-wp-rest-api/includes/vendor/composer/installers/src/Composer/Installers/KanboardInstaller.php:13
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/jwt-authentication-for-wp-rest-api/includes/vendor/composer/installers/src/Composer/Installers/ReIndexInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/jwt-authentication-for-wp-rest-api/includes/vendor/composer/installers/src/Composer/Installers/ZendInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/jwt-authentication-for-wp-rest-api/includes/vendor/composer/installers/src/Composer/Installers/TYPO3FlowInstaller.php:7
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/jwt-authentication-for-wp-rest-api/includes/vendor/composer/installers/src/Composer/Installers/DolibarrInstaller.php:10
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/jwt-authentication-for-wp-rest-api/includes/vendor/composer/installers/src/Composer/Installers/DokuWikiInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/jwt-authentication-for-wp-rest-api/includes/vendor/composer/installers/src/Composer/Installers/PimcoreInstaller.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: json web authentication, wp-api, wp-json, jwt
jwt-authentication-for-wp-rest-api/jwt-auth.php 85% from 13 tests
The main PHP script in "JWT Authentication for WP REST API" version 1.3.4 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("jwt-authentication-for-wp-rest-api.php" instead of "jwt-auth.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected5,659 lines of code in 149 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 130 | 759 | 1,834 | 4,095 |
Markdown | 3 | 202 | 0 | 587 |
JSON | 5 | 0 | 0 | 452 |
JavaScript | 6 | 18 | 13 | 299 |
YAML | 3 | 31 | 3 | 123 |
Sass | 1 | 20 | 1 | 102 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 3.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 2.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 121 | |
▷ Abstract classes | 1 | 0.83% |
▷ Concrete classes | 120 | 99.17% |
▷ Final classes | 0 | 0.00% |
Methods | 204 | |
▷ Static methods | 45 | 22.06% |
▷ Public methods | 136 | 66.67% |
▷ Protected methods | 34 | 16.67% |
▷ Private methods | 34 | 16.67% |
Functions | 11 | |
▷ Named functions | 4 | 36.36% |
▷ Anonymous functions | 7 | 63.64% |
Constants | 12 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 12 | 100.00% |
▷ Public constants | 4 | 33.33% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin