Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.35MB] [CPU: ▼8.19ms] Passed 4 tests
This is a short check of server-side resources used by Firebase Authentication
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.39 | 36.86 ▼5.17 |
Dashboard /wp-admin | 3.70 ▲0.35 | 46.13 ▼14.56 |
Posts /wp-admin/edit.php | 3.75 ▲0.40 | 43.55 ▼6.00 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.33 | 82.45 ▼7.04 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 37.77 ▲2.34 |
Server storage [IO: ▲1.42MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 47 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
mo_fb_host_name |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
mo_firebase_authentication_current_plugin_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Firebase Authentication
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲68 | 14.13 ▼0.15 | 1.89 ▲0.26 | 42.41 ▲1.77 |
Dashboard /wp-admin | 2,213 ▲49 | 5.66 ▼0.01 | 81.28 ▼30.37 | 71.79 ▲34.38 |
Posts /wp-admin/edit.php | 2,112 ▲9 | 1.96 ▲0.01 | 34.27 ▼7.46 | 33.01 ▼4.77 |
Add New Post /wp-admin/post-new.php | 1,539 ▲11 | 23.68 ▲0.51 | 644.74 ▲9.88 | 83.05 ▲21.06 |
Media Library /wp-admin/upload.php | 1,415 ▲12 | 4.22 ▲0.02 | 96.10 ▼2.32 | 78.75 ▲35.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/firebase-authentication/admin/partials/class-mo-firebase-authentication-admin-display.php:208
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/firebase-authentication/class-mo-firebase-config.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/firebase-authentication/admin/partials/class-mo-firebase-authentication-admin-display.php:208
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
10 plugin tags: wordpress firebase, authentication, firebase woocommerce integration, firebase, login...
firebase-authentication/firebase-authentication.php Passed 13 tests
This is the main PHP file of "Firebase Authentication" version 1.6.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
76 characters long description:
This plugin allows login into WordPress using Firebase as Identity provider.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin3,430 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 272 | 793 | 2,135 |
SVG | 1 | 0 | 0 | 685 |
CSS | 4 | 2 | 6 | 607 |
JavaScript | 3 | 0 | 14 | 3 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 12.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 119.00 |
Average method complexity | 4.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 79.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 64 | |
▷ Static methods | 13 | 20.31% |
▷ Public methods | 57 | 89.06% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 10.94% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
10 PNG files occupy 0.15MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/miniorange.png | 0.44KB | 0.35KB | ▼ 18.61% |
public/images/mini.png | 3.42KB | 2.11KB | ▼ 38.38% |
admin/images/buddypress.png | 11.36KB | 4.61KB | ▼ 59.39% |
includes/images/logo.png | 2.84KB | 1.59KB | ▼ 44.03% |
public/images/logo.png | 2.84KB | 1.59KB | ▼ 44.03% |