Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.51MB] [CPU: ▲156.35ms] 75% from 4 tests
An overview of server-side resources used by Wp Social Login and Register Social Counter
Please fix the following
- CPU: Total CPU usage must kept under 500.00ms (currently 508.82ms on /wp-admin/admin.php?page=wp-social_get_help)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.05 ▲1.59 | 53.52 ▲12.08 |
Dashboard /wp-admin | 4.85 ▲1.50 | 238.15 ▲175.87 |
Posts /wp-admin/edit.php | 4.85 ▲1.50 | 297.36 ▲251.17 |
Add New Post /wp-admin/post-new.php | 7.48 ▲1.59 | 542.33 ▲441.45 |
Media Library /wp-admin/upload.php | 4.66 ▲1.43 | 221.82 ▲186.29 |
Social Login /wp-admin/admin.php?page=wslu_global_setting | 4.21 | 30.00 |
Get Help /wp-admin/admin.php?page=wp-social_get_help | 4.63 | 508.82 |
Social Share /wp-admin/admin.php?page=wslu_share_setting | 4.21 | 29.95 |
Social Counter /wp-admin/admin.php?page=wslu_counter_setting | 4.21 | 32.34 |
Settings /wp-admin/admin.php?page=wslu_settings | 4.21 | 29.94 |
Server storage [IO: ▲9.59MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 490 new files
Database: no new tables, 17 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_login_widget |
xs_share_providers_data |
xs_counter_active |
wp-social__stories_data |
widget_recent-posts |
widget_theysaidso_widget |
xs_counter_options |
widget_recent-comments |
xs_counter_providers_data |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Wp Social Login and Register Social Counter
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,054 ▲292 | 13.79 ▼0.56 | 6.80 ▲5.09 | 29.25 ▼16.16 |
Dashboard /wp-admin | 2,351 ▲176 | 5.07 ▼0.66 | 105.59 ▲7.06 | 90.51 ▲44.86 |
Posts /wp-admin/edit.php | 2,181 ▲81 | 2.45 ▲0.44 | 33.58 ▼6.38 | 29.64 ▼6.09 |
Add New Post /wp-admin/post-new.php | 6,328 ▲4,802 | 20.21 ▼2.94 | 930.65 ▲272.18 | 80.17 ▲24.01 |
Media Library /wp-admin/upload.php | 1,474 ▲77 | 4.59 ▲0.40 | 105.53 ▲6.70 | 68.34 ▲26.43 |
Social Login /wp-admin/admin.php?page=wslu_global_setting | 2,024 | 2.41 | 32.13 | 113.54 |
Get Help /wp-admin/admin.php?page=wp-social_get_help | 1,874 | 2.15 | 28.06 | 38.01 |
Social Share /wp-admin/admin.php?page=wslu_share_setting | 2,021 | 2.38 | 31.65 | 83.94 |
Social Counter /wp-admin/admin.php?page=wslu_counter_setting | 2,039 | 2.39 | 28.15 | 90.44 |
Settings /wp-admin/admin.php?page=wslu_settings | 2,021 | 2.40 | 34.10 | 77.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 17 options in the database
- wp-social__stories_data
- xs_counter_options
- widget_share_widget
- xs_share_providers_data
- widget_login_widget
- theysaidso_admin_options
- db_upgraded
- xs_counter_active
- widget_recent-posts
- widget_theysaidso_widget
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-social/inc/custom-function.php
- 120× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/wp-social/lib/composer/vendor/phpseclib/phpseclib/phpseclib/Crypt/RC4.php:54
- > PHP Fatal error
Uncaught Error: Interface 'Hybridauth\\Logger\\LoggerInterface' not found in wp-content/plugins/wp-social/lib/composer/vendor/hybridauth/hybridauth/src/Logger/Logger.php:16
- > PHP Fatal error
Uncaught Error: Class 'Hybridauth\\Exception\\Exception' not found in wp-content/plugins/wp-social/lib/composer/vendor/hybridauth/hybridauth/src/Thirdparty/OpenID/LightOpenID.php:20
- > PHP Fatal error
Uncaught Error: Class 'Hybridauth\\Adapter\\OpenID' not found in wp-content/plugins/wp-social/lib/composer/vendor/hybridauth/hybridauth/src/Provider/OpenID.php:42
- > PHP Fatal error
Uncaught Error: Class 'WP_Social\\Lib\\Provider\\Counter\\Counter' not found in wp-content/plugins/wp-social/lib/provider/counter/twitter-counter.php:6
- > PHP Fatal error
Uncaught Error: Class 'Hybridauth\\Adapter\\OAuth2' not found in wp-content/plugins/wp-social/lib/composer/vendor/hybridauth/hybridauth/src/Provider/Discord.php:18
- > PHP Fatal error
Uncaught Error: Class 'Hybridauth\\Adapter\\OAuth2' not found in wp-content/plugins/wp-social/lib/composer/vendor/hybridauth/hybridauth/src/Provider/GitHub.php:18
- > PHP Fatal error
Uncaught Error: Class 'WP_Social\\Lib\\Provider\\Counter\\Counter' not found in wp-content/plugins/wp-social/lib/provider/counter/youtube-counter.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Social\\Base\\Api' not found in wp-content/plugins/wp-social/app/route.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/wp-social/lib/onboard/views/onboard-steps/step-02.php:7
- > 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)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: social counter, wordpress social login and register, woocommerce social login and register, social, social login...
wp-social/wp-social.php 92% from 13 tests
The main PHP script in "Wp Social Login and Register Social Counter" version 2.2.9 is automatically included on every request by WordPress
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 185 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin41,781 lines of code in 336 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 260 | 10,218 | 19,091 | 39,372 |
SVG | 35 | 1 | 0 | 1,550 |
Markdown | 13 | 167 | 0 | 436 |
JSON | 6 | 0 | 0 | 353 |
XML | 1 | 14 | 41 | 25 |
YAML | 1 | 2 | 0 | 25 |
CSS | 10 | 0 | 0 | 10 |
JavaScript | 9 | 0 | 1 | 9 |
HTML | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
The following items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 106)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 26.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 633.00 |
Average method complexity | 4.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 106.00 |
Code structure | ||
---|---|---|
Namespaces | 41 | |
Interfaces | 8 | |
Traits | 2 | |
Classes | 197 | |
▷ Abstract classes | 10 | 5.08% |
▷ Concrete classes | 187 | 94.92% |
▷ Final classes | 5 | 2.67% |
Methods | 1,557 | |
▷ Static methods | 179 | 11.50% |
▷ Public methods | 1,383 | 88.82% |
▷ Protected methods | 127 | 8.16% |
▷ Private methods | 47 | 3.02% |
Functions | 84 | |
▷ Named functions | 67 | 79.76% |
▷ Anonymous functions | 17 | 20.24% |
Constants | 224 | |
▷ Global constants | 24 | 10.71% |
▷ Class constants | 200 | 89.29% |
▷ Public constants | 200 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
132 PNG files occupy 1.34MB with 0.63MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/screenshort/counter/img-1.png | 12.91KB | 4.84KB | ▼ 62.48% |
lib/onboard/assets/images/onboard/shape-10.png | 0.39KB | 0.25KB | ▼ 36.46% |
assets/images/social-logo/posts-logo.png | 19.55KB | 14.85KB | ▼ 24.02% |
assets/images/screenshort/share/img-17-v.png | 11.00KB | 4.55KB | ▼ 58.65% |
assets/images/screenshort/login/style-2.png | 15.20KB | 6.99KB | ▼ 54.01% |