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.68MB] [CPU: ▼7.28ms] Passed 4 tests
An overview of server-side resources used by Fireauth - Enable Firebase Authentication
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.14 ▲0.68 | 40.15 ▼2.37 |
Dashboard /wp-admin | 3.99 ▲0.69 | 48.28 ▼10.87 |
Posts /wp-admin/edit.php | 4.04 ▲0.68 | 50.22 ▲1.73 |
Add New Post /wp-admin/post-new.php | 6.54 ▲0.65 | 86.65 ▼17.60 |
Media Library /wp-admin/upload.php | 3.91 ▲0.68 | 37.59 ▲3.07 |
Server storage [IO: ▲22.28MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2,812 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_fireauth_login_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Fireauth - Enable Firebase Authentication
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,932 ▲197 | 13.60 ▼0.71 | 7.78 ▲5.96 | 42.68 ▼11.17 |
Dashboard /wp-admin | 2,233 ▲48 | 5.86 ▼0.02 | 109.03 ▲1.66 | 39.48 ▼2.46 |
Posts /wp-admin/edit.php | 2,113 ▲42 | 2.04 ▲0.01 | 39.51 ▲3.82 | 35.60 ▲0.23 |
Add New Post /wp-admin/post-new.php | 1,535 ▲21 | 23.53 ▲6.11 | 632.67 ▼50.05 | 50.72 ▼8.80 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.23 ▲0.04 | 98.77 ▼45.57 | 42.21 ▼10.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- widget_fireauth_login_widget
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/fireauth/templates/api/auth.php
- > /wp-content/plugins/fireauth/vendor/mustache/mustache/bin/build_bootstrap.php
- > /wp-content/plugins/fireauth/vendor/riverline/multipart-parser/tests/bootstrap.php
- 667× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/fireauth/vendor/kreait/firebase-php/src/Firebase/DynamicLink/ShortenLongDynamicLink/ApiRequest.php:14
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/fireauth/vendor/lcobucci/jwt/test/unit/Signer/Ecdsa/Sha256Test.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Kreait\\Firebase\\Value' not found in wp-content/plugins/fireauth/vendor/kreait/firebase-php/src/Firebase/Value/PhoneNumber.php:13
- > PHP Fatal error
Uncaught Error: Class 'Riverline\\MultiPartParser\\Converters\\Commun' not found in wp-content/plugins/fireauth/vendor/riverline/multipart-parser/tests/Riverline/MultiPartParser/Converters/HttpFoundationTest.php:20
- > PHP Warning
include(): Failed opening 'vendor/autoload.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/fireauth/vendor/google/crc32/tests/GoogleTest.php on line 18
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Event\\SubscriberInterface' not found in wp-content/plugins/fireauth/vendor/google/auth/src/Subscriber/ScopedAccessTokenSubscriber.php:38
- > PHP Fatal error
Trait 'Google\\Cloud\\Core\\ArrayTrait' not found in wp-content/plugins/fireauth/vendor/google/cloud-core/src/GrpcTrait.php on line 29
- > PHP Fatal error
Uncaught Error: Interface 'Kreait\\Firebase\\Exception\\MessagingException' not found in wp-content/plugins/fireauth/vendor/kreait/firebase-php/src/Firebase/Exception/Messaging/InvalidArgument.php:12
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/fireauth/vendor/lcobucci/jwt/test/unit/Signer/KeyTest.php:16
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Psr7\\Request' not found in wp-content/plugins/fireauth/vendor/guzzlehttp/psr7/src/ServerRequest.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: social, auth, firebase
fireauth/fireauth.php Passed 13 tests
The principal PHP file in "Fireauth - Enable Firebase Authentication" v. 1.3.3.1 is loaded by WordPress automatically on each request
31 characters long description:
Plugin Firebase Authentication.
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
These items require your attention
- Do not distribute dangerous files with your plugin
- .ms - Maxwell Script in Maxwell Render
- ☣ wp-content/plugins/fireauth/vendor/mustache/mustache/test/fixtures/templates/alpha.ms
- ☣ wp-content/plugins/fireauth/vendor/mustache/mustache/test/fixtures/templates/beta.ms
- .ms - Maxwell Script in Maxwell Render
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2,359 | 18,149 | 57,389 | 605,633 |
JSON | 57 | 13 | 0 | 13,639 |
Markdown | 69 | 2,525 | 0 | 6,683 |
YAML | 15 | 52 | 3 | 403 |
XSLT | 2 | 23 | 20 | 209 |
Mustache | 37 | 1 | 0 | 163 |
XML | 8 | 10 | 0 | 159 |
C | 2 | 35 | 70 | 132 |
CSS | 2 | 17 | 0 | 116 |
make | 4 | 26 | 16 | 76 |
reStructuredText | 1 | 35 | 29 | 59 |
Ant | 1 | 12 | 0 | 55 |
SVG | 2 | 0 | 2 | 55 |
m4 | 1 | 11 | 14 | 38 |
C/C++ Header | 1 | 10 | 18 | 25 |
JavaScript | 4 | 10 | 3 | 20 |
Bourne Shell | 1 | 4 | 16 | 14 |
Dockerfile | 1 | 8 | 0 | 10 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 6.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 367.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 146 | |
Interfaces | 103 | |
Traits | 64 | |
Classes | 915 | |
▷ Abstract classes | 34 | 3.72% |
▷ Concrete classes | 881 | 96.28% |
▷ Final classes | 165 | 18.73% |
Methods | 5,594 | |
▷ Static methods | 454 | 8.12% |
▷ Public methods | 4,495 | 80.35% |
▷ Protected methods | 443 | 7.92% |
▷ Private methods | 656 | 11.73% |
Functions | 341 | |
▷ Named functions | 69 | 20.23% |
▷ Anonymous functions | 272 | 79.77% |
Constants | 585 | |
▷ Global constants | 5 | 0.85% |
▷ Class constants | 580 | 99.15% |
▷ Public constants | 561 | 96.72% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.67MB with 0.39MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 35.17KB | 14.76KB | ▼ 58.03% |
assets/icon-128x128.png | 12.30KB | 5.80KB | ▼ 52.86% |
assets/screenshot-1.png | 547.96KB | 250.13KB | ▼ 54.35% |
assets/imgs/fireauth.png | 93.38KB | 33.13KB | ▼ 64.52% |