84% rondeo-sign-in-with-google-button

Code Review | Rondeo - Sign In With Google Button

WordPress plugin Rondeo - Sign In With Google Button scored84%from 54 tests.

About plugin

  • Plugin page: rondeo-sign-in-wi...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Jul 22, 2022
  • Latest release: Jul 22, 2022
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: nobrainer67 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,140 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.83MB] [CPU: ▼4.29ms] Passed 4 tests

Analyzing server-side resources used by Rondeo - Sign In With Google Button
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.33 ▲0.8744.40 ▲1.74
Dashboard /wp-admin4.18 ▲0.8355.68 ▼9.55
Posts /wp-admin/edit.php4.23 ▲0.8750.51 ▲5.22
Add New Post /wp-admin/post-new.php6.70 ▲0.8191.75 ▼10.31
Media Library /wp-admin/upload.php4.04 ▲0.8141.11 ▲0.97

Server storage [IO: ▲4.35MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 800 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Rondeo - Sign In With Google Button: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲5914.71 ▲0.311.63 ▼0.1441.01 ▼0.81
Dashboard /wp-admin2,208 ▲285.55 ▼0.1083.39 ▼3.8140.68 ▲3.29
Posts /wp-admin/edit.php2,116 ▲132.01 ▼0.0133.30 ▼3.8135.10 ▲0.46
Add New Post /wp-admin/post-new.php1,539 ▲1323.25 ▲0.08633.27 ▼1.7356.06 ▲2.74
Media Library /wp-admin/upload.php1,416 ▲254.19 ▼0.0395.50 ▼7.3043.31 ▲1.59

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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
Please fix the following items
  • 389× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Handler\\CurlFactoryInterface' not found in wp-content/plugins/rondeo-sign-in-with-google-button/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Google\\Collection' not found in wp-content/plugins/rondeo-sign-in-with-google-button/vendor/google/apiclient-services/src/Drive/FileList.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/rondeo-sign-in-with-google-button/vendor/guzzlehttp/promises/src/Promise.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Google\\Collection' not found in wp-content/plugins/rondeo-sign-in-with-google-button/vendor/google/apiclient-services/src/Drive/DriveFile.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/rondeo-sign-in-with-google-button/vendor/guzzlehttp/psr7/src/DroppingStream.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Google\\Auth\\CredentialsLoader' not found in wp-content/plugins/rondeo-sign-in-with-google-button/vendor/google/auth/src/Credentials/ServiceAccountJwtAccessCredentials.php:36
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib3\\Crypt\\Common\\Formats\\Keys\\PKCS8' not found in wp-content/plugins/rondeo-sign-in-with-google-button/vendor/phpseclib/phpseclib/phpseclib/Crypt/DH/Formats/Keys/PKCS8.php:37
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\BaseCurves\\Prime' not found in wp-content/plugins/rondeo-sign-in-with-google-button/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/secp128r1.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib3\\Crypt\\Common\\Formats\\Keys\\PKCS1' not found in wp-content/plugins/rondeo-sign-in-with-google-button/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Formats/Keys/PKCS1.php:48
    • > PHP Fatal error
      Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/rondeo-sign-in-with-google-button/vendor/monolog/monolog/src/Monolog/Processor/UidProcessor.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: sign in, google, google sso

rondeo-sign-in-with-google-button/plugin.php 92% from 13 tests

The primary PHP file in "Rondeo - Sign In With Google Button" version 1.0.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("rondeo-sign-in-with-google-button.php" instead of "plugin.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected86,050 lines of code in 768 files:
LanguageFilesBlank linesComment linesLines of code
PHP70912,02644,69978,678
Markdown271,65904,927
JSON21002,218
YAML7255186
XML10019
Dockerfile18010
make1409
Bourne Shell1203

PHP code 50% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
The following items need your attention
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 179)
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity12.85
▷ Minimum class complexity1.00
▷ Maximum class complexity662.00
Average method complexity3.05
▷ Minimum method complexity1.00
▷ Maximum method complexity179.00
Code structure
Namespaces78
Interfaces38
Traits12
Classes640
▷ Abstract classes21333.28%
▷ Concrete classes42766.72%
▷ Final classes419.60%
Methods3,974
▷ Static methods69117.39%
▷ Public methods3,08977.73%
▷ Protected methods3859.69%
▷ Private methods50012.58%
Functions221
▷ Named functions8136.65%
▷ Anonymous functions14063.35%
Constants643
▷ Global constants9114.15%
▷ Class constants55285.85%
▷ Public constants54498.55%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin