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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼1.16ms] Passed 4 tests
An overview of server-side resources used by Sign In With Google
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.44 ▼6.77 |
Dashboard /wp-admin | 3.35 ▲0.04 | 58.81 ▲3.44 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 52.13 ▲3.72 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 88.38 ▼2.72 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.29 ▲1.43 |
Sign in with Google /wp-admin/options-general.php?page=siwg_settings | 3.26 | 35.10 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Sign In With Google
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲66 | 13.58 ▼0.79 | 1.91 ▲0.02 | 44.65 ▼1.81 |
Dashboard /wp-admin | 2,212 ▲24 | 5.88 ▲0.98 | 116.28 ▲12.24 | 42.70 ▲4.28 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.01 ▼0.01 | 32.96 ▼4.07 | 34.38 ▼1.11 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.15 ▲5.70 | 659.05 ▼28.95 | 55.79 ▼9.54 |
Media Library /wp-admin/upload.php | 1,394 ▲9 | 4.19 ▲0.02 | 99.35 ▼8.36 | 44.30 ▼1.63 |
Sign in with Google /wp-admin/options-general.php?page=siwg_settings | 965 | 2.06 | 27.46 | 32.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/sign-in-with-google/tests/bootstrap.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/sign-in-with-google/tests/test-googleauth.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/sign-in-with-google/tests/test-utility.php:11
- > 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
8 plugin tags: google apps, users, register, g suite, sign in...
sign-in-with-google/sign-in-with-google.php Passed 13 tests
The principal PHP file in "Sign In With Google" v. 1.8.0 is loaded by WordPress automatically on each request
106 characters long description:
Adds a "Sign in with Google" button to the login page, and allows users to sign up and login using Google.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,285 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 324 | 996 | 839 |
Bourne Shell | 1 | 21 | 11 | 123 |
SVG | 2 | 0 | 2 | 84 |
CSS | 2 | 7 | 1 | 65 |
YAML | 1 | 7 | 0 | 60 |
XML | 2 | 11 | 22 | 47 |
Markdown | 1 | 18 | 0 | 41 |
JSON | 1 | 0 | 0 | 21 |
JavaScript | 1 | 1 | 6 | 5 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 6.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 1.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 70 | |
▷ Static methods | 4 | 5.71% |
▷ Public methods | 49 | 70.00% |
▷ Protected methods | 6 | 8.57% |
▷ Private methods | 15 | 21.43% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.14MB with 0.09MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 88.11KB | 23.96KB | ▼ 72.80% |
assets/screenshot-1.png | 41.72KB | 10.90KB | ▼ 73.88% |
src/public/img/sign_in_pressed.png | 8.28KB | 3.49KB | ▼ 57.82% |
src/public/img/sign_in.png | 7.81KB | 3.34KB | ▼ 57.22% |