73% instagram-feed

Code Review | Smash Balloon Social Photo Feed - Best Social Feed Plugin for WordPress

WordPress plugin Smash Balloon Social Photo Feed - Best Social Feed Plugin for WordPress scored73%from 54 tests.

About plugin

  • Plugin page: instagram-feed
  • Plugin version: 6.2.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.4
  • WordPress version: 6.3.1
  • First release: Jul 23, 2014
  • Latest release: Nov 14, 2023
  • Number of updates: 438
  • Update frequency: every 7.8 days
  • Top authors: smashballoon (90.18%)Craig at Smash Balloon (10.05%)

Code review

54 tests

User reviews

4107 reviews

Install metrics

1,000,000+ active /36,701,275 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲4.44MB] [CPU: ▲21.82ms] Passed 4 tests

Server-side resources used by Smash Balloon Social Photo Feed - Best Social Feed Plugin for WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /7.42 ▲3.9657.64 ▲12.54
Dashboard /wp-admin7.92 ▲4.5775.88 ▲16.17
Posts /wp-admin/edit.php7.97 ▲4.6180.50 ▲30.19
Add New Post /wp-admin/post-new.php10.53 ▲4.64120.79 ▲28.36
Media Library /wp-admin/upload.php7.84 ▲4.6264.79 ▲31.18
Reviews FeedNew! /wp-admin/admin.php?page=sbr7.6951.42
All Feeds /wp-admin/admin.php?page=sbi-feed-builder9.4799.14
YouTube Feed /wp-admin/admin.php?page=sb-instagram-feed&tab=more7.8159.79
Instagram Feed /wp-admin/admin.php?page=sb-instagram-feed7.8155.90
Setup /wp-admin/admin.php?page=sbi-setup9.3897.36
oEmbeds /wp-admin/admin.php?page=sbi-oembeds-manager7.8360.08
Support /wp-admin/admin.php?page=sbi-support8.6384.21
Facebook Feed /wp-admin/admin.php?page=cff-builder7.6959.82
Settings /wp-admin/admin.php?page=sbi-settings8.7087.74
About Us /wp-admin/admin.php?page=sbi-about-us7.8262.04

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 325 new files
Database: 6 new tables, 14 new options
New tables
wp_sbi_instagram_feeds_posts
wp_sbi_feeds
wp_sbi_instagram_feed_locator
wp_sbi_instagram_posts
wp_sbi_feed_caches
wp_sbi_sources
New WordPress options
db_upgraded
sbi_usage_tracking_config
sbi_statuses
widget_theysaidso_widget
widget_instagram-feed-widget
widget_recent-comments
can_compress_scripts
sbi_usage_tracking
theysaidso_admin_options
sbi_newuser_notifications
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Smash Balloon Social Photo Feed - Best Social Feed Plugin for WordPress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,915 ▲16813.25 ▼1.104.28 ▲2.4934.91 ▼8.86
Dashboard /wp-admin2,307 ▲1265.90 ▲0.1896.01 ▼8.9561.46 ▲19.19
Posts /wp-admin/edit.php2,232 ▲1352.35 ▲0.3442.58 ▲3.8148.55 ▲14.84
Add New Post /wp-admin/post-new.php1,610 ▲7623.56 ▲0.56669.64 ▼0.4238.56 ▼27.95
Media Library /wp-admin/upload.php1,515 ▲1124.54 ▲0.27105.90 ▲7.7653.09 ▲9.04
Reviews FeedNew! /wp-admin/admin.php?page=sbr280.410.113.66
All Feeds /wp-admin/admin.php?page=sbi-feed-builder5,93710.61173.8378.49
YouTube Feed /wp-admin/admin.php?page=sb-instagram-feed&tab=more9081.9829.4120.70
Instagram Feed /wp-admin/admin.php?page=sb-instagram-feed9052.0028.5619.36
Setup /wp-admin/admin.php?page=sbi-setup2,9416.86123.3451.87
oEmbeds /wp-admin/admin.php?page=sbi-oembeds-manager1,4833.1458.9733.55
Support /wp-admin/admin.php?page=sbi-support2,1023.5069.1679.42
Facebook Feed /wp-admin/admin.php?page=cff-builder280.410.084.01
Settings /wp-admin/admin.php?page=sbi-settings3,3335.1991.8596.07
About Us /wp-admin/admin.php?page=sbi-about-us1,8553.1653.4636.86

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_instagram-feed-widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% 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
Please fix the following
  • 62× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/instagram-feed/admin/views/oembeds/modal.php
    • > /wp-content/plugins/instagram-feed/admin/builder/templates/sections/feeds/instances.php
    • > /wp-content/plugins/instagram-feed/templates/header.php
    • > /wp-content/plugins/instagram-feed/admin/views/settings/tab/feeds.php
    • > /wp-content/plugins/instagram-feed/admin/views/settings/tab/advanced.php
    • > /wp-content/plugins/instagram-feed/admin/builder/templates/sections/popup/source-instances.php
    • > /wp-content/plugins/instagram-feed/admin/builder/templates/sections/create-feed/single-public-hashtags.php
    • > /wp-content/plugins/instagram-feed/admin/builder/templates/onboarding/add-source.php
    • > /wp-content/plugins/instagram-feed/inc/class-sb-instagram-post.php
    • > /wp-content/plugins/instagram-feed/templates/feed.php
  • 70× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-upgrader.php): failed to open stream: No such file or directory in wp-content/plugins/instagram-feed/inc/admin/PluginSilentUpgrader.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/instagram-feed/admin/builder/templates/onboarding/configure-features.php:28
    • > PHP Warning
      include_once(): Failed opening 'SBI_BUILDER_DIRtemplates/sections/create-feed/single-sources.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/instagram-feed/admin/builder/templates/sections/select-source.php on line 3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/instagram-feed/inc/admin/PluginSilentUpgrader.php on line 10
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-upgrader.php' (include_path='.:/usr/share/php') in wp-content/plugins/instagram-feed/inc/admin/PluginSilentUpgrader.php on line 10
    • > PHP Warning
      include_once(SBI_BUILDER_DIRtemplates/sections/create-feed/multiple-sources-list.php): failed to open stream: No such file or directory in wp-content/plugins/instagram-feed/admin/builder/templates/sections/create-feed/multiple-sources.php on line 11
    • > PHP Warning
      include_once(SBI_BUILDER_DIRtemplates/sections/feeds/feeds.php): failed to open stream: No such file or directory in wp-content/plugins/instagram-feed/admin/builder/templates/sections/feeds-list.php on line 4
    • > PHP Fatal error
      Uncaught Error: Interface 'Smashballoon\\Stubs\\Services\\ServiceProviderInterface' not found in wp-content/plugins/instagram-feed/vendor/smashballoon/stubs/src/Services/ServiceProvider.php:5
    • > PHP Warning
      Use of undefined constant SBI_BUILDER_DIR - assumed 'SBI_BUILDER_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/instagram-feed/admin/builder/templates/sections/create-feed/multiple-sources.php on line 11
    • > PHP Fatal error
      Uncaught Error: Class 'Smashballoon\\Stubs\\Services\\ServiceProvider' not found in wp-content/plugins/instagram-feed/inc/Services/ShortcodeService.php:7

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=sbr
    • > Network (severe)
    wp-admin/admin.php?page=sbr - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/admin.php?page=cff-builder
    • > Network (severe)
    wp-admin/admin.php?page=cff-builder - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: Please add descriptions for these screenshots #4, #7, #8 in instagram-feed/assets to your readme.txt
