84% firebase-authentication

Code Review | Firebase Authentication

WordPress plugin Firebase Authentication scored84%from 54 tests.

About plugin

  • Plugin page: firebase-authenti...
  • Plugin version: 1.6.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3
  • WordPress version: 6.3.1
  • First release: Nov 11, 2019
  • Latest release: Oct 16, 2023
  • Number of updates: 45
  • Update frequency: every 32.0 days
  • Top authors: cyberlord92 (68.89%)ashwinixecurify (31.11%)cyberorange (4.44%)

Code review

54 tests

User reviews

14 reviews

Install metrics

500+ active /18,352 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.85 ▲0.3936.86 ▼5.17
Dashboard /wp-admin3.70 ▲0.3546.13 ▼14.56
Posts /wp-admin/edit.php3.75 ▲0.4043.55 ▼6.00
Add New Post /wp-admin/post-new.php6.22 ▲0.3382.45 ▼7.04
Media Library /wp-admin/upload.php3.56 ▲0.3337.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6814.13 ▼0.151.89 ▲0.2642.41 ▲1.77
Dashboard /wp-admin2,213 ▲495.66 ▼0.0181.28 ▼30.3771.79 ▲34.38
Posts /wp-admin/edit.php2,112 ▲91.96 ▲0.0134.27 ▼7.4633.01 ▼4.77
Add New Post /wp-admin/post-new.php1,539 ▲1123.68 ▲0.51644.74 ▲9.8883.05 ▲21.06
Media Library /wp-admin/upload.php1,415 ▲124.22 ▲0.0296.10 ▼2.3278.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP222727932,135
SVG100685
CSS426607
JavaScript30143

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 code0.34
Average class complexity12.88
▷ Minimum class complexity1.00
▷ Maximum class complexity119.00
Average method complexity4.16
▷ Minimum method complexity1.00
▷ Maximum method complexity79.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods64
▷ Static methods1320.31%
▷ Public methods5789.06%
▷ Protected methods00.00%
▷ Private methods710.94%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
public/images/miniorange.png0.44KB0.35KB▼ 18.61%
public/images/mini.png3.42KB2.11KB▼ 38.38%
admin/images/buddypress.png11.36KB4.61KB▼ 59.39%
includes/images/logo.png2.84KB1.59KB▼ 44.03%
public/images/logo.png2.84KB1.59KB▼ 44.03%