Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.00MB] [CPU: ▼17.66ms] Passed 4 tests
A check of server-side resources used by WP Social Broadcast
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.95 ▼0.51 | 18.32 ▼29.76 |
Dashboard /wp-admin | 3.59 ▲0.29 | 45.35 ▼3.61 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 31.63 ▼20.45 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.23 | 88.75 ▼16.81 |
Media Library /wp-admin/upload.php | 3.45 ▲0.23 | 35.46 ▼0.94 |
Server storage [IO: ▲1.31MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 209 new files
Database: 2 new tables, 9 new options
New tables |
---|
wp_wsi_stats |
wp_wsi_queue |
New WordPress options |
---|
widget_wsi_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
wsi-version |
wsi_settings |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Social Broadcast
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲78 | 13.25 ▼1.12 | 4.03 ▲2.12 | 43.97 ▼0.17 |
Dashboard /wp-admin | 2,220 ▲37 | 5.81 ▲0.78 | 105.81 ▼6.50 | 40.48 ▼2.33 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 2.05 ▼0.11 | 34.88 ▼4.99 | 32.79 ▲1.80 |
Add New Post /wp-admin/post-new.php | 1,531 ▲17 | 22.85 ▲5.25 | 632.70 ▼69.88 | 58.76 ▲1.91 |
Media Library /wp-admin/upload.php | 1,411 ▲23 | 4.22 ▲0.00 | 99.06 ▼5.97 | 45.10 ▼3.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie tables were found after uninstall: 2 tables
- wp_wsi_queue
- wp_wsi_stats
- Zombie WordPress options detected upon uninstall: 9 options
- widget_wsi_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- wsi-version
- theysaidso_admin_options
- widget_recent-comments
- wsi_settings
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-social-broadcast/hybridauth/index.php
- > /wp-content/plugins/wp-social-broadcast/test.php
- > /wp-content/plugins/wp-social-broadcast/uploads/index.php
- 28× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Hybrid_Provider_Model' not found in wp-content/plugins/wp-social-broadcast/hybridauth/Hybrid/Provider_Model_OAuth2.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-social-broadcast/templates/popup/live-upload.php:4
- > PHP Fatal error
Uncaught Error: Class 'Hybrid_Provider_Model_OAuth2' not found in wp-content/plugins/wp-social-broadcast/hybridauth/Hybrid/Providers/foursquare.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-social-broadcast/classes/class.Wsi_Widget.php:2
- > PHP Fatal error
Uncaught Error: Class 'Hybrid_Provider_Model' not found in wp-content/plugins/wp-social-broadcast/hybridauth/Hybrid/Provider_Model_OpenID.php:18
- > PHP Fatal error
Uncaught Error: Class 'Hybrid_Provider_Model_OAuth1' not found in wp-content/plugins/wp-social-broadcast/hybridauth/Hybrid/Providers/yahoo.php:20
- > PHP Fatal error
Uncaught Error: Class 'Hybrid_Provider_Model_OpenID' not found in wp-content/plugins/wp-social-broadcast/hybridauth/Hybrid/Providers/aol.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-social-broadcast/admin/sidebar.php:5
- > PHP Fatal error
Uncaught Error: Class 'Hybrid_Provider_Model_OAuth1' not found in wp-content/plugins/wp-social-broadcast/hybridauth/Hybrid/Providers/twitter.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/wp-social-broadcast/admin/header.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Contributors: Plugin contributors not specified
wp-social-broadcast/wp-social-invitations.php 85% from 13 tests
The main file in "WP Social Broadcast" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-social-broadcast.php" instead of "wp-social-invitations.php")
- Description: Keep the plugin description shorter than 140 characters (currently 189 characters long)
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Almost there! Just fix the following issues
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/wp-social-broadcast/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 | 65 | 2,673 | 4,506 | 9,932 |
JavaScript | 9 | 188 | 395 | 1,786 |
CSS | 5 | 23 | 11 | 657 |
PO File | 1 | 206 | 223 | 537 |
HTML | 3 | 2 | 3 | 28 |
SVG | 1 | 0 | 0 | 19 |
XML | 1 | 0 | 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.39 |
Average class complexity | 28.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 188.00 |
Average method complexity | 3.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 48.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 54 | |
▷ Abstract classes | 4 | 7.41% |
▷ Concrete classes | 50 | 92.59% |
▷ Final classes | 0 | 0.00% |
Methods | 533 | |
▷ Static methods | 62 | 11.63% |
▷ Public methods | 414 | 77.67% |
▷ Protected methods | 99 | 18.57% |
▷ Private methods | 20 | 3.75% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 29 | |
▷ Global constants | 3 | 10.34% |
▷ Class constants | 26 | 89.66% |
▷ Public constants | 26 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
107 compressed PNG files occupy 0.22MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/32x32/icondock/vimeo.png | 1.47KB | 1.35KB | ▼ 7.92% |
assets/img/32x32/wpzoom/flickr.png | 1.00KB | 1.15KB | 0.00% |
admin/assets/img/wpzoom/hyves.png | 1.23KB | 1.25KB | 0.00% |
assets/img/32x32/icondock/myspace.png | 1.59KB | 1.41KB | ▼ 11.66% |
assets/img/32x32/wpzoom/steam.png | 1.31KB | 1.05KB | ▼ 19.66% |