84% social-feed-widgets-for-elementor-using-smash-balloon

Code Review | Social Feed Widgets For Elementor

WordPress plugin Social Feed Widgets For Elementor scored84%from 54 tests.

About plugin

  • Plugin page: social-feed-widge...
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.1.1
  • WordPress version: 6.3.1
  • First release: Aug 20, 2021
  • Latest release: Nov 21, 2022
  • Number of updates: 7
  • Update frequency: every 65.6 days
  • Top authors: coolplugins (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

700+ active /4,948 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.55ms] Passed 4 tests

This is a short check of server-side resources used by Social Feed Widgets For Elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.06 ▼4.42
Dashboard /wp-admin3.32 ▲0.0245.87 ▼5.20
Posts /wp-admin/edit.php3.37 ▲0.0248.05 ▼2.08
Add New Post /wp-admin/post-new.php5.90 ▲0.0294.30 ▼5.65
Media Library /wp-admin/upload.php3.24 ▲0.0232.05 ▼2.92

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
db_upgraded
sfafe-type
widget_theysaidso_widget
can_compress_scripts
sfafe-v
sfafe-installDate
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Social Feed Widgets For Elementor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲10913.77 ▼1.011.99 ▲0.0542.72 ▲1.25
Dashboard /wp-admin2,225 ▲375.80 ▲0.9198.40 ▼4.4441.15 ▼1.10
Posts /wp-admin/edit.php2,108 ▲162.07 ▲0.0741.53 ▲1.5536.46 ▼1.31
Add New Post /wp-admin/post-new.php1,528 ▼017.54 ▼5.62586.99 ▼73.5652.14 ▲11.65
Media Library /wp-admin/upload.php1,401 ▲164.23 ▼0.0295.08 ▼8.7442.32 ▼1.53

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 9 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • sfafe-installDate
    • widget_recent-posts
    • sfafe-v
    • db_upgraded
    • sfafe-type

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Almost there! Just fix the following items
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sfafe\\feedback\\add_action() in wp-content/plugins/social-feed-widgets-for-elementor-using-smash-balloon/admin/feedback/admin-feedback-form.php:18
    • > PHP Warning
      Use of undefined constant SFAFE_URL - assumed 'SFAFE_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/social-feed-widgets-for-elementor-using-smash-balloon/admin/feedback/admin-feedback-form.php on line 167
    • > PHP Warning
      Use of undefined constant SFAFE_VERSION - assumed 'SFAFE_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/social-feed-widgets-for-elementor-using-smash-balloon/admin/feedback/admin-feedback-form.php on line 167
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/social-feed-widgets-for-elementor-using-smash-balloon/widgets/sfafe-instagram-widget.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: instagram gallery, instagram feed, instagram, elementor, social feed...

social-feed-widgets-for-elementor-using-smash-balloon/social-feed-widgets-for-elementor-using-smash-balloon.php 92% from 13 tests

The principal PHP file in "Social Feed Widgets For Elementor" v. 1.0.4 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Success! There were no dangerous files found in this plugin1,799 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP62021361,311
CSS53325318
JavaScript42213170

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity13.60
▷ Minimum class complexity1.00
▷ Maximum class complexity39.00
Average method complexity2.97
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods32
▷ Static methods26.25%
▷ Public methods2681.25%
▷ Protected methods39.38%
▷ Private methods39.38%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin