56% flow-flow-social-streams

Code Review | Flow-Flow Social Feed Stream

WordPress plugin Flow-Flow Social Feed Stream scored56%from 54 tests.

About plugin

  • Plugin page: flow-flow-social-...
  • Plugin version: 4.7.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1
  • WordPress version: 6.3.1
  • First release: Jul 22, 2015
  • Latest release: Mar 28, 2023
  • Number of updates: 262
  • Update frequency: every 10.7 days
  • Top authors: looks_awesome (100%)

Code review

54 tests

User reviews

91 reviews

Install metrics

10,000+ active /620,123 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.12MB] [CPU: ▲2.24ms] Passed 4 tests

This is a short check of server-side resources used by Flow-Flow Social Feed Stream
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.22 ▲0.7542.06 ▲6.54
Dashboard /wp-admin4.56 ▲1.2155.34 ▼6.48
Posts /wp-admin/edit.php4.61 ▲1.2559.18 ▲13.28
Add New Post /wp-admin/post-new.php7.16 ▲1.2792.79 ▼4.40
Media Library /wp-admin/upload.php4.48 ▲1.2549.41 ▲17.07
Flow-Flow Lite /wp-admin/admin.php?page=flow-flow-admin4.5948.56
Social Apps /wp-admin/admin.php?page=flow-flow4.4644.34

Server storage [IO: ▲7.94MB] [DB: ▲0.01MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
It is recommended to fix the following issues
  • There were 1 file (0.00KB) illegally modified outside of "wp-content/plugins/flow-flow-social-streams/" and "wp-content/uploads/"
    • (new file) wp-content/resources/flow-flow/css/.empty
Filesystem: 411 new files
Database: 9 new tables, 7 new options
New tables
wp_ff_cache
wp_ff_post_media
wp_ff_options
wp_ff_streams_sources
wp_ff_snapshots
wp_ff_image_cache
wp_ff_comments
wp_ff_streams
wp_ff_posts
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_ff_widget
widget_theysaidso_widget

Browser metrics Passed 4 tests

Flow-Flow Social Feed Stream: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,941 ▲19513.97 ▼0.584.75 ▲2.9738.81 ▼3.79
Dashboard /wp-admin2,292 ▲1015.06 ▼0.84107.89 ▲8.1877.27 ▲34.04
Posts /wp-admin/edit.php2,175 ▲862.34 ▲0.3341.14 ▲7.6136.06 ▼0.13
Add New Post /wp-admin/post-new.php1,734 ▲20622.55 ▲4.31745.72 ▲105.5053.64 ▼4.97
Media Library /wp-admin/upload.php1,461 ▲734.30 ▲0.09121.22 ▲25.2349.30 ▲7.57
Flow-Flow Lite /wp-admin/admin.php?page=flow-flow-admin4,1365.49152.77277.57
Social Apps /wp-admin/admin.php?page=flow-flow1,1492.0832.2560.37

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The plugin did not uninstall successfully, leaving 9 tables in the database
    • wp_ff_streams_sources
    • wp_ff_image_cache
    • wp_ff_comments
    • wp_ff_snapshots
    • wp_ff_post_media
    • wp_ff_streams
    • wp_ff_posts
    • wp_ff_options
    • wp_ff_cache
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_ff_widget
    • db_upgraded

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=flow-flow-admin
    • > Notice in wp-content/plugins/flow-flow-social-streams/includes/cache/FFFacebookCacheManager.php+146
    Trying to access array offset on value of type bool

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 items
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/flow-flow-social-streams/views/footer.php
    • > /wp-content/plugins/flow-flow-social-streams/views/stream-template-css.php
    • > /wp-content/plugins/flow-flow-social-streams/views/stream-template-css-l.php
  • 116× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined property: stdClass::$bgcolor in wp-content/plugins/flow-flow-social-streams/views/stream-template-css.php on line 53
    • > PHP Notice
      Undefined property: stdClass::$cardcolor in wp-content/plugins/flow-flow-social-streams/views/stream-template-css-l.php on line 81
    • > PHP Notice
      Undefined property: stdClass::$talign in wp-content/plugins/flow-flow-social-streams/views/stream-template-css.php on line 164
    • > PHP Fatal error
      Uncaught Error: Interface 'Cake\\Core\\PluginInterface' not found in wp-content/plugins/flow-flow-social-streams/libs/cakephp/core/BasePlugin.php:25
    • > PHP Fatal error
      Uncaught Error: Interface 'flow\\social\\FFInstagramAPI' not found in wp-content/plugins/flow-flow-social-streams/libs/FlowSocial/src/flow/social/FFInstagramOpenAPI.php:19
    • > PHP Fatal error
      Uncaught Error: Interface 'Cake\\Core\\Configure\\ConfigEngineInterface' not found in wp-content/plugins/flow-flow-social-streams/libs/cakephp/core/Configure/Engine/JsonConfig.php:39
    • > PHP Notice
      Undefined property: stdClass::$cardcolor in wp-content/plugins/flow-flow-social-streams/views/stream-template-css.php on line 143
    • > PHP Notice
      Undefined property: stdClass::$talign in wp-content/plugins/flow-flow-social-streams/views/stream-template-css-l.php on line 116
    • > PHP Notice
      Undefined property: stdClass::$headingcolor in wp-content/plugins/flow-flow-social-streams/views/stream-template-css.php on line 17
    • > PHP Notice
      Undefined property: stdClass::$textcolor in wp-content/plugins/flow-flow-social-streams/views/stream-template-css.php on line 161

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 user-side errors
    • > GET request to /wp-admin/admin.php?page=flow-flow-admin
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
    • > GET request to /wp-admin/admin.php?page=flow-flow-admin
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
    • > GET request to /wp-admin/admin.php?page=flow-flow
    • > Network (severe)
    wp-content/plugins//flow-flow/assets/social-streams-logo.svg - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Tags: There are too many tags (25 tag instead of maximum 10)
Please take inspiration from this readme.txt

flow-flow-social-streams/flow-flow.php 85% from 13 tests

The main PHP script in "Flow-Flow Social Feed Stream" version 4.7.3 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("flow-flow-social-streams.php" instead of "flow-flow.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin35,745 lines of code in 287 files:
LanguageFilesBlank linesComment linesLines of code
PHP2384,27110,38023,327
JavaScript112,19169010,108
PO File10393641961
JSON600458
Markdown62070446
SVG936425
XML12014
CSS62146

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity17.03
▷ Minimum class complexity1.00
▷ Maximum class complexity226.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity78.00
Code structure
Namespaces36
Interfaces23
Traits8
Classes187
▷ Abstract classes136.95%
▷ Concrete classes17493.05%
▷ Final classes00.00%
Methods1,903
▷ Static methods32216.92%
▷ Public methods1,26466.42%
▷ Protected methods47324.86%
▷ Private methods1668.72%
Functions21
▷ Named functions1780.95%
▷ Anonymous functions419.05%
Constants131
▷ Global constants1813.74%
▷ Class constants11386.26%
▷ Public constants113100.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
50 PNG files occupy 1.22MB with 0.49MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/carousel.png1.18KB0.99KB▼ 16.58%
assets/icon_ff_addon_1.png6.66KB3.36KB▼ 49.49%
assets/fs.png25.32KB9.54KB▼ 62.33%
assets/cloud_toggle_bg2.png0.97KB0.73KB▼ 24.29%
assets/tab-icon-settings.png0.97KB0.52KB▼ 46.78%