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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼9.06ms] Passed 4 tests
Server-side resources used by Social Media Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 44.10 ▲3.14 |
Dashboard /wp-admin | 3.51 ▲0.16 | 49.36 ▼13.64 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 49.41 ▼1.09 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 85.81 ▼24.55 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 40.11 ▲3.04 |
AppSumo /wp-admin/admin.php?page=smw_go_appsumo_pro | 3.23 | 25.36 |
Other Tools /wp-admin/admin.php?page=social-media-widget-plugin-other-tools | 3.40 | 38.81 |
Social Media Widget /wp-admin/admin.php?page=social-media-widget | 3.40 | 31.51 |
Server storage [IO: ▲1.67MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 698 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_social-widget |
socialwidget_global_notification |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Social Media Widget: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲43 | 14.42 ▲0.14 | 1.66 ▼0.66 | 33.23 ▼5.63 |
Dashboard /wp-admin | 2,233 ▲56 | 5.50 ▼0.17 | 84.22 ▼11.48 | 43.76 ▲1.56 |
Posts /wp-admin/edit.php | 2,135 ▲35 | 2.03 ▲0.09 | 37.47 ▼2.16 | 34.56 ▼3.85 |
Add New Post /wp-admin/post-new.php | 1,557 ▲31 | 23.01 ▲0.01 | 689.12 ▼20.72 | 59.15 ▲7.10 |
Media Library /wp-admin/upload.php | 1,438 ▲41 | 4.15 ▼0.09 | 105.40 ▼13.50 | 49.67 ▼1.03 |
AppSumo /wp-admin/admin.php?page=smw_go_appsumo_pro | 2,264 | 15.14 | 667.42 | 169.69 |
Other Tools /wp-admin/admin.php?page=social-media-widget-plugin-other-tools | 1,016 | 2.04 | 25.81 | 49.84 |
Social Media Widget /wp-admin/admin.php?page=social-media-widget | 898 | 2.04 | 23.43 | 33.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_social-widget
Smoke tests 25% 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/social-media-widget/appsumo-capture-form.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_thickbox() in wp-content/plugins/social-media-widget/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/social-media-widget/social-widget.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_thickbox() in wp-content/plugins/social-media-widget/other_tools.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=smw_go_appsumo_pro
- > Network (severe)
https://appsumo.com/tools/wordpress/?utm_source=sumo&utm_medium=wp-widget&utm_campaign=social-media-widget - Failed to load resource: the server responded with a status of 404 ()
- > GET request to /wp-admin/admin.php?page=smw_go_appsumo_pro
- > Javascript (severe) in unknown
https://appsumo2-cdn.appsumo.com/static/dist/js/vue_bridge.61ea1a9c.js 6:75186 Uncaught TypeError: (void 0) is not a function
- > GET request to /wp-admin/admin.php?page=smw_go_appsumo_pro
- > Console-api (warning) in unknown
https://accounts.google.com/gsi/client 41:457 "[GSI_LOGGER]: Relative login_uri was provided. Use absolute url instead. Relative login_uri may be considered invalid in the future."
Optimizations
Plugin configuration 90% 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
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Web 2.0 icon pack), #2 (Cutout icon pack), #3 (Heart icon pack), #4 (Sketch icon pack), #5 (Widget control panel with all sections collapsed), #6 (Widget control panel with General Settings expanded), #7 (Widget control panel with Social Networking service section expanded)
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
social-media-widget/social-widget.php 92% from 13 tests
The entry point to "Social Media Widget" version 4.0.6 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("social-media-widget.php" instead of "social-widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,451 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 155 | 171 | 941 |
CSS | 3 | 47 | 3 | 399 |
SVG | 3 | 0 | 2 | 104 |
JavaScript | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 143.00 |
▷ Minimum class complexity | 143.00 |
▷ Maximum class complexity | 143.00 |
Average method complexity | 18.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 74.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
681 compressed PNG files occupy 1.57MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/heart/32/digitaltunes.png | 1.76KB | 1.73KB | ▼ 1.22% |
images/sketch/16/hyves.png | 1.02KB | 1.08KB | 0.00% |
images/sketch/64/slashdot.png | 3.19KB | 3.20KB | 0.00% |
images/default/16/cuttings.png | 0.72KB | 0.83KB | 0.00% |
images/heart/16/reddit.png | 1.02KB | 1.01KB | ▼ 1.43% |