Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼141.03ms] Passed 4 tests
This is a short check of server-side resources used by GP social login
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 34.04 ▲12.77 |
Dashboard /wp-admin | 3.11 ▲0.05 | 44.70 ▲3.96 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 41.66 ▼6.73 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.03 | 90.16 ▼563.36 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 34.14 ▲2.03 |
GP Social Login /wp-admin/options-general.php?page=gp-social-login-admin | 3.02 | 33.77 |
Server storage [IO: ▲6.00MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 199 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by GP social login
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲88 | 15.85 ▲0.32 | 9.09 ▼0.48 | 45.72 ▼2.44 |
Dashboard /wp-admin | 2,978 ▲44 | 5.89 ▼0.20 | 136.88 ▼9.11 | 107.15 ▲0.42 |
Posts /wp-admin/edit.php | 2,741 ▲2 | 2.71 ▲0.00 | 61.56 ▼3.94 | 92.23 ▲2.76 |
Add New Post /wp-admin/post-new.php | 1,686 ▲14 | 18.69 ▼0.03 | 383.57 ▲17.13 | 105.43 ▼5.36 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.03 ▲0.01 | 167.71 ▲13.55 | 125.90 ▲10.60 |
GP Social Login /wp-admin/options-general.php?page=gp-social-login-admin | 1,082 | 2.08 | 63.56 | 89.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 122× 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-sociallogin/Google/Service/AppState.php:31
- > PHP Fatal error
Uncaught Error: Interface 'Facebook\\Http\\RequestBodyInterface' not found in wp-content/plugins/gp-sociallogin/Facebook/Http/RequestBodyMultipart.php:37
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/gp-sociallogin/Google/Service/Manager.php:32
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/gp-sociallogin/Google/Service/Fusiontables.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/gp-sociallogin/Google/Service/Webfonts.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/gp-sociallogin/Google/Service/IdentityToolkit.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/gp-sociallogin/Google/Service/Script.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/gp-sociallogin/Google/Service/DoubleClickBidManager.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/gp-sociallogin/Google/Service/YouTubeAnalytics.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/gp-sociallogin/Google/Service/Plus.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 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
4 plugin tags: social, google, facebook, login
gp-sociallogin/index.php 92% from 13 tests
The main PHP file in "GP social login" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("gp-sociallogin.php" instead of "index.php")
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
There were no executable files found in this plugin171,428 lines of code in 196 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 195 | 11,586 | 37,113 | 171,404 |
Markdown | 1 | 3 | 0 | 24 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.02 |
Average class complexity | 1.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 1.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 6 | |
Traits | 1 | |
Classes | 3,077 | |
▷ Abstract classes | 7 | 0.23% |
▷ Concrete classes | 3,070 | 99.77% |
▷ Final classes | 0 | 0.00% |
Methods | 24,150 | |
▷ Static methods | 30 | 0.12% |
▷ Public methods | 24,048 | 99.58% |
▷ Protected methods | 55 | 0.23% |
▷ Private methods | 47 | 0.19% |
Functions | 7 | |
▷ Named functions | 3 | 42.86% |
▷ Anonymous functions | 4 | 57.14% |
Constants | 288 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 288 | 100.00% |
▷ Public constants | 288 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin