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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▲121.43ms] Passed 4 tests
Server-side resources used by Socialauth-WordPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.01 | 25.10 ▲0.16 |
Dashboard /wp-admin | 3.08 ▲0.02 | 384.11 ▲346.44 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 380.70 ▲348.98 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.00 | 459.65 ▼209.86 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 394.57 ▲371.98 |
SocialAuth-WordPress /wp-admin/options-general.php?page=socialauth-wp-settings | 3.01 | 358.19 |
Server storage [IO: ▲0.78MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 88 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Socialauth-WordPress: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,803 ▲177 | 15.85 ▼0.18 | 8.62 ▲2.59 | 77.20 ▼2.25 |
Dashboard /wp-admin | 2,953 ▲58 | 6.06 ▼0.05 | 122.32 ▼14.10 | 203.54 ▲26.59 |
Posts /wp-admin/edit.php | 2,769 ▲29 | 3.14 ▼0.10 | 66.08 ▼14.44 | 143.33 ▼2.22 |
Add New Post /wp-admin/post-new.php | 3,726 ▼191 | 18.06 ▼0.79 | 445.10 ▲13.26 | 179.21 ▲21.14 |
Media Library /wp-admin/upload.php | 1,778 ▲26 | 5.54 ▼0.02 | 125.45 ▼19.34 | 207.51 ▲20.75 |
SocialAuth-WordPress /wp-admin/options-general.php?page=socialauth-wp-settings | 2,322 | 3.19 | 79.59 | 155.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/socialauth-wp/connect.php
- > /wp-content/plugins/socialauth-wp/hybridauth/install.php
- > /wp-content/plugins/socialauth-wp/hybridauth/index.php
- > /wp-content/plugins/socialauth-wp/verifyEmail.php
- 23× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: provider in wp-content/plugins/socialauth-wp/connect.php on line 221
- > PHP Fatal error
Uncaught Error: Class 'Hybrid_Provider_Model_OAuth1' not found in wp-content/plugins/socialauth-wp/hybridauth/Hybrid/Providers/MySpace.php:13
- > PHP Fatal error
Uncaught Error: Class 'Hybrid_Provider_Model_OAuth2' not found in wp-content/plugins/socialauth-wp/hybridauth/Hybrid/Providers/Google.php:13
- > PHP Fatal error
Uncaught Error: Class 'Hybrid_Provider_Model' not found in wp-content/plugins/socialauth-wp/hybridauth/Hybrid/Provider_Model_OAuth2.php:20
- > PHP Fatal error
Uncaught Error: Class 'Hybrid_Provider_Model_OAuth1' not found in wp-content/plugins/socialauth-wp/hybridauth/Hybrid/Providers/Twitter.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/socialauth-wp/ui.php:45
- > PHP Fatal error
Uncaught Error: Class 'Hybrid_Provider_Model' not found in wp-content/plugins/socialauth-wp/hybridauth/Hybrid/Provider_Model_OAuth1.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/socialauth-wp/feature-friends.php:156
- > PHP Fatal error
Uncaught Error: Class 'Hybrid_Provider_Model_OpenID' not found in wp-content/plugins/socialauth-wp/hybridauth/Hybrid/Providers/AOL.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/socialauth-wp/common.php:6
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (Login screen with enabled providers), #2 (Twitter authentication screen), #3 (Twitter redirecting back to your application), #4 (Profile of the authenticated user showing user data from Twitter)
socialauth-wp/social-auth-wp.php 85% from 13 tests
The main file in "Socialauth-WordPress" v. 3.11.13 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 569 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("socialauth-wp.php" instead of "social-auth-wp.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Please make sure to remedy the following
- Do not include executable or dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/socialauth-wp/hybridauth/Hybrid/thirdparty/Facebook/fb_ca_chain_bundle.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 45 | 1,587 | 3,820 | 6,444 |
JavaScript | 3 | 5 | 0 | 75 |
CSS | 2 | 5 | 0 | 33 |
HTML | 3 | 2 | 3 | 28 |
XML | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
A brief analysis 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.42 |
Average class complexity | 23.02 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 162.00 |
Average method complexity | 3.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 44 | |
▷ Abstract classes | 4 | 9.09% |
▷ Concrete classes | 40 | 90.91% |
▷ Final classes | 0 | 0.00% |
Methods | 375 | |
▷ Static methods | 46 | 12.27% |
▷ Public methods | 302 | 80.53% |
▷ Protected methods | 60 | 16.00% |
▷ Private methods | 13 | 3.47% |
Functions | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 28 | |
▷ Global constants | 2 | 7.14% |
▷ Class constants | 26 | 92.86% |
▷ Public constants | 26 | 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
28 PNG files occupy 0.13MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/twitter_32.png | 1.06KB | 0.93KB | ▼ 12.76% |
screenshot-2.png | 50.37KB | 19.06KB | ▼ 62.16% |
assets/images/windows_32.png | 1.63KB | 1.48KB | ▼ 8.87% |
assets/images/facebook_small.png | 0.63KB | 0.58KB | ▼ 7.76% |
assets/images/wordpress_16.png | 0.76KB | 0.59KB | ▼ 23.24% |