Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼1.36MB] [CPU: ▼52.68ms] Passed 4 tests
Analyzing server-side resources used by Teddy ID
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.74 ▼0.76 | 12.88 ▼50.96 |
Dashboard /wp-admin | 2.78 ▼0.52 | 22.78 ▼33.63 |
Posts /wp-admin/edit.php | 2.79 ▼1.06 | 15.59 ▼34.00 |
Add New Post /wp-admin/post-new.php | 2.78 ▼3.11 | 17.69 ▼92.12 |
Media Library /wp-admin/upload.php | 2.78 ▼0.45 | 12.91 ▼21.36 |
TeddyID Integration /wp-admin/options-general.php?page=taplogin_setup | 2.79 | 15.95 |
Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 15 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_taplogin_users |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
taplogin_secret_key |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Teddy ID
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,875 ▲89 | 13.50 ▼0.69 | 8.24 ▲6.34 | 41.70 ▼5.61 |
Dashboard /wp-admin | 2,199 ▲25 | 5.59 ▼0.11 | 91.71 ▼2.53 | 42.28 ▲3.91 |
Posts /wp-admin/edit.php | 2,101 ▲4 | 2.01 ▼0.01 | 38.52 ▲3.00 | 34.98 ▲3.25 |
Add New Post /wp-admin/post-new.php | 1,529 ▼8 | 23.34 ▲4.97 | 669.58 ▲1.76 | 54.73 ▼15.64 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.21 ▲0.00 | 98.35 ▼10.85 | 44.49 ▼1.43 |
TeddyID Integration /wp-admin/options-general.php?page=taplogin_setup | 838 | 1.99 | 25.83 | 28.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/taplogin/taplogin.php+115
Undefined index: auth_token_id
- The uninstall procedure failed, leaving 1 table in the database
- wp_taplogin_users
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- taplogin_secret_key
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=taplogin_setup
- > Notice in wp-content/plugins/taplogin/taplogin.php+115
Undefined index: auth_token_id
- > GET request to /wp-admin/options-general.php?page=taplogin_setup
- > Notice in wp-content/plugins/taplogin/taplogin.php+117
Undefined index: teddyid_request_id
- > GET request to /wp-admin/options-general.php?page=taplogin_setup
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method TeddyID::add_admin_menu() should not be called statically
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
Almost there! Just fix the following items
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Stateless' not found in wp-content/plugins/taplogin/lib/MatrixCommunication.php:8
- > PHP Fatal error
Uncaught Error: Class 'Stateless' not found in wp-content/plugins/taplogin/lib/SecureRandom.php:7
- > PHP Fatal error
Uncaught Error: Class 'MatrixCommunication' not found in wp-content/plugins/taplogin/lib/TapAuthorization.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/taplogin/taplogin.php:463
- > PHP Fatal error
Uncaught Error: Class 'MatrixCommunication' not found in wp-content/plugins/taplogin/lib/AuthConfirmation.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stateless' not found in wp-content/plugins/taplogin/lib/TokenManager.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stateless' not found in wp-content/plugins/taplogin/lib/EnvConf.php:7
- > PHP Fatal error
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)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: A description for screenshot #2 is required in taplogin/assets to your readme.txt
- Donate link: Please fix this invalid url: "N/A"
taplogin/taplogin.php Passed 13 tests
The entry point to "Teddy ID" version 1.2.1 is a PHP file that has certain tags in its header comment area
102 characters long description:
Allow your visitors to log in by tapping just one button on their phones, without entering a password.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin756 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 87 | 111 | 618 |
PO File | 1 | 17 | 22 | 85 |
HTML | 1 | 2 | 0 | 53 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 7.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 3.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 29 | 96.67% |
▷ Public methods | 18 | 60.00% |
▷ Protected methods | 1 | 3.33% |
▷ Private methods | 11 | 36.67% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 11 | 100.00% |
▷ Public constants | 11 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin