Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.63MB] [CPU: ▼172.17ms] Passed 4 tests
This is a short check of server-side resources used by Unlock Digital (No Passwords)
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.74 | 43.70 ▲21.66 |
Dashboard /wp-admin | 3.69 ▲0.63 | 54.31 ▼1.69 |
Posts /wp-admin/edit.php | 3.74 ▲0.63 | 55.19 ▲6.62 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.62 | 104.24 ▼688.63 |
Media Library /wp-admin/upload.php | 3.63 ▲0.62 | 41.71 ▼4.96 |
Unlock Digital /wp-admin/options-general.php?page=qr-login | 3.54 | 34.55 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: 1 new table, 1 new option
New tables |
---|
wp_qrLogin |
New WordPress options |
---|
qrLogin_db_version |
Browser metrics Passed 4 tests
A check of browser resources used by Unlock Digital (No Passwords)
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,724 ▲87 | 16.35 ▲0.80 | 8.70 ▼2.79 | 48.47 ▲0.51 |
Dashboard /wp-admin | 2,972 ▲38 | 5.85 ▼0.36 | 150.63 ▼27.26 | 111.12 ▼3.09 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▲0.00 | 67.16 ▼3.32 | 90.41 ▼2.21 |
Add New Post /wp-admin/post-new.php | 1,618 ▼65 | 21.46 ▲2.83 | 324.06 ▼100.43 | 105.23 ▼8.51 |
Media Library /wp-admin/upload.php | 1,815 ▲8 | 5.03 ▼0.01 | 162.13 ▲14.92 | 114.70 ▼14.00 |
Unlock Digital /wp-admin/options-general.php?page=qr-login | 1,008 | 2.09 | 58.82 | 66.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure failed, leaving 1 table in the database
- wp_qrLogin
- Zombie WordPress options were found after uninstall: 1 option
- qrLogin_db_version
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-qr-code-login/qrLogin.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Requires at least: Invalid plugin version format
wp-qr-code-login/qrLogin.php 92% from 13 tests
The primary PHP file in "Unlock Digital (No Passwords)" version 1.4.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-qr-code-login.php" instead of "qrLogin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin3,044 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 785 | 644 | 2,989 |
JavaScript | 1 | 6 | 8 | 32 |
Pascal | 1 | 14 | 33 | 23 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 56.00 |
▷ Minimum class complexity | 56.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 4.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.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 | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 64.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 35.29% |
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
There are no PNG files in this plugin