Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.43MB] [CPU: ▲1.76ms] Passed 4 tests
Analyzing server-side resources used by Log in with Google
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.44 | 46.61 ▲4.95 |
Dashboard /wp-admin | 3.74 ▲0.44 | 60.55 ▲7.33 |
Posts /wp-admin/edit.php | 3.79 ▲0.43 | 53.82 ▲2.84 |
Add New Post /wp-admin/post-new.php | 6.32 ▲0.43 | 88.55 ▼8.07 |
Media Library /wp-admin/upload.php | 3.66 ▲0.43 | 45.09 ▲9.37 |
Login with Google /wp-admin/options-general.php?page=login-with-google | 3.56 | 35.84 |
Server storage [IO: ▲0.96MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
It is recommended to fix the following issues
- Illegal file modification found: 1 file (4.00KB) outside of "wp-content/plugins/login-with-google/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 82 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Log in with Google
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,861 ▲100 | 13.23 ▼1.14 | 4.74 ▲2.01 | 27.99 ▼12.18 |
Dashboard /wp-admin | 2,222 ▲22 | 5.82 ▼0.00 | 96.27 ▼4.39 | 38.04 ▼4.25 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.02 ▼0.03 | 34.43 ▼1.49 | 32.93 ▼1.94 |
Add New Post /wp-admin/post-new.php | 6,367 ▲4,841 | 27.70 ▲10.00 | 916.20 ▲309.36 | 40.96 ▼9.10 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.23 ▲0.06 | 97.06 ▼1.23 | 44.75 ▼0.43 |
Login with Google /wp-admin/options-general.php?page=login-with-google | 886 | 1.69 | 23.83 | 26.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▼0.05MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
- 21× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/login-with-google/vendor/psr/container/src/NotFoundExceptionInterface.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\\ContainerInterface' not found in wp-content/plugins/login-with-google/vendor/pimple/pimple/src/Pimple/Psr11/Container.php:37
- > PHP Fatal error
Uncaught Error: Interface 'RtCamp\\GoogleLogin\\Interfaces\\Module' not found in wp-content/plugins/login-with-google/src/Modules/Settings.php:29
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\otFoundExceptionInterface' not found in wp-content/plugins/login-with-google/vendor/pimple/pimple/src/Pimple/Exception/InvalidServiceIdentifierException.php:36
- > PHP Fatal error
Uncaught Error: Interface 'RtCamp\\GoogleLogin\\Interfaces\\Module' not found in wp-content/plugins/login-with-google/src/Modules/Shortcode.php:23
- > PHP Fatal error
Uncaught Error: Interface 'Pimple\\ServiceProviderInterface' not found in wp-content/plugins/login-with-google/vendor/pimple/pimple/src/Pimple/Tests/Fixtures/PimpleServiceProvider.php:32
- > PHP Fatal error
Uncaught Error: Interface 'RtCamp\\GoogleLogin\\Interfaces\\Module' not found in wp-content/plugins/login-with-google/src/Modules/OneTapLogin.php:29
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/login-with-google/vendor/pimple/pimple/src/Pimple/Tests/PimpleTest.php:35
- > PHP Fatal error
Uncaught Error: Interface 'RtCamp\\GoogleLogin\\Interfaces\\Module' not found in wp-content/plugins/login-with-google/src/Modules/Block.php:28
- > PHP Fatal error
Uncaught Error: Interface 'RtCamp\\GoogleLogin\\Interfaces\\Module' not found in wp-content/plugins/login-with-google/src/Modules/Assets.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
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
8 plugin tags: oauth, sign-in, single sign-on, authentication, sign in...
login-with-google/login-with-google.php Passed 13 tests
"Log in with Google" version 1.3.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
41 characters long description:
Allow users to login/register via Google.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin20,303 lines of code in 70 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 7 | 0 | 0 | 17,101 |
PHP | 50 | 780 | 2,321 | 2,835 |
JavaScript | 7 | 24 | 46 | 118 |
reStructuredText | 1 | 96 | 139 | 97 |
XML | 3 | 12 | 5 | 78 |
Sass | 1 | 14 | 0 | 73 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 7.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 6 | |
Traits | 0 | |
Classes | 33 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 33 | 100.00% |
▷ Final classes | 2 | 6.06% |
Methods | 222 | |
▷ Static methods | 22 | 9.91% |
▷ Public methods | 207 | 93.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 15 | 6.76% |
Functions | 72 | |
▷ Named functions | 4 | 5.56% |
▷ Anonymous functions | 68 | 94.44% |
Constants | 8 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 8 | 100.00% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/build/images/google_light.png | 1.73KB | 1.70KB | ▼ 1.92% |
assets/src/images/google_light.png | 1.73KB | 1.70KB | ▼ 1.92% |