83% social-feeds-for-elementor

Code Review | Social Feeds for Elementor

WordPress plugin Social Feeds for Elementor scored83%from 54 tests.

About plugin

  • Plugin page: social-feeds-for-...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Oct 26, 2021
  • Latest release: Dec 31, 2022
  • Number of updates: 23
  • Update frequency: every 18.8 days
  • Top authors: junkthemedotcom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /905 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Social Feeds for Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.37 ▲1.29
Dashboard /wp-admin3.33 ▲0.0246.31 ▼2.91
Posts /wp-admin/edit.php3.38 ▲0.0246.24 ▲3.44
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.17 ▼2.53
Media Library /wp-admin/upload.php3.25 ▲0.0236.04 ▲3.50

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Social Feeds for Elementor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲6414.74 ▲0.351.71 ▼0.2044.27 ▲1.02
Dashboard /wp-admin2,213 ▲255.83 ▼0.01113.62 ▼5.4940.42 ▼4.22
Posts /wp-admin/edit.php2,095 ▲62.01 ▼0.0139.07 ▲2.0840.32 ▲7.28
Add New Post /wp-admin/post-new.php1,524 ▲1017.43 ▼0.16678.77 ▼9.4465.48 ▲15.27
Media Library /wp-admin/upload.php1,398 ▲74.29 ▲0.08109.18 ▲6.3546.90 ▲2.53

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/social-feeds-for-elementor/widgets/social-f.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/social-feeds-for-elementor/widgets/social-t.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention: Please take inspiration from this readme.txt

social-feeds-for-elementor/social-feeds-for-em.php 85% from 13 tests

"Social Feeds for Elementor" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("social-feeds-for-elementor.php" instead of "social-feeds-for-em.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected375 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP39671375

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity6.33
▷ Minimum class complexity3.00
▷ Maximum class complexity8.00
Average method complexity1.62
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods26
▷ Static methods13.85%
▷ Public methods2076.92%
▷ Protected methods415.38%
▷ Private methods27.69%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants240.00%
▷ Class constants360.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin