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
Installer ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼1.72ms] Passed 4 tests
This is a short check of server-side resources used by OTP-less one tap Sign in
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.19 | 37.75 ▼3.02 |
Dashboard /wp-admin | 3.58 ▲0.23 | 50.42 ▼6.36 |
Posts /wp-admin/edit.php | 3.62 ▲0.27 | 50.05 ▲5.56 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 92.36 ▼3.06 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 38.26 ▲6.61 |
OTPless /wp-admin/options-general.php?page=OTPless | 3.43 | 34.95 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
OTP-less one tap Sign in: 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,794 ▲32 | 14.22 ▼0.50 | 1.61 ▼0.10 | 39.91 ▼4.57 |
Dashboard /wp-admin | 2,202 ▲27 | 5.61 ▼0.16 | 94.86 ▼11.10 | 42.36 ▼3.87 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.98 ▲0.03 | 40.25 ▲1.71 | 34.02 ▼1.39 |
Add New Post /wp-admin/post-new.php | 1,529 ▼1 | 23.42 ▲0.21 | 608.52 ▼29.19 | 52.90 ▲2.02 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.19 ▲0.01 | 117.08 ▲15.45 | 48.04 ▲3.14 |
OTPless /wp-admin/options-general.php?page=OTPless | 1,454 | 2.12 | 25.56 | 75.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/otpless/includes/templates/otpless-login-page.php
- > /wp-content/plugins/otpless/templates/otpless-login-page.php
- > /wp-content/plugins/otpless/includes/custom-myaccount-page.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: passwordless, login, security, authentication, signup
otpless/wp-otpless.php 85% from 13 tests
Analyzing the main PHP file in "OTP-less one tap Sign in" version 2.0.39
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("otpless.php" instead of "wp-otpless.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
Everything looks great! No dangerous files found in this plugin2,624 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 366 | 589 | 2,377 |
SVG | 13 | 2 | 0 | 120 |
JavaScript | 3 | 20 | 0 | 82 |
CSS | 2 | 0 | 0 | 28 |
JSON | 2 | 0 | 0 | 17 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 28.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 3.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.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 | 68 | |
▷ Static methods | 18 | 26.47% |
▷ Public methods | 64 | 94.12% |
▷ Protected methods | 2 | 2.94% |
▷ Private methods | 2 | 2.94% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 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
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/image/frame-52983071@3x.png | 17.38KB | 8.06KB | ▼ 53.61% |
assets/img/short-logo.png | 12.24KB | 5.36KB | ▼ 56.25% |