Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.77MB] [CPU: ▼7.44ms] Passed 4 tests
An overview of server-side resources used by Social Buttons Pack by BestWebSoft
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.52 ▲1.06 | 46.82 ▼1.95 |
Dashboard /wp-admin | 4.47 ▲1.12 | 62.63 ▼1.10 |
Posts /wp-admin/edit.php | 4.50 ▲1.14 | 65.94 ▲14.69 |
Add New Post /wp-admin/post-new.php | 5.68 ▼0.21 | 56.36 ▼39.85 |
Media Library /wp-admin/upload.php | 4.32 ▲1.10 | 50.96 ▲13.16 |
Server storage [IO: ▲7.78MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 200 new files
Database: no new tables, 13 new options
New WordPress options |
---|
widget_recent-posts |
sclbttns_options |
db_upgraded |
bstwbsftwppdtplgns_options |
lnkdn_options |
widget_recent-comments |
pntrst_options |
can_compress_scripts |
widget_pntrst-widget |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
Social Buttons Pack by BestWebSoft: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,290 ▲544 | 15.60 ▲1.23 | 49.10 ▲47.09 | 49.77 ▲5.48 |
Dashboard /wp-admin | 2,560 ▲372 | 5.89 ▲1.05 | 107.12 ▼13.42 | 39.24 ▼2.63 |
Posts /wp-admin/edit.php | 2,453 ▲361 | 2.24 ▲0.19 | 38.63 ▼0.56 | 33.51 ▼0.30 |
Add New Post /wp-admin/post-new.php | 1,870 ▲351 | 21.16 ▼2.32 | 689.31 ▼19.13 | 56.85 ▼2.89 |
Media Library /wp-admin/upload.php | 1,742 ▲360 | 4.35 ▲0.17 | 106.88 ▲4.48 | 44.54 ▲2.09 |
Settings /wp-admin/social-buttons.php | 26 | 0.44 | 0.07 | 14.53 |
BWS Panel /wp-admin/social-buttons.php?page=sclbttns-bws-panel | 26 | 0.44 | 0.10 | 7.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_pntrst-widget
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 14× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-buttons-pack/twitter-plugin/twitter.php:338
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/social-buttons-pack/bws_menu/product_list.php:8
- > PHP Fatal error
Uncaught Error: Class 'Bws_Settings_Tabs' not found in wp-content/plugins/social-buttons-pack/includes/class-sclbttns-settings.php:7
- > PHP Fatal error
Uncaught Error: Class 'Bws_Settings_Tabs' not found in wp-content/plugins/social-buttons-pack/includes/sclbttns-nstgrm-settings.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/social-buttons-pack/bws-pinterest/bws-pinterest.php:329
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-buttons-pack/facebook-button-plugin/facebook-button-plugin.php:765
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-buttons-pack/social-buttons-pack.php:377
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-buttons-pack/bws-linkedin/bws-linkedin.php:305
- > PHP Fatal error
Uncaught Error: Class 'Bws_Settings_Tabs' not found in wp-content/plugins/social-buttons-pack/bws-linkedin/includes/class-lnkdn-settings.php:7
- > PHP Fatal error
Uncaught Error: Class 'Bws_Settings_Tabs' not found in wp-content/plugins/social-buttons-pack/twitter-plugin/includes/class-twttr-settings.php:8
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/social-buttons.php
- > Network (severe)
wp-admin/social-buttons.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/social-buttons.php?page=sclbttns-bws-panel
- > Network (severe)
wp-admin/social-buttons.php?page=sclbttns-bws-panel - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (16 tag instead of maximum 10)
- Screenshots: Please add images for these screenshots: #1 (Displaying Social Buttons in your post.), #2 (Displaying Pinterest Pin widget.), #3 (Displaying Pinterest Board widget.), #4 (Displaying Pinterest Profile widget.), #5 (Plugin settings page: Facebook.), #6 (Plugin settings page: Twitter.), #7 (Plugin settings page: Pinterest.), #8 (Plugin settings page: LinkedIn.), #9 (Plugin settings page: Instagram.), #10 (Adding widgets to the sidebar.), #11 (Adding Social Buttons shortcode to your post or page.)
social-buttons-pack/social-buttons-pack.php Passed 13 tests
The main file in "Social Buttons Pack by BestWebSoft" v. 1.1.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
109 characters long description:
Add social media buttons and widgets to WordPress posts, pages and widgets. FB, Twitter, Pinterest, LinkedIn.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin27,603 lines of code in 81 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 30 | 7,090 | 11,930 | 13,044 |
PHP | 19 | 809 | 833 | 7,938 |
CSS | 18 | 200 | 290 | 5,791 |
JavaScript | 13 | 52 | 135 | 759 |
SVG | 1 | 0 | 0 | 71 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 58.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 224.00 |
Average method complexity | 8.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 76.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 67 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 60 | 89.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 10.45% |
Functions | 127 | |
▷ Named functions | 127 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
79 PNG files occupy 5.44MB with 1.82MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
bws_menu/icons/plugins/bike-rental.png | 6.86KB | 2.68KB | ▼ 60.89% |
bws_menu/css/jquery-ui-styles/1.11.4/images/ui-icons_2e83ff_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
facebook-button-plugin/images/standard-facebook-ico.png | 1.66KB | 1.01KB | ▼ 39.17% |
bws_menu/css/jquery-ui-styles/1.9.2/images/ui-bg_glass_75_dadada_1x400.png | 0.16KB | 0.16KB | 0.00% |
bws_menu/icons/themes/realestate.png | 280.34KB | 108.34KB | ▼ 61.35% |