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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.16MB] [CPU: ▼5.39ms] Passed 4 tests
An overview of server-side resources used by BP Social Connect
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 28.77 ▼14.09 |
Dashboard /wp-admin | 3.47 ▲0.17 | 46.27 ▼2.33 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 47.34 ▲2.36 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 87.50 ▼7.36 |
Media Library /wp-admin/upload.php | 3.39 ▲0.17 | 35.95 ▲2.24 |
BP Social Connect /wp-admin/options-general.php?page=bp-social-connect | 3.36 | 31.40 |
Server storage [IO: ▲0.85MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 70 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for BP Social Connect
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲68 | 13.26 ▼1.32 | 1.70 ▼0.20 | 36.04 ▼10.70 |
Dashboard /wp-admin | 2,210 ▲22 | 5.83 ▲0.94 | 96.63 ▼19.45 | 42.23 ▼5.05 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.03 | 39.53 ▲3.95 | 35.25 ▲1.88 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.23 ▲0.09 | 643.91 ▼30.28 | 58.31 ▲5.29 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.16 ▼0.02 | 96.08 ▼11.01 | 42.28 ▼4.40 |
BP Social Connect /wp-admin/options-general.php?page=bp-social-connect | 812 | 2.04 | 25.01 | 28.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% 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 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
- 61× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'apiIO' not found in wp-content/plugins/bp-social-connect/includes/social/google/src/io/apiCurlIO.php:25
- > PHP Fatal error
require_once(): Failed opening required 'service/apiModel.php' (include_path='.:/usr/share/php') in wp-content/plugins/bp-social-connect/includes/social/google/src/contrib/apiModeratorService.php on line 18
- > PHP Fatal error
require_once(): Failed opening required 'service/apiModel.php' (include_path='.:/usr/share/php') in wp-content/plugins/bp-social-connect/includes/social/google/src/contrib/apiFreebaseService.php on line 18
- > PHP Fatal error
require_once(): Failed opening required 'service/apiModel.php' (include_path='.:/usr/share/php') in wp-content/plugins/bp-social-connect/includes/social/google/src/contrib/apiCustomsearchService.php on line 18
- > PHP Warning
require_once(service/apiModel.php): failed to open stream: No such file or directory in wp-content/plugins/bp-social-connect/includes/social/google/src/contrib/apiOauth2Service.php on line 18
- > PHP Warning
require_once(service/apiModel.php): failed to open stream: No such file or directory in wp-content/plugins/bp-social-connect/includes/social/google/src/contrib/apiPredictionService.php on line 18
- > PHP Warning
require_once(service/apiModel.php): failed to open stream: No such file or directory in wp-content/plugins/bp-social-connect/includes/social/google/src/contrib/apiSiteVerificationService.php on line 18
- > PHP Warning
require_once(service/apiModel.php): failed to open stream: No such file or directory in wp-content/plugins/bp-social-connect/includes/social/google/src/contrib/apiFreebaseService.php on line 18
- > PHP Warning
require_once(external/OAuth.php): failed to open stream: No such file or directory in wp-content/plugins/bp-social-connect/includes/social/google/src/auth/apiOAuth.php on line 18
- > PHP Fatal error
require_once(): Failed opening required 'service/apiModel.php' (include_path='.:/usr/share/php') in wp-content/plugins/bp-social-connect/includes/social/google/src/contrib/apiPagespeedonlineService.php on line 18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: social, social login, community, social networking, buddypress...
bp-social-connect/bp_social_connect.php 92% from 13 tests
This is the main PHP file of "BP Social Connect" version 1.6.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bp-social-connect.php" instead of "bp_social_connect.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin18,331 lines of code in 58 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 56 | 1,281 | 4,914 | 18,306 |
JavaScript | 1 | 4 | 0 | 13 |
CSS | 1 | 2 | 0 | 12 |
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.09 |
Average class complexity | 2.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 1.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 478 | |
▷ Abstract classes | 5 | 1.05% |
▷ Concrete classes | 473 | 98.95% |
▷ Final classes | 0 | 0.00% |
Methods | 3,720 | |
▷ Static methods | 22 | 0.59% |
▷ Public methods | 3,678 | 98.87% |
▷ Protected methods | 9 | 0.24% |
▷ Private methods | 33 | 0.89% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 10 | 100.00% |
▷ Public constants | 10 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/fb_logo.png | 0.57KB | 0.32KB | ▼ 43.88% |