Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/qr-user-login/qr-user-login.php+31
Methods with the same name as their class will not be constructors in a future version of PHP; QR_User_Login has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼53.56ms] Passed 4 tests
A check of server-side resources used by QR User Login
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 5.02 ▼40.34 |
Dashboard /wp-admin | 2.10 ▼1.21 | 7.34 ▼40.96 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 5.75 ▼43.61 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 5.22 ▼89.31 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 6.65 ▼28.60 |
QR Login Capability /wp-admin/users.php?page=qr-login-capability | 2.18 | 5.63 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for QR User Login
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 13.18 ▼1.11 | 1.73 ▼0.37 | 43.15 ▼7.32 |
Dashboard /wp-admin | 2,207 ▲16 | 4.85 ▼1.03 | 101.84 ▼13.60 | 41.94 ▼6.56 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 1.99 ▲0.01 | 34.90 ▲0.28 | 31.73 ▼4.49 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.31 ▲0.27 | 652.12 ▼9.64 | 53.21 ▼7.89 |
Media Library /wp-admin/upload.php | 1,392 ▲13 | 4.21 ▲0.03 | 92.33 ▼9.50 | 42.45 ▼0.08 |
QR Login Capability /wp-admin/users.php?page=qr-login-capability | 796 | 2.03 | 23.95 | 25.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/qr-user-login/qr-user-login.php+31
Methods with the same name as their class will not be constructors in a future version of PHP; QR_User_Login has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/users.php?page=qr-login-capability
- > Deprecated in wp-content/plugins/qr-user-login/qr-user-login.php+31
Methods with the same name as their class will not be constructors in a future version of PHP; QR_User_Login has a deprecated constructor
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
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qr-user-login/qr-user-login.php:46
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/qr-user-login/templates/edit_user_profile.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/qr-user-login/templates/qr-login-capability.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Donate link: Invalid URI ("")
qr-user-login/qr-user-login.php Passed 13 tests
The main PHP script in "QR User Login" version 1.0.0 is automatically included on every request by WordPress
47 characters long description:
Allow users to login using a link (or QR code).
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
No dangerous file extensions were detected119 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 27 | 31 | 119 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 1 | 7.69% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin