Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.23MB] [CPU: ▼16.59ms] Passed 4 tests
An overview of server-side resources used by Firebase OTP Authentication
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▼0.63 | 15.72 ▼27.57 |
Dashboard /wp-admin | 3.37 ▲0.02 | 46.30 ▼23.40 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 50.14 ▼1.51 |
Add New Post /wp-admin/post-new.php | 5.52 ▼0.37 | 83.62 ▼13.88 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.00 ▲0.73 |
Firebase authentication /wp-admin/admin.php?page=firebase-auth | 3.42 | 34.62 |
Users /wp-admin/admin.php?page=firebase-auth-users | 3.27 | 38.05 |
Server storage [IO: ▲1.59MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options |
---|
fa_style_config |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Firebase OTP Authentication
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,979 ▲218 | 14.82 ▲0.46 | 10.40 ▲8.51 | 40.05 ▼2.86 |
Dashboard /wp-admin | 2,236 ▲61 | 5.50 ▼0.17 | 94.42 ▼12.19 | 90.38 ▲49.79 |
Posts /wp-admin/edit.php | 2,147 ▲44 | 2.64 ▲0.68 | 44.59 ▲8.48 | 36.20 ▼1.28 |
Add New Post /wp-admin/post-new.php | 1,563 ▲28 | 23.83 ▲5.30 | 658.84 ▲1.03 | 148.92 ▲79.23 |
Media Library /wp-admin/upload.php | 1,441 ▲41 | 5.13 ▲0.93 | 105.30 ▼0.87 | 70.76 ▲30.55 |
Firebase authentication /wp-admin/admin.php?page=firebase-auth | 988 | 2.54 | 32.43 | 46.50 |
Users /wp-admin/admin.php?page=firebase-auth-users | 889 | 2.71 | 30.60 | 28.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/authentication-via-otp-using-firebase/admin/query.php+8
Undefined index: formtype
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- fa_style_config
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=firebase-auth
- > Notice in wp-content/plugins/authentication-via-otp-using-firebase/template/admin.php+20
Undefined index: tab
- 24 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=firebase-auth-users
- > Notice in wp-content/plugins/authentication-via-otp-using-firebase/inc/enqueue.php+93
Trying to access array offset on value of type bool
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
Almost there! Just fix the following items
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/authentication-via-otp-using-firebase/inc/token.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/authentication-via-otp-using-firebase/template/admin_users.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/authentication-via-otp-using-firebase/inc/ajax.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/authentication-via-otp-using-firebase/template/phone.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/authentication-via-otp-using-firebase/template/admin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/authentication-via-otp-using-firebase/inc/activation.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/authentication-via-otp-using-firebase/inc/hooks.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/authentication-via-otp-using-firebase/admin/admin.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/authentication-via-otp-using-firebase/inc/enqueue.php:7
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=firebase-auth
- > Console-api (severe) in wp-content/plugins/authentication-via-otp-using-firebase/assets/js/firebase-database.js?ver=1.0+0:11620
[2023-10-19T20:46:36.288Z] @firebase/database:" "FIREBASE FATAL ERROR: Cannot parse Firebase url. Please use https://\u003CYOUR FIREBASE>.firebaseio.com
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=firebase-auth-users
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught Error: FIREBASE FATAL ERROR: Cannot parse Firebase url. Please use https://.firebaseio.com
- > GET request to /wp-admin/admin.php?page=firebase-auth-users
- > Console-api (severe) in wp-content/plugins/authentication-via-otp-using-firebase/assets/js/firebase-database.js?ver=1.0+0:11620
[2023-10-19T20:46:38.011Z] @firebase/database:" "FIREBASE FATAL ERROR: Cannot parse Firebase url. Please use https://\u003CYOUR FIREBASE>.firebaseio.com
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add descriptions for these screenshots #4, #5 in authentication-via-otp-using-firebase/assets to your readme.txt
authentication-via-otp-using-firebase/authentication-via-otp-using-Firebase.php 77% from 13 tests
The principal PHP file in "Firebase OTP Authentication" v. 1.0.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Text Domain: Please use dashes and lowercase characters for text domains
- Main file name: It is recommended to name the main PHP file as the plugin slug ("authentication-via-otp-using-firebase.php" instead of "authentication-via-otp-using-Firebase.php")
- Requires PHP: The required version number must match the one declared in readme.txt ("5.4" instead of "5.6.20")
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
Good job! No executable or dangerous file extensions detected2,276 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 28 | 320 | 1,002 |
PHP | 11 | 64 | 66 | 853 |
CSS | 5 | 70 | 16 | 421 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.80 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 15 | 93.75% |
▷ Anonymous functions | 1 | 6.25% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
5 PNG files occupy 0.18MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/firebase.png | 1.39KB | 0.85KB | ▼ 39.15% |
assets/screenshot-3.png | 27.76KB | 14.12KB | ▼ 49.15% |
assets/screenshot-1.png | 29.08KB | 12.85KB | ▼ 55.81% |
assets/screenshot-2.png | 53.44KB | 22.16KB | ▼ 58.54% |
assets/css/img/flags.png | 67.65KB | 23.60KB | ▼ 65.12% |