66% instagram-slider-widget

Code Review | Social Slider Feed

WordPress plugin Social Slider Feed scored66%from 54 tests.

About plugin

  • Plugin page: instagram-slider-...
  • Plugin version: 2.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Feb 3, 2014
  • Latest release: Nov 7, 2022
  • Number of updates: 243
  • Update frequency: every 13.2 days
  • Top authors: jetonr (74.07%)webtemyk (16.05%)webcraftic (5.76%)creativemotion (3.29%)studiopioneer (2.47%)

Code review

54 tests

User reviews

120 reviews

Install metrics

60,000+ active /2,442,202 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Social Slider Feed
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.2940.82 ▲5.36
Dashboard /wp-admin3.99 ▲0.6948.32 ▼3.27
Posts /wp-admin/edit.php4.04 ▲0.6850.70 ▲3.49
Add New Post /wp-admin/post-new.php6.52 ▲0.6495.27 ▼4.25
Media Library /wp-admin/upload.php3.85 ▲0.6238.03 ▲4.09
Logs /wp-admin/admin.php?page=wis_logger-wisw4.0533.25
Profiles /wp-admin/admin.php?page=settings-wisw4.08315.78
About /wp-admin/admin.php?page=about-wisw3.6725.30
License /wp-admin/admin.php?page=license-wisw3.6733.75
Feeds /wp-admin/admin.php?page=feeds-wisw3.8534.58

Server storage [IO: ▲5.58MB] [DB: ▲0.07MB] 67% from 3 tests

A short overview of filesystem and database impact
Please try to fix the following items
  • Illegal file modification found: 2 files (0.01KB) outside of "wp-content/plugins/instagram-slider-widget/" and "wp-content/uploads/"
    • (new file) wp-content/logs/wisw/.htaccess
    • (new file) wp-content/logs/wisw/index.html
