Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲2.06MB] [CPU: ▲6.99ms] Passed 4 tests
A check of server-side resources used by WP Login and Register using JWT
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.57 ▲2.10 | 51.50 ▲7.20 |
Dashboard /wp-admin | 5.40 ▲2.09 | 54.38 ▲6.15 |
Posts /wp-admin/edit.php | 5.45 ▲2.09 | 59.99 ▲15.32 |
Add New Post /wp-admin/post-new.php | 7.94 ▲2.05 | 94.25 ▼0.73 |
Media Library /wp-admin/upload.php | 5.26 ▲2.03 | 50.89 ▲19.46 |
Server storage [IO: ▲1.63MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 57 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_theysaidso_widget |
mo_jwt_client_secret |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
mo_jwt_attr_settings |
mo_jwt_config_settings |
can_compress_scripts |
mo_jwt_plugin_version |
Browser metrics Passed 4 tests
A check of browser resources used by WP Login and Register using JWT
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲88 | 13.17 ▼1.58 | 5.15 ▲3.27 | 41.52 ▼2.10 |
Dashboard /wp-admin | 2,217 ▲26 | 5.94 ▲1.02 | 96.07 ▼7.69 | 77.85 ▲32.55 |
Posts /wp-admin/edit.php | 2,112 ▲23 | 2.06 ▲0.00 | 34.18 ▼6.26 | 31.19 ▼3.81 |
Add New Post /wp-admin/post-new.php | 1,689 ▲156 | 22.54 ▼0.57 | 739.23 ▲88.98 | 34.32 ▼25.76 |
Media Library /wp-admin/upload.php | 1,405 ▲23 | 4.25 ▲0.11 | 106.99 ▲9.45 | 71.10 ▲27.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 10 options in the database
- theysaidso_admin_options
- mo_jwt_attr_settings
- can_compress_scripts
- mo_jwt_client_secret
- widget_recent-comments
- mo_jwt_config_settings
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- mo_jwt_plugin_version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 take a closer look at the following
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/user.php' (include_path='.:/usr/share/php') in wp-content/plugins/login-register-using-jwt/classes/common/Methods/class-jwtdelete.php on line 19
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/login-register-using-jwt/classes/common/Methods/class-jwtdelete.php on line 19
- > PHP Warning
require_once(ABSPATHwp-admin/includes/user.php): failed to open stream: No such file or directory in wp-content/plugins/login-register-using-jwt/classes/common/Methods/class-jwtdelete.php on line 19
- > PHP Fatal error
Uncaught Error: Interface 'MoJWT\\Accounts\\AccountsInterface' not found in wp-content/plugins/login-register-using-jwt/classes/common/Accounts/class-accounts.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
login-register-using-jwt/miniorange-jwt-login-settings.php 92% from 13 tests
The entry point to "WP Login and Register using JWT" version 2.6.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: Please rename the main PHP file in this plugin to the plugin slug ("login-register-using-jwt.php" instead of "miniorange-jwt-login-settings.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected8,845 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 1,564 | 5,070 | 8,837 |
CSS | 4 | 0 | 5 | 4 |
JavaScript | 2 | 0 | 8 | 4 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 47.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 416.00 |
Average method complexity | 5.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 84.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 28 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 28 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 317 | |
▷ Static methods | 4 | 1.26% |
▷ Public methods | 301 | 94.95% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 5.05% |
Functions | 15 | |
▷ Named functions | 13 | 86.67% |
▷ Anonymous functions | 2 | 13.33% |
Constants | 82 | |
▷ Global constants | 75 | 91.46% |
▷ Class constants | 7 | 8.54% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
16 PNG files occupy 0.34MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/images/icons/add-user.png | 22.66KB | 10.86KB | ▼ 52.09% |
resources/images/icons/padlock.png | 30.64KB | 12.40KB | ▼ 59.53% |
resources/images/icons/jwt-token.png | 84.47KB | 25.95KB | ▼ 69.28% |
resources/images/miniorange.png | 0.44KB | 0.35KB | ▼ 18.61% |
resources/images/icons/tick.png | 28.84KB | 12.74KB | ▼ 55.81% |