72% custom-facebook-feed

Code Review | Smash Balloon Social Post Feed - Customizable Social Feeds Plugin

WordPress plugin Smash Balloon Social Post Feed - Customizable Social Feeds Plugin scored72%from 54 tests.

About plugin

  • Plugin page: custom-facebook-feed
  • Plugin version: 4.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.3
  • WordPress version: 6.3.1
  • First release: Jun 8, 2013
  • Latest release: Sep 20, 2023
  • Number of updates: 626
  • Update frequency: every 6.0 days
  • Top authors: smashballoon (96.65%)Craig at Smash Balloon (3.51%)

Code review

54 tests

User reviews

1454 reviews

Install metrics

100,000+ active /6,738,117 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲4.43MB] [CPU: ▲23.07ms] 75% from 4 tests

This is a short check of server-side resources used by Smash Balloon Social Post Feed - Customizable Social Feeds Plugin
Please fix the following
  • RAM: The total memory usage must be kept under 10MB (currently 11.06MB on /wp-admin/admin.php?page=cff-setup)
PageMemory (MB)CPU Time (ms)
Home /7.25 ▲3.7954.80 ▲15.98
Dashboard /wp-admin7.95 ▲4.6081.86 ▲18.10
Posts /wp-admin/edit.php8.06 ▲4.7079.34 ▲32.83
Add New Post /wp-admin/post-new.php10.71 ▲4.82123.06 ▲26.54
Media Library /wp-admin/upload.php7.87 ▲4.6468.74 ▲31.66
YouTube Feed /wp-admin/admin.php?page=cff-top&tab=more7.8275.09
Settings /wp-admin/admin.php?page=cff-settings8.8981.86
All Feeds /wp-admin/admin.php?page=cff-feed-builder11.25171.81
About Us /wp-admin/admin.php?page=cff-about-us7.8659.35
oEmbeds /wp-admin/admin.php?page=cff-oembeds-manager7.8963.03
Setup /wp-admin/admin.php?page=cff-setup11.06130.65
Support /wp-admin/admin.php?page=cff-support8.8581.52
Reviews FeedNew! /wp-admin/admin.php?page=sbr7.6348.80
Facebook Feed /wp-admin/admin.php?page=cff-top7.8361.18

