Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.53ms] Passed 4 tests
This is a short check of server-side resources used by One Tap Google Sign in
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.69 ▼2.94 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.29 ▼1.50 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.64 ▲2.92 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 91.36 ▼2.48 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.34 ▼3.21 |
Server storage [IO: ▲2.83MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 388 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for One Tap Google Sign in
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,858 ▲123 | 13.84 ▼0.53 | 4.07 ▲2.17 | 40.28 ▼3.91 |
Dashboard /wp-admin | 2,221 ▲30 | 4.81 ▼1.08 | 106.21 ▲1.27 | 41.61 ▲1.31 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.03 ▼0.01 | 39.64 ▲4.04 | 36.64 ▲6.10 |
Add New Post /wp-admin/post-new.php | 1,543 ▲29 | 23.25 ▲5.76 | 574.64 ▼115.52 | 46.19 ▼9.92 |
Media Library /wp-admin/upload.php | 1,400 ▲15 | 4.17 ▼0.03 | 93.06 ▼19.10 | 40.53 ▼8.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% 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 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
- 180× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/one-tap-google-sign-in/includes/vendor/guzzlehttp/psr7/src/AppendStream.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Google\\Auth\\FetchAuthTokenInterface' not found in wp-content/plugins/one-tap-google-sign-in/includes/vendor/google/auth/src/SignBlobInterface.php:23
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/one-tap-google-sign-in/includes/vendor/psr/http-client/src/NetworkExceptionInterface.php:14
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/one-tap-google-sign-in/includes/vendor/monolog/monolog/src/Monolog/Formatter/WildfireFormatter.php:23
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\Handler' not found in wp-content/plugins/one-tap-google-sign-in/includes/vendor/monolog/monolog/src/Monolog/Handler/NullHandler.php:24
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\Handler' not found in wp-content/plugins/one-tap-google-sign-in/includes/vendor/monolog/monolog/src/Monolog/Handler/GroupHandler.php:22
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/one-tap-google-sign-in/includes/vendor/monolog/monolog/src/Monolog/Processor/GitProcessor.php:22
- > PHP Fatal error
Uncaught Exception: This library must be installed via composer or by downloading the full package. See the instructions at https://github.com/google/google-api-php-client#installation. in wp-content/plugins/one-tap-google-sign-in/includes/vendor/google/apiclient/src/Google/autoload.php:14
- > PHP Fatal error
Uncaught Error: Class 'Google\\Auth\\HttpHandler\\Guzzle6HttpHandler' not found in wp-content/plugins/one-tap-google-sign-in/includes/vendor/google/auth/src/HttpHandler/Guzzle7HttpHandler.php:19
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/one-tap-google-sign-in/includes/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: you only login once, login, yolo, one tap, social login...
one-tap-google-sign-in/one-tap-google-sign-in.php Passed 13 tests
The main file in "One Tap Google Sign in" v. 1.3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
36 characters long description:
One Tap Google Sign in for wordpress
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin47,839 lines of code in 365 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 319 | 8,219 | 26,136 | 41,564 |
Markdown | 28 | 1,574 | 0 | 4,792 |
JSON | 16 | 0 | 0 | 1,449 |
YAML | 1 | 2 | 0 | 25 |
make | 1 | 4 | 0 | 9 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Please reduce cyclomatic complexity of methods to less than 100 (currently 106)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 21.34 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 632.00 |
Average method complexity | 3.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 106.00 |
Code structure | ||
---|---|---|
Namespaces | 36 | |
Interfaces | 36 | |
Traits | 10 | |
Classes | 254 | |
▷ Abstract classes | 10 | 3.94% |
▷ Concrete classes | 244 | 96.06% |
▷ Final classes | 14 | 5.74% |
Methods | 2,414 | |
▷ Static methods | 170 | 7.04% |
▷ Public methods | 1,986 | 82.27% |
▷ Protected methods | 172 | 7.13% |
▷ Private methods | 256 | 10.60% |
Functions | 173 | |
▷ Named functions | 60 | 34.68% |
▷ Anonymous functions | 113 | 65.32% |
Constants | 361 | |
▷ Global constants | 29 | 8.03% |
▷ Class constants | 332 | 91.97% |
▷ Public constants | 312 | 93.98% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 compressed PNG files occupy 0.07MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/google.png | 0.52KB | 0.58KB | 0.00% |
assets/images/get-me-a-coffee.png | 74.38KB | 71.23KB | ▼ 4.24% |