You can look at the official readme.txt

instagram-feed/instagram-feed.php Passed 13 tests

Analyzing the main PHP file in "Smash Balloon Social Photo Feed - Best Social Feed Plugin for WordPress" version 6.2.6
72 characters long description:
Display beautifully clean, customizable, and responsive Instagram feeds.

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
Success! There were no dangerous files found in this plugin53,504 lines of code in 220 files:
LanguageFilesBlank linesComment linesLines of code
PHP1634,5298,13126,068
CSS161,18068620,963
JavaScript237391,1456,197
SVG1400185
JSON30079
XML10012

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity34.09
▷ Minimum class complexity1.00
▷ Maximum class complexity275.00
Average method complexity4.30
▷ Minimum method complexity1.00
▷ Maximum method complexity67.00
Code structure
Namespaces14
Interfaces1
Traits2
Classes83
▷ Abstract classes22.41%
▷ Concrete classes8197.59%
▷ Final classes00.00%
Methods856
▷ Static methods34440.19%
▷ Public methods80694.16%
▷ Protected methods202.34%
▷ Private methods303.50%
Functions93
▷ Named functions9096.77%
▷ Anonymous functions33.23%
Constants47
▷ Global constants2144.68%
▷ Class constants2655.32%
▷ Public constants26100.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
82 compressed PNG files occupy 0.71MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/builder/assets/img/timeline.png1.74KB1.86KB0.00%
admin/builder/assets/img/instagram.png1.91KB1.75KB▼ 8.68%
admin/assets/img/team-avatar.png74.10KB80.19KB0.00%
admin/assets/img/about/plugin-trustpulse.png2.31KB2.69KB0.00%
admin/assets/img/instagram-icon.png0.89KB0.91KB0.00%