Filesystem: 499 new files
Database: no new tables, 11 new options
New WordPress options
widget_recent-posts
widget_wyoutube_feed
can_compress_scripts
widget_wfacebook_feed
wis_plugin_version
widget_theysaidso_widget
widget_jr_insta_slider
db_upgraded
wis_plugin_activated
widget_recent-comments
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Social Slider Feed
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,953 ▲19213.48 ▼1.138.20 ▲6.6142.04 ▲1.24
Dashboard /wp-admin2,277 ▲1035.62 ▲0.1182.09 ▼7.1440.21 ▼3.88
Posts /wp-admin/edit.php2,186 ▲892.05 ▲0.0840.73 ▲4.2736.33 ▲0.87
Add New Post /wp-admin/post-new.php1,581 ▲5523.11 ▼0.55681.12 ▲10.2060.38 ▲5.16
Media Library /wp-admin/upload.php1,462 ▲594.21 ▼0.04103.66 ▲6.2144.15 ▲0.50
Logs /wp-admin/admin.php?page=wis_logger-wisw1,0391.8835.6643.98
Profiles /wp-admin/admin.php?page=settings-wisw1,2251.9236.8645.07
About /wp-admin/admin.php?page=about-wisw1,8189.02269.3989.59
License /wp-admin/admin.php?page=license-wisw1,1221.9228.0748.75
Feeds /wp-admin/admin.php?page=feeds-wisw1,2011.8734.2338.74

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 11 options
    • widget_wfacebook_feed
    • widget_jr_insta_slider
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • wis_plugin_activated
    • widget_recent-comments
    • widget_recent-posts
    • wis_plugin_version
    • can_compress_scripts
    • db_upgraded
    • ...

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=about-wisw
    • > Notice in wp-content/plugins/instagram-slider-widget/admin/class-page.php+116
    Undefined property: WIS_AboutPage::$show_right_sidebar
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=license-wisw
    • > Notice in wp-content/plugins/instagram-slider-widget/admin/class-page.php+116
    Undefined property: WIS_LicensePage::$show_right_sidebar

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 10× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/instagram-slider-widget/components/instagram/html_templates/templates/thumbs-no-border.php
    • > /wp-content/plugins/instagram-slider-widget/admin/views/page-profiles.php
    • > /wp-content/plugins/instagram-slider-widget/components/instagram/html_templates/templates/slider.php
    • > /wp-content/plugins/instagram-slider-widget/admin/views/page-feeds.php
    • > /wp-content/plugins/instagram-slider-widget/components/facebook/html_templates/masonry.php
    • > /wp-content/plugins/instagram-slider-widget/components/youtube/html_templates/default.php
    • > /wp-content/plugins/instagram-slider-widget/components/facebook/html_templates/popup.php
    • > /wp-content/plugins/instagram-slider-widget/components/instagram/html_templates/templates/slider-overlay.php
    • > /wp-content/plugins/instagram-slider-widget/admin/views/page-manual.php
    • > /wp-content/plugins/instagram-slider-widget/components/instagram/html_templates/templates/thumbs.php
  • 196× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_plugin_version() on null in wp-content/plugins/instagram-slider-widget/components/instagram/load.php:4
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/instagram-slider-widget/components/facebook/html_templates/popup.php on line 11
    • > PHP Fatal error
      Uncaught Error: Class 'WIS_Feed' not found in wp-content/plugins/instagram-slider-widget/components/youtube/includes/class-youtube-feed.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'WBCR\\Factory_Templates_110\\Pages\\Step' not found in wp-content/plugins/instagram-slider-widget/libs/factory/templates/pages/setup-parts/class-step-form.php:11
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_plugin_version() on null in wp-content/plugins/instagram-slider-widget/components/facebook/load.php:4
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/instagram-slider-widget/components/facebook/html_templates/form-feed.php on line 6
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/instagram-slider-widget/components/instagram/html_templates/templates/slider.php on line 6
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/instagram-slider-widget/components/facebook/html_templates/popup.php on line 11
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/instagram-slider-widget/components/youtube/html_templates/widget_settings.php on line 9
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/instagram-slider-widget/components/instagram/html_templates/templates/feed_header.php on line 11

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=feeds-wisw
    • > Deprecation (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=6.3.1 1 Listener added for a synchronous 'DOMSubtreeModified' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention: Please take inspiration from this readme.txt

instagram-slider-widget/instaram_slider.php 92% from 13 tests

The principal PHP file in "Social Slider Feed" v. 2.1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("instagram-slider-widget.php" instead of "instaram_slider.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin37,322 lines of code in 368 files:
LanguageFilesBlank linesComment linesLines of code
PHP2134,87710,63419,208
CSS641,63859810,577
JavaScript676301,2982,478
LESS6409911,973
JSON1001,810
PO File83535821,011
SVG860263
Markdown1102

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity14.34
▷ Minimum class complexity1.00
▷ Maximum class complexity171.00
Average method complexity3.07
▷ Minimum method complexity1.00
▷ Maximum method complexity75.00
Code structure
Namespaces21
Interfaces2
Traits1
Classes157
▷ Abstract classes1912.10%
▷ Concrete classes13887.90%
▷ Final classes21.45%
Methods1,062
▷ Static methods696.50%
▷ Public methods84179.19%
▷ Protected methods15614.69%
▷ Private methods656.12%
Functions37
▷ Named functions2054.05%
▷ Anonymous functions1745.95%
Constants114
▷ Global constants8271.93%
▷ Class constants3228.07%
▷ Public constants32100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
49 PNG files occupy 1.98MB with 1.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
components/youtube/admin/assets/img/manual/1.png98.22KB37.99KB▼ 61.32%
components/youtube/admin/assets/img/manual/10.png33.43KB13.69KB▼ 59.04%
admin/assets/img/instagram.png15.80KB10.50KB▼ 33.57%
admin/assets/img/demo/5.png3.99KB1.35KB▼ 66.23%
components/youtube/admin/assets/img/about/2019-12-09_12-34-33.png790.18KB205.08KB▼ 74.05%