Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲2.53MB] [CPU: ▲284.89ms] 75% from 4 tests
An overview of server-side resources used by Social Media Share Buttons & Social Sharing Icons
Please have a look at the following items
- Extra CPU: Try to keep extra CPU usage under 200.00ms (currently 284.89ms on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.91 ▲2.44 | 72.69 ▲33.91 |
Dashboard /wp-admin | 5.88 ▲2.58 | 427.16 ▲374.03 |
Posts /wp-admin/edit.php | 5.97 ▲2.61 | 426.59 ▲373.51 |
Add New Post /wp-admin/post-new.php | 8.37 ▲2.48 | 466.13 ▲358.09 |
Media Library /wp-admin/upload.php | 5.89 ▲2.66 | 424.28 ▲388.17 |
Server storage [IO: ▲22.74MB] [DB: ▲0.02MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 1,528 new files
Database: no new tables, 62 new options
New WordPress options |
---|
sfsi_loyaltyDate |
sfsi_footer_sec |
sfsi_was_installed_before |
sfsi_custom_icons |
widget_recent-comments |
sfsi_section2_options |
sfsi_banner_global_shares |
sfsi_feed_id |
_tifm_feature_enabled |
sfsi_addThis_icon_removal_notice_dismissed |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Social Media Share Buttons & Social Sharing Icons
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,508 ▲747 | 15.61 ▲1.36 | 20.60 ▲18.54 | 70.17 ▲20.78 |
Dashboard /wp-admin | 2,589 ▲414 | 5.82 ▲0.05 | 100.22 ▼8.81 | 95.83 ▲49.65 |
Posts /wp-admin/edit.php | 2,510 ▲410 | 2.87 ▲0.83 | 48.56 ▲5.62 | 60.70 ▲21.91 |
Add New Post /wp-admin/post-new.php | 6,918 ▲5,392 | 22.23 ▲4.54 | 922.77 ▲291.72 | 188.47 ▲137.07 |
Media Library /wp-admin/upload.php | 1,782 ▲382 | 5.17 ▲0.98 | 114.04 ▲15.43 | 87.94 ▲38.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 13 options in the database
- _tifm_disable_feature_forever
- widget_recent-posts
- theysaidso_admin_options
- _tifm_feature_enabled
- widget_recent-comments
- sfsi_was_installed_before
- _tifm_force_disable_feature_fix
- db_upgraded
- analyst_cache
- widget_sfsi-widget
- ...
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/ultimate-social-media-icons/analyst/templates/forms/deactivate.php
- > /wp-content/plugins/ultimate-social-media-icons/analyst/templates/optout.php
- > /wp-content/plugins/ultimate-social-media-icons/analyst/templates/forms/install.php
- > /wp-content/plugins/ultimate-social-media-icons/analyst/templates/optin.php
- 109× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/ultimate-social-media-icons/fonts/index.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-social-media-icons/libs/controllers/sfsi_forum_notification_popup.php:131
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/ultimate-social-media-icons/images/icons_theme/thin/index.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/ultimate-social-media-icons/views/deactivation/sfsi_deactivation_popup.php:11
- > PHP Warning
Use of undefined constant SFSI_PLUGURL - assumed 'SFSI_PLUGURL' (this will throw an Error in a future version of PHP) in wp-content/plugins/ultimate-social-media-icons/views/sfsi_section_for_premium.php on line 7
- > PHP Warning
Use of undefined constant SFSI_PLUGURL - assumed 'SFSI_PLUGURL' (this will throw an Error in a future version of PHP) in wp-content/plugins/ultimate-social-media-icons/views/sfsi_section_for_premium.php on line 5
- > PHP Notice
Undefined variable: option9 in wp-content/plugins/ultimate-social-media-icons/views/subviews/que3/sfsi_que3_place_via_sticky_bar.php on line 49
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/ultimate-social-media-icons/images/icons_theme/orange/index.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ultimate-social-media-icons/libs/controllers/sfsiocns_OnPosts.php:539
- > PHP Fatal error
Uncaught Error: Call to undefined function maybe_unserialize() in wp-content/plugins/ultimate-social-media-icons/views/sfsi_option_view3.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: social media, sharing icons, social share, widget, sharing...
ultimate-social-media-icons/ultimate_social_media_icons.php 85% from 13 tests
"Social Media Share Buttons & Social Sharing Icons" version 2.8.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Domain Path: The domain path folder was not found ("/languages")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ultimate-social-media-icons.php" instead of "ultimate_social_media_icons.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
Success! There were no dangerous files found in this plugin63,696 lines of code in 447 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 123 | 4,826 | 3,320 | 23,322 |
SVG | 297 | 4 | 3 | 21,548 |
CSS | 10 | 1,205 | 245 | 12,474 |
JavaScript | 17 | 884 | 860 | 6,352 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 9.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 156.00 |
Average method complexity | 2.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 6 | |
Traits | 0 | |
Classes | 51 | |
▷ Abstract classes | 5 | 9.80% |
▷ Concrete classes | 46 | 90.20% |
▷ Final classes | 0 | 0.00% |
Methods | 394 | |
▷ Static methods | 40 | 10.15% |
▷ Public methods | 340 | 86.29% |
▷ Protected methods | 12 | 3.05% |
▷ Private methods | 42 | 10.66% |
Functions | 194 | |
▷ Named functions | 168 | 86.60% |
▷ Anonymous functions | 26 | 13.40% |
Constants | 18 | |
▷ Global constants | 12 | 66.67% |
▷ Class constants | 6 | 33.33% |
▷ Public constants | 6 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
939 PNG files occupy 9.62MB with 2.87MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/visit_icons/Visit_us_twitter/icon_Visit_me_cs_CZ.png | 1.20KB | 0.75KB | ▼ 37.34% |
banner/views/projects/usm/imgs/ribbon-icon.png | 1.27KB | 1.28KB | 0.00% |
images/icons_theme/transparent/transparent_copylink.png | 3.63KB | 3.30KB | ▼ 9.19% |
images/icons_theme/thin/thin_instagram.png | 7.12KB | 3.42KB | ▼ 51.91% |
images/icons_theme/default/default_ok.png | 3.02KB | 1.49KB | ▼ 50.81% |