66% wp-social-feed

Code Review | Social Feed | Custom Feed for Social Media Networks

WordPress plugin Social Feed | Custom Feed for Social Media Networks scored66%from 54 tests.

About plugin

  • Plugin page: wp-social-feed
  • Plugin version: 2.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Dec 21, 2016
  • Latest release: May 30, 2022
  • Number of updates: 115
  • Update frequency: every 17.3 days
  • Top authors: arrowplugins (100%)

Code review

54 tests

User reviews

40 reviews

Install metrics

2,000+ active /96,318 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: ▲0.24MB] [CPU: ▼1.96ms] Passed 4 tests

Server-side resources used by Social Feed | Custom Feed for Social Media Networks
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2337.64 ▼3.32
Dashboard /wp-admin3.56 ▲0.2566.68 ▲14.20
Posts /wp-admin/edit.php3.67 ▲0.3150.69 ▲2.89
Add New Post /wp-admin/post-new.php6.14 ▲0.2585.09 ▼10.32
Media Library /wp-admin/upload.php3.46 ▲0.2236.78 ▲2.90
All Social Feeds /wp-admin/edit.php?post_type=sfbap1_social_feed3.5340.36
Our Plugins /wp-admin/edit.php?post_type=sfbap1_social_feed&page=sfbap1_our_plugins3.4641.19
Support & Docs /wp-admin/edit.php?post_type=sfbap1_social_feed&page=sfbap1_form_support3.4839.66
Add New /wp-admin/post-new.php?post_type=sfbap1_social_feed3.7367.30
Rate us /wp-admin/edit.php?post_type=sfbap1_social_feed&page=sfbap1_rate_us_plugins3.4537.77

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 255 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Social Feed | Custom Feed for Social Media Networks
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,094 ▲34816.61 ▲2.266.55 ▲4.7538.82 ▼4.01
Dashboard /wp-admin2,406 ▲2287.01 ▲1.39115.16 ▲0.1337.87 ▼5.39
Posts /wp-admin/edit.php2,334 ▲2344.54 ▲2.5259.44 ▲23.2034.35 ▼1.86
Add New Post /wp-admin/post-new.php1,577 ▲4923.54 ▲0.31662.12 ▼11.5436.56 ▼17.04
Media Library /wp-admin/upload.php1,474 ▲745.95 ▲1.7596.34 ▼5.9538.41 ▼7.19
All Social Feeds /wp-admin/edit.php?post_type=sfbap1_social_feed1,3064.5054.6527.57
Our Plugins /wp-admin/edit.php?post_type=sfbap1_social_feed&page=sfbap1_our_plugins1,2214.2753.49120.48
Support & Docs /wp-admin/edit.php?post_type=sfbap1_social_feed&page=sfbap1_form_support1,1454.3150.8935.05
Add New /wp-admin/post-new.php?post_type=sfbap1_social_feed3,12810.24392.27170.99
Rate us /wp-admin/edit.php?post_type=sfbap1_social_feed&page=sfbap1_rate_us_plugins1,0644.3355.1029.76

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/post-new.php?post_type=sfbap1_social_feed
    • > Notice in wp-content/plugins/wp-social-feed/includes/sfbap1-settings-page.php+963
    Undefined index: post
    • > GET request to /wp-admin/post-new.php?post_type=sfbap1_social_feed
    • > Notice in wp-content/plugins/wp-social-feed/includes/sfbap1-settings-page.php+964
    Undefined index: action

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
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-social-feed/js/template.php
    • > /wp-content/plugins/wp-social-feed/includes/sfbap1-rate-us.php
    • > /wp-content/plugins/wp-social-feed/includes/sfbap1-landing-page.php
  • 8× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-social-feed/includes/sfbap1-save-post.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-social-feed/includes/sfbap1-post-meta-boxes.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/wp-social-feed/includes/sfbap1-settings-page.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-social-feed/includes/sfbap1-our-plugins.php:81
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-social-feed/includes/sfbap1-shortcode.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-social-feed/includes/sfbap1-enqueue-scripts.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-social-feed/includes/sfbap1-post-type.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-social-feed/includes/sfbap1-custom-columns.php: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/post-new.php?post_type=sfbap1_social_feed
    • > Network (severe)
    https://www.arrowplugins.com/1.gif - Failed to load resource: the server responded with a status of 403 ()
    • > GET request to /wp-admin/post-new.php?post_type=sfbap1_social_feed
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
    • > GET request to /wp-admin/post-new.php?post_type=sfbap1_social_feed
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
    • > GET request to /wp-admin/post-new.php?post_type=sfbap1_social_feed
    • > Other (severe) in unknown
    chrome-error://chromewebdata/ - Refused to display 'https://developers.google.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 74 tag instead of maximum 10
You can look at the official readme.txt

wp-social-feed/social-feed-by-arrowplugins.php 92% from 13 tests

"Social Feed | Custom Feed for Social Media Networks" version 2.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-social-feed.php" instead of "social-feed-by-arrowplugins.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected43,556 lines of code in 201 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1815,0005,21139,581
PHP145641983,644
CSS21910248
HTML310052
Bourne Shell112031

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions22
▷ Named functions2195.45%
▷ Anonymous functions14.55%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
45 PNG files occupy 3.28MB with 2.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/images/sslogo.png28.92KB5.27KB▼ 81.78%
includes/images/promotion.png135.30KB35.01KB▼ 74.13%
includes/images/fb-info.png0.40KB0.27KB▼ 32.35%
includes/images/template3.png255.03KB84.38KB▼ 66.92%
includes/images/p-product.png70.40KB13.37KB▼ 81.01%