Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲1.09MB] [CPU: ▲3.27ms] Passed 4 tests
Server-side resources used by 1 click passwordless login, temporary login, social login & user switching - Login Me Now
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.55 ▲1.09 | 47.11 ▲3.51 |
Dashboard /wp-admin | 4.40 ▲1.06 | 57.99 ▼7.57 |
Posts /wp-admin/edit.php | 4.51 ▲1.15 | 55.63 ▲11.04 |
Add New Post /wp-admin/post-new.php | 7.02 ▲1.13 | 100.46 ▲6.11 |
Media Library /wp-admin/upload.php | 4.32 ▲1.10 | 43.63 ▲13.24 |
Server storage [IO: ▲5.48MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 852 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_login_me_now_tokens |
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
login_me_now_secret_key |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
login_me_now_algorithm |
Browser metrics Passed 4 tests
This is an overview of browser requirements for 1 click passwordless login, temporary login, social login & user switching - Login Me Now
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,915 ▲153 | 14.03 ▼0.68 | 1.80 ▲0.05 | 43.72 ▲1.06 |
Dashboard /wp-admin | 2,317 ▲140 | 5.52 ▼0.13 | 94.51 ▲0.63 | 41.36 ▼4.39 |
Posts /wp-admin/edit.php | 2,226 ▲126 | 1.96 ▼0.01 | 39.96 ▲5.97 | 34.76 ▲1.30 |
Add New Post /wp-admin/post-new.php | 1,592 ▲66 | 23.17 ▲0.12 | 611.86 ▼92.16 | 56.39 ▼3.94 |
Media Library /wp-admin/upload.php | 1,526 ▲129 | 4.19 ▼0.03 | 95.60 ▼2.66 | 42.98 ▲1.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_login_me_now_tokens
- This plugin did not uninstall successfully, leaving 8 options in the database
- theysaidso_admin_options
- login_me_now_algorithm
- login_me_now_secret_key
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 396× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
Class 'Google\\Http\\REST' not found in wp-content/plugins/login-me-now/vendor/google/apiclient/src/aliases.php on line 32
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\EC' not found in wp-content/plugins/login-me-now/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/PublicKey.php:31
- > 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-me-now/App/Admin/TokensListTable.php on line 14
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Math\\BigInteger\\Engines\\BCMath\\Reductions\\Barrett' not found in wp-content/plugins/login-me-now/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/BCMath/DefaultEngine.php:23
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\Common\\Formats\\Keys\\PKCS1' not found in wp-content/plugins/login-me-now/vendor/phpseclib/phpseclib/phpseclib/Crypt/DH/Formats/Keys/PKCS1.php:34
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/login-me-now/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:15
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/login-me-now/vendor/monolog/monolog/src/Monolog/Handler/ZendMonitorHandler.php:26
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/login-me-now/vendor/guzzlehttp/psr7/src/AppendStream.php:14
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\Common\\Formats\\Signature\\Raw' not found in wp-content/plugins/login-me-now/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Formats/Signature/Raw.php:23
- > PHP Fatal error
Trait 'LoginMeNow\\Traits\\Singleton' not found in wp-content/plugins/login-me-now/App/Models/UserToken.php on line 14
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5 in login-me-now/assets to your readme.txt
login-me-now/login-me-now.php Passed 13 tests
"1 click passwordless login, temporary login, social login & user switching - Login Me Now" version 1.3.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
57 characters long description:
1 click passwordless login, social login & user switching
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin72,309 lines of code in 796 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 729 | 13,065 | 39,994 | 61,791 |
Markdown | 34 | 2,114 | 0 | 5,860 |
CSS | 1 | 177 | 119 | 2,240 |
JSON | 20 | 0 | 0 | 2,221 |
JavaScript | 6 | 10 | 0 | 154 |
SVG | 4 | 0 | 0 | 21 |
XML | 1 | 0 | 0 | 19 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
These items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 104)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 12.63 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 679.00 |
Average method complexity | 3.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 104.00 |
Code structure | ||
---|---|---|
Namespaces | 92 | |
Interfaces | 50 | |
Traits | 18 | |
Classes | 656 | |
▷ Abstract classes | 221 | 33.69% |
▷ Concrete classes | 435 | 66.31% |
▷ Final classes | 67 | 15.40% |
Methods | 3,609 | |
▷ Static methods | 760 | 21.06% |
▷ Public methods | 2,698 | 74.76% |
▷ Protected methods | 402 | 11.14% |
▷ Private methods | 509 | 14.10% |
Functions | 163 | |
▷ Named functions | 21 | 12.88% |
▷ Anonymous functions | 142 | 87.12% |
Constants | 535 | |
▷ Global constants | 25 | 4.67% |
▷ Class constants | 510 | 95.33% |
▷ Public constants | 463 | 90.78% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
26 PNG files occupy 0.88MB with 0.49MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
App/Admin/Assets/images/safari.png | 97.50KB | 36.31KB | ▼ 62.76% |
App/Admin/Assets/images/lock.png | 2.84KB | 1.83KB | ▼ 35.52% |
App/Admin/Assets/build/images/temporary-login-ss.572d2502.png | 43.11KB | 17.20KB | ▼ 60.12% |
App/Admin/Assets/images/microsoft.png | 37.19KB | 12.76KB | ▼ 65.70% |
App/Admin/Assets/images/google.png | 0.98KB | 0.43KB | ▼ 56.27% |