Server storage [IO: ▲6.03MB] [DB: ▲0.01MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 305 new files
Database: 4 new tables, 13 new options
New tables
wp_cff_feed_caches
wp_cff_feeds
wp_cff_sources
wp_cff_facebook_feed_locator
New WordPress options
cff_db_version
cff_usage_tracking_config
cff_show_access_token
cff_legacy_feed_settings
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
cff_newuser_notifications
cff_style_settings
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

An overview of browser requirements for Smash Balloon Social Post Feed - Customizable Social Feeds Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,026 ▲24014.13 ▼0.149.56 ▲7.5150.34 ▲9.26
Dashboard /wp-admin2,315 ▲1385.19 ▼0.47108.57 ▲16.5554.96 ▲10.84
Posts /wp-admin/edit.php2,223 ▲1232.47 ▲0.5048.60 ▲11.9546.27 ▲10.03
Add New Post /wp-admin/post-new.php1,582 ▲4521.30 ▲3.22655.99 ▼9.6739.54 ▼26.59
Media Library /wp-admin/upload.php1,511 ▲1144.60 ▲0.38114.99 ▼1.1554.43 ▲8.01
YouTube Feed /wp-admin/admin.php?page=cff-top&tab=more9002.2134.1722.11
Settings /wp-admin/admin.php?page=cff-settings4,2855.50133.81106.27
All Feeds /wp-admin/admin.php?page=cff-feed-builder5,57611.28167.50114.95
About Us /wp-admin/admin.php?page=cff-about-us1,8233.4264.1237.50
oEmbeds /wp-admin/admin.php?page=cff-oembeds-manager1,4963.2560.9332.35
Setup /wp-admin/admin.php?page=cff-setup2,6186.23107.7453.11
Support /wp-admin/admin.php?page=cff-support1,8413.6968.2267.20
Reviews FeedNew! /wp-admin/admin.php?page=sbr280.420.073.37
Facebook Feed /wp-admin/admin.php?page=cff-top8972.2233.0419.99

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

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
The smoke test was a success, however most plugin functionality was not tested

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
  • 69× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/custom-facebook-feed/admin/views/sections/settings_footer_cta.php
    • > /wp-content/plugins/custom-facebook-feed/admin/builder/templates/sections/feeds-list.php
    • > /wp-content/plugins/custom-facebook-feed/admin/builder/templates/sections/popup/source-instances.php
    • > /wp-content/plugins/custom-facebook-feed/admin/builder/templates/sections/popup/extensions-popup.php
    • > /wp-content/plugins/custom-facebook-feed/admin/builder/templates/sections/popup/feedtypes-popup.php
    • > /wp-content/plugins/custom-facebook-feed/inc/SB_Facebook_Data_Manager.php
    • > /wp-content/plugins/custom-facebook-feed/admin/builder/templates/sections/create-feed/single-album.php
    • > /wp-content/plugins/custom-facebook-feed/admin/builder/templates/preview/header.php
    • > /wp-content/plugins/custom-facebook-feed/templates/header.php
    • > /wp-content/plugins/custom-facebook-feed/admin/builder/templates/sections/popup/add-source-popup.php
  • 52× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CustomFacebookFeed\\Admin\\CFF_Onboarding_Wizard' not found in wp-content/plugins/custom-facebook-feed/admin/builder/templates/screens/onboarding-wizard.php:25
    • > PHP Warning
      include_once(CFF_BUILDER_DIRtemplates/sections/customizer/preview.php): failed to open stream: No such file or directory in wp-content/plugins/custom-facebook-feed/admin/builder/templates/screens/customizer.php on line 3
    • > PHP Warning
      Use of undefined constant CFF_BUILDER_URL - assumed 'CFF_BUILDER_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-facebook-feed/admin/builder/templates/sections/create-feed/single-album.php on line 17
    • > PHP Warning
      include_once(CFF_BUILDER_DIRtemplates/sections/create-feed/single-album.php): failed to open stream: No such file or directory in wp-content/plugins/custom-facebook-feed/admin/builder/templates/screens/select-feed.php on line 16
    • > PHP Warning
      Use of undefined constant CFF_BUILDER_DIR - assumed 'CFF_BUILDER_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-facebook-feed/admin/builder/templates/sections/feeds-list.php on line 8
    • > PHP Warning
      include_once(): Failed opening 'CFF_BUILDER_DIRtemplates/sections/feeds/legacy-feeds.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/custom-facebook-feed/admin/builder/templates/sections/feeds-list.php on line 3
    • > PHP Warning
      include_once(): Failed opening 'CFF_BUILDER_DIRtemplates/sections/create-feed/videos.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/custom-facebook-feed/admin/builder/templates/screens/select-feed.php on line 18
    • > PHP Fatal error
      Uncaught Error: Class 'CustomFacebookFeed\\Builder\\CFF_Feed_Builder' not found in wp-content/plugins/custom-facebook-feed/admin/builder/templates/builder.php:3
    • > PHP Warning
      include_once(): Failed opening 'CFF_BUILDER_DIRtemplates/sections/customizer/sidebar.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/custom-facebook-feed/admin/builder/templates/screens/customizer.php on line 2
    • > PHP Warning
      include_once(CFF_BUILDER_DIRtemplates/sections/customizer/sidebar.php): failed to open stream: No such file or directory in wp-content/plugins/custom-facebook-feed/admin/builder/templates/screens/customizer.php on line 2

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
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)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #9 (It's super easy to display your feed in any page or post) image missing
The official readme.txt is a good inspiration

custom-facebook-feed/custom-facebook-feed.php Passed 13 tests

The entry point to "Smash Balloon Social Post Feed - Customizable Social Feeds Plugin" version 4.2 is a PHP file that has certain tags in its header comment area
65 characters long description:
Add completely customizable Facebook feeds to your WordPress site

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected57,116 lines of code in 233 files:
LanguageFilesBlank linesComment linesLines of code
PHP1744,3156,84628,000
CSS1699651818,962
JavaScript247341,1745,834
SVG12002,851
PO File15145421,244
HTML34582176
JSON30049

PHP code 50% from 2 tests

This is a very shot review of cyclomatic complexity and code structure
Please fix the following
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 244)
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity41.71
▷ Minimum class complexity1.00
▷ Maximum class complexity504.00
Average method complexity5.07
▷ Minimum method complexity1.00
▷ Maximum method complexity244.00
Code structure
Namespaces8
Interfaces0
Traits1
Classes76
▷ Abstract classes11.32%
▷ Concrete classes7598.68%
▷ Final classes11.33%
Methods768
▷ Static methods33343.36%
▷ Public methods73595.70%
▷ Protected methods192.47%
▷ Private methods141.82%
Functions38
▷ Named functions3489.47%
▷ Anonymous functions410.53%
Constants40
▷ Global constants1435.00%
▷ Class constants2665.00%
▷ 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
58 compressed PNG files occupy 0.67MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/builder/assets/img/balloon.png1.10KB0.72KB▼ 34.28%
admin/builder/assets/img/timeline.png1.74KB1.86KB0.00%
assets/img/placeholder.png0.17KB0.16KB▼ 7.39%
admin/builder/assets/img/welcome-2.png3.43KB3.59KB0.00%
admin/assets/img/about/plugin-smtp.png7.04KB7.31KB0.00%