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.01MB] [CPU: ▼8.03ms] Passed 4 tests
An overview of server-side resources used by UsersWP - Social Login
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 35.59 ▼2.58 |
Dashboard /wp-admin | 3.31 ▼0.04 | 43.66 ▼18.37 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.56 ▼1.54 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.47 ▼9.63 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.13 ▲1.18 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 124 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for UsersWP - Social Login
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.28 ▼0.27 | 1.78 ▲0.16 | 40.23 ▲1.90 |
Dashboard /wp-admin | 2,195 ▲14 | 5.63 ▼0.09 | 88.87 ▼8.66 | 41.10 ▼2.83 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.08 | 39.85 ▲4.46 | 36.11 ▼1.43 |
Add New Post /wp-admin/post-new.php | 1,535 ▼4 | 18.10 ▼4.77 | 589.44 ▼69.39 | 65.48 ▲9.01 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.17 ▼0.20 | 94.86 ▼5.56 | 43.20 ▼1.57 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 87× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Hybridauth\\Adapter\\OpenID' not found in wp-content/plugins/userswp-social-login/vendor/hybridauth/Provider/AOLOpenID.php:15
- > PHP Fatal error
Uncaught Error: Class 'Hybridauth\\Exception\\RuntimeException' not found in wp-content/plugins/userswp-social-login/vendor/hybridauth/Exception/BadMethodCallException.php:15
- > PHP Fatal error
Uncaught Error: Class 'Hybridauth\\Adapter\\OAuth2' not found in wp-content/plugins/userswp-social-login/vendor/hybridauth/Provider/Slack.php:18
- > PHP Fatal error
Uncaught Error: Class 'Hybridauth\\Adapter\\OAuth2' not found in wp-content/plugins/userswp-social-login/vendor/hybridauth/Provider/Dropbox.php:18
- > PHP Fatal error
Uncaught Error: Class 'Hybridauth\\Exception\\InvalidArgumentException' not found in wp-content/plugins/userswp-social-login/vendor/hybridauth/Exception/InvalidOauthTokenException.php:13
- > PHP Fatal error
Uncaught Error: Class 'Hybridauth\\Adapter\\OpenID' not found in wp-content/plugins/userswp-social-login/vendor/hybridauth/Provider/PaypalOpenID.php:16
- > PHP Fatal error
Uncaught Error: Class 'Hybridauth\\Adapter\\OAuth1' not found in wp-content/plugins/userswp-social-login/vendor/hybridauth/Provider/Tumblr.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function uwp_social_get_provider_name_by_id() in wp-content/plugins/userswp-social-login/templates/linking.php:2
- > PHP Fatal error
Uncaught Error: Class 'Hybridauth\\Adapter\\OAuth2' not found in wp-content/plugins/userswp-social-login/vendor/hybridauth/Provider/Paypal.php:18
- > PHP Fatal error
Uncaught Error: Class 'Hybridauth\\Adapter\\OAuth2' not found in wp-content/plugins/userswp-social-login/vendor/hybridauth/Provider/Pinterest.php:18
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: You are using too many tags: 13 tag instead of maximum 10
userswp-social-login/uwp-social.php 85% from 13 tests
The main PHP script in "UsersWP - Social Login" version 1.3.25 is automatically included on every request by WordPress
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("userswp-social-login.php" instead of "uwp-social.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
Good job! No executable or dangerous file extensions detected8,916 lines of code in 115 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 112 | 2,444 | 5,073 | 8,529 |
PO File | 1 | 143 | 178 | 376 |
Markdown | 1 | 4 | 0 | 10 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 8.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 189.00 |
Average method complexity | 3.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 5 | |
Traits | 1 | |
Classes | 94 | |
▷ Abstract classes | 5 | 5.32% |
▷ Concrete classes | 89 | 94.68% |
▷ Final classes | 5 | 5.62% |
Methods | 398 | |
▷ Static methods | 17 | 4.27% |
▷ Public methods | 273 | 68.59% |
▷ Protected methods | 116 | 29.15% |
▷ Private methods | 9 | 2.26% |
Functions | 41 | |
▷ Named functions | 38 | 92.68% |
▷ Anonymous functions | 3 | 7.32% |
Constants | 10 | |
▷ Global constants | 4 | 40.00% |
▷ Class constants | 6 | 60.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/btn_google_signin_dark_normal_web.png | 3.89KB | 2.09KB | ▼ 46.20% |
assets/images/alert.png | 0.64KB | 0.72KB | 0.00% |