77% ultimate-social-media-plus

Code Review | Social Share Icons & Social Share Buttons

WordPress plugin Social Share Icons & Social Share Buttons scored77%from 54 tests.

About plugin

  • Plugin page: ultimate-social-m...
  • Plugin version: 3.6.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.4
  • WordPress version: 6.3.1
  • First release: Apr 9, 2015
  • Latest release: Oct 20, 2023
  • Number of updates: 1
  • Update frequency: every 365.0 days

Code review

54 tests

User reviews

1909 reviews

Install metrics

30,000+ active /2,426,002 total downloads


Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲2.62MB] [CPU: ▲337.70ms] 75% from 4 tests

Server-side resources used by Social Share Icons & Social Share Buttons
Please fix the following
  • Extra CPU: Extra CPU usage must be kept under 200.00ms (currently 337.70ms on /wp-admin/upload.php)
PageMemory (MB)CPU Time (ms)
Home /6.09 ▲2.6267.82 ▲33.16
Dashboard /wp-admin5.95 ▲2.61494.78 ▲435.86
Posts /wp-admin/edit.php6.11 ▲2.74505.50 ▲458.89
Add New Post /wp-admin/post-new.php8.43 ▲2.54530.69 ▲434.15
Media Library /wp-admin/upload.php5.96 ▲2.73482.09 ▲447.63

Server storage [IO: ▲24.73MB] [DB: ▲0.02MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 1,656 new files
Database: no new tables, 65 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Social Share Icons & Social Share Buttons
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,762 ▲1,00115.58 ▲1.0229.43 ▲27.7160.59 ▲18.26
Dashboard /wp-admin2,599 ▲4215.79 ▲0.0596.67 ▼5.1189.13 ▲49.13
Posts /wp-admin/edit.php2,536 ▲4392.87 ▲0.7455.00 ▲20.3750.46 ▲16.47
Add New Post /wp-admin/post-new.php6,851 ▲5,32520.10 ▼3.13939.23 ▲237.5293.03 ▲36.93
Media Library /wp-admin/upload.php1,804 ▲4045.20 ▲1.01113.26 ▲15.5185.35 ▲40.52

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 16 options in the database
    • analyst_cache
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • _tifm_feature_enabled
    • can_compress_scripts
    • widget_theysaidso_widget
    • insPP_body_alt_timeout
    • _tifm_disable_feature_forever
    • db_upgraded
    • ...

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)
Everything seems fine, however this is by no means an exhaustive test

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 take a closer look at the following
  • 6× PHP files output text when accessed directly:
    • > /wp-content/plugins/ultimate-social-media-plus/analyst/templates/optin.php
    • > /wp-content/plugins/ultimate-social-media-plus/analyst/templates/forms/deactivate.php
    • > /wp-content/plugins/ultimate-social-media-plus/views/subviews/que4/banner.php
    • > /wp-content/plugins/ultimate-social-media-plus/views/deactivation/sfsi_deactivation_popup.php
    • > /wp-content/plugins/ultimate-social-media-plus/analyst/templates/optout.php
    • > /wp-content/plugins/ultimate-social-media-plus/analyst/templates/forms/install.php
  • 83× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Analyst\\Http\\Requests\\AbstractLoggerRequest' not found in wp-content/plugins/ultimate-social-media-plus/analyst/src/Http/Requests/ActivateRequest.php:18
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/ultimate-social-media-plus/ultimate_social_media_icons.php on line 46
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/ultimate-social-media-plus/images/icons_theme/chrome_blue/index.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Analyst\\Http\\Requests\\AbstractLoggerRequest' not found in wp-content/plugins/ultimate-social-media-plus/analyst/src/Http/Requests/OptInRequest.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-social-media-plus/libs/sfsi_plus_subscribe_widget.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/ultimate-social-media-plus/css/images/index.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function maybe_unserialize() in wp-content/plugins/ultimate-social-media-plus/views/sfsi_option_view6.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ultimate-social-media-plus/libs/sfsi_widget.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/ultimate-social-media-plus/images/icons_theme/index.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/ultimate-social-media-plus/images/icons_theme/black2/index.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected


Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
You can take inspiration from this readme.txt

ultimate-social-media-plus/ultimate_social_media_icons.php 77% from 13 tests

This is the main PHP file of "Social Share Icons & Social Share Buttons" version 3.6.1, 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:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Description: Please don't use more than 140 characters for the plugin description (currently 261 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ultimate-social-media-plus.php" instead of "ultimate_social_media_icons.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin61,627 lines of code in 477 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity10.57
▷ Minimum class complexity1.00
▷ Maximum class complexity151.00
Average method complexity2.36
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
▷ Abstract classes59.62%
▷ Concrete classes4790.38%
▷ Final classes00.00%
▷ Static methods409.55%
▷ Public methods34782.82%
▷ Protected methods122.86%
▷ Private methods6014.32%
▷ Named functions18885.07%
▷ Anonymous functions3314.93%
▷ Global constants2379.31%
▷ Class constants620.69%
▷ Public constants6100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
915 PNG files occupy 10.30MB with 1.58MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icons_theme/cubes/cubes_linkedin.png1.50KB1.46KB▼ 2.68%
images/logo.png1.26KB1.25KB▼ 0.62%
images/amazon.png2.44KB2.30KB▼ 6.07%
banner/views/projects/fit/imgs/face3.png2.33KB2.29KB▼ 1.47%
images/visit_icons/Visit_us_fb/icon_Visit_me_pt_PT.png4.33KB1.48KB▼ 65.88%