84% social-media-feather

Code Review | Social Media Feather | social media sharing

WordPress plugin Social Media Feather | social media sharing scored 84% from 54 tests.

About plugin

  • Plugin page: social-media-feather
  • Plugin version: 2.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 21, 2012
  • Latest release: Nov 29, 2022
  • Number of updates: 184
  • Update frequency: every 19.7 days
  • Top authors: Synved (86.96%)socialmediafeather (13.59%)

Code review

54 tests

User reviews

507 reviews

Install metrics

30,000+ active / 1,892,899 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.26MB] [CPU: ▼0.19ms] Passed 4 tests

Server-side resources used by Social Media Feather | social media sharing
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.1937.26 ▼3.00
Dashboard /wp-admin3.58 ▲0.2847.15 ▲0.49
Posts /wp-admin/edit.php3.70 ▲0.3447.71 ▲5.23
Add New Post /wp-admin/post-new.php6.19 ▲0.30104.89 ▲15.14
Media Library /wp-admin/upload.php3.51 ▲0.2736.58 ▼3.48
Social Media /wp-admin/options-general.php?page=social-media-feather-settings3.4831.33

Server storage [IO: ▲2.33MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 896 new files
Database: no new tables, 11 new options
New WordPress options
widget_synved_social_follow
db_upgraded
synved_version
widget_theysaidso_widget
synved_social_settings
synved_connect_install_date
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_synved_social_share
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Social Media Feather | social media sharing
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲8914.19 ▼0.191.64 ▼0.2639.27 ▼4.86
Dashboard /wp-admin2,217 ▲295.77 ▲0.87118.71 ▲10.7642.81 ▲3.32
Posts /wp-admin/edit.php2,133 ▲442.78 ▲0.8161.18 ▲25.1136.19 ▲4.40
Add New Post /wp-admin/post-new.php1,542 ▲2823.31 ▲5.80651.98 ▼14.7436.34 ▼15.26
Media Library /wp-admin/upload.php1,410 ▲224.57 ▲0.3598.59 ▼15.9940.20 ▼8.19
Social Media /wp-admin/options-general.php?page=social-media-feather-settings2,0815.1089.0852.52

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 13× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'SynvedSocialWidget' not found in wp-content/plugins/social-media-feather/synved-social/inc/class-synvedsocialfollowwidget.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/social-media-feather/synved-connect/synved-connect.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/social-media-feather/social-media-feather.php:14
    • > PHP Warning
      Use of undefined constant SOCIAL_MEDIA_FEATHER_PLUGIN_URL - assumed 'SOCIAL_MEDIA_FEATHER_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/social-media-feather/php/class-plugin-base.php on line 148
    • > PHP Fatal error
      Uncaught Error: Call to undefined function synved_option_get() in wp-content/plugins/social-media-feather/synved-social/synved-social-setup.php:164
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/social-media-feather/synved-plugout/synved-plugout.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/social-media-feather/synved-social/inc/class-synvedsocialwidget.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/social-media-feather/synved-social/synved-social.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function SocialMediaFeather\\trailingslashit() in wp-content/plugins/social-media-feather/php/class-plugin.php:35
    • > PHP Fatal error
      Uncaught Error: Class 'SocialMediaFeather\\Plugin_Base' not found in wp-content/plugins/social-media-feather/php/class-plugin.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 18 tag instead of maximum 10
The official readme.txt might help

social-media-feather/social-media-feather.php 92% from 13 tests

"Social Media Feather | social media sharing" version 2.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 158 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin5,998 lines of code in 41 files:
LanguageFilesBlank linesComment linesLines of code
PHP271,0641,6265,066
CSS75750579
JavaScript56272328
Markdown216025

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity11.29
▷ Minimum class complexity1.00
▷ Maximum class complexity32.00
Average method complexity2.45
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes7
▷ Abstract classes114.29%
▷ Concrete classes685.71%
▷ Final classes00.00%
Methods41
▷ Static methods24.88%
▷ Public methods3995.12%
▷ Protected methods24.88%
▷ Private methods00.00%
Functions142
▷ Named functions13595.07%
▷ Anonymous functions74.93%
Constants16
▷ Global constants1275.00%
▷ Class constants425.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
850 compressed PNG files occupy 1.79MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
synved-social/addons/extra-icons/image/social/clearslate/64x64/youtube.png1.82KB1.56KB▼ 14.16%
synved-social/addons/extra-icons/image/social/darkslate/32x32/foursquare.png0.59KB0.60KB0.00%
synved-social/addons/extra-icons/image/social/circle/96x96/linkedin.png3.99KB3.21KB▼ 19.33%
synved-social/image/social/regular/128x128/foursquare.png1.48KB1.57KB0.00%
synved-social/addons/extra-icons/image/social/medal/32x32/reddit.png1.51KB1.50KB▼ 0.65%