Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.39MB] [CPU: ▼141.48ms] Passed 4 tests
Server-side resources used by GP Google login
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.23 ▲0.51 | 41.05 ▲17.87 |
Dashboard /wp-admin | 3.45 ▲0.40 | 54.87 ▲3.62 |
Posts /wp-admin/edit.php | 3.51 ▲0.40 | 50.18 ▲3.50 |
Add New Post /wp-admin/post-new.php | 5.81 ▲0.38 | 95.35 ▼574.34 |
Media Library /wp-admin/upload.php | 3.40 ▲0.40 | 37.94 ▲1.30 |
GP Google Login /wp-admin/options-general.php?page=gp-google-login/index.php | 3.37 | 31.59 |
Server storage [IO: ▲5.74MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 138 new files
Database: no new tables, 1 new option
New WordPress options |
---|
Gp_google_login_options |
Browser metrics Passed 4 tests
GP Google login: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,711 ▲115 | 15.87 ▲0.39 | 8.46 ▼4.17 | 46.98 ▼6.95 |
Dashboard /wp-admin | 2,972 ▲41 | 5.88 ▼0.06 | 151.49 ▲0.66 | 112.86 ▼6.96 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.70 ▲0.00 | 72.90 ▲2.94 | 94.78 ▼3.71 |
Add New Post /wp-admin/post-new.php | 1,612 ▼71 | 18.91 ▲0.17 | 374.96 ▼19.23 | 115.89 ▲4.38 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.04 ▲0.02 | 163.77 ▲18.07 | 121.40 ▼1.46 |
GP Google Login /wp-admin/options-general.php?page=gp-google-login/index.php | 1,050 | 2.08 | 58.65 | 84.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 82× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/gp-google-login/libraries/Google/Service/Urlshortener.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/gp-google-login/libraries/Google/Service/Books.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/gp-google-login/libraries/Google/Service/Compute.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/gp-google-login/libraries/Google/Service/Groupssettings.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/gp-google-login/libraries/Google/Service/Cloudlatencytest.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/gp-google-login/libraries/Google/Service/AdSenseHost.php:32
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/gp-google-login/libraries/Google/Service/Datastore.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/gp-google-login/libraries/Google/Service/Playmoviespartner.php:32
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/gp-google-login/libraries/Google/Service/Coordinate.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/gp-google-login/libraries/Google/Service/GamesConfiguration.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 23 tag instead of maximum 10
gp-google-login/index.php 92% from 13 tests
This is the main PHP file of "GP Google login" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("gp-google-login.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin166,933 lines of code in 134 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 133 | 10,688 | 32,128 | 166,929 |
CSS | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.01 |
Average class complexity | 1.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 1.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 3,009 | |
▷ Abstract classes | 6 | 0.20% |
▷ Concrete classes | 3,003 | 99.80% |
▷ Final classes | 0 | 0.00% |
Methods | 23,634 | |
▷ Static methods | 14 | 0.06% |
▷ Public methods | 23,559 | 99.68% |
▷ Protected methods | 30 | 0.13% |
▷ Private methods | 45 | 0.19% |
Functions | 18 | |
▷ Named functions | 15 | 83.33% |
▷ Anonymous functions | 3 | 16.67% |
Constants | 260 | |
▷ Global constants | 3 | 1.15% |
▷ Class constants | 257 | 98.85% |
▷ Public constants | 257 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/screenshot-1.png | 32.49KB | 11.78KB | ▼ 63.75% |
images/google-login-button.png | 4.40KB | 2.30KB | ▼ 47.74% |