84% slider-and-carousel-plus-widget-for-instagram

Code Review | Slider and Carousel Plus Widget for Social Media

WordPress plugin Slider and Carousel Plus Widget for Social Media scored 84% from 54 tests.

About plugin

  • Plugin page: slider-and-carous...
  • Plugin version: 1.9.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 5.8.1
  • First release: Mar 20, 2017
  • Latest release: Feb 23, 2022
  • Number of updates: 58
  • Update frequency: every 31.0 days
  • Top authors: anoopranawat (62.07%)wponlinesupport (39.66%)

Code review

54 tests

User reviews

18 reviews

Install metrics

10,000+ active / 100,405 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
Installer ran successfully

Server metrics [RAM: ▲0.42MB] [CPU: ▼148.33ms] Passed 4 tests

An overview of server-side resources used by Slider and Carousel Plus Widget for Social Media
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.24 ▲0.4029.81 ▲3.75
Dashboard /wp-admin3.54 ▲0.4738.93 ▼3.76
Posts /wp-admin/edit.php3.59 ▲0.4734.05 ▼1.39
Add New Post /wp-admin/post-new.php5.84 ▲0.3976.31 ▼591.16
Media Library /wp-admin/upload.php3.42 ▲0.4130.08 ▲3.00
Insta Feed - WPOS /wp-admin/admin.php?page=iscwp-settings3.3925.21
Getting Started /wp-admin/admin.php?page=iscw-designs3.3925.60

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 44 new files
Database: no new tables, 2 new options
New WordPress options
widget_iscw_insta_grid
wpos_anylc_redirect

Browser metrics Passed 4 tests

Checking browser requirements for Slider and Carousel Plus Widget for Social Media
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,723 ▲12216.03 ▲0.395.07 ▲0.1375.73 ▲2.71
Dashboard /wp-admin2,978 ▲796.03 ▼0.11118.09 ▼17.15161.65 ▼11.86
Posts /wp-admin/edit.php2,773 ▲333.24 ▲0.0161.97 ▼1.55140.56 ▼3.27
Add New Post /wp-admin/post-new.php2,520 ▼1,29516.58 ▼2.16385.06 ▼74.88169.34 ▲3.74
Media Library /wp-admin/upload.php1,781 ▲295.55 ▲0.03142.76 ▼0.64186.29 ▼10.01
Insta Feed - WPOS /wp-admin/admin.php?page=iscwp-settings1,1012.4755.41113.84
Getting Started /wp-admin/admin.php?page=iscw-designs1,2932.4156.62114.79

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 2 options in the database
    • wpos_anylc_redirect
    • widget_iscw_insta_grid

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: count in wp-content/plugins/slider-and-carousel-plus-widget-for-instagram/templates/popup/popup.php on line 1
    • > PHP Notice
      Undefined variable: unique in wp-content/plugins/slider-and-carousel-plus-widget-for-instagram/templates/popup/popup.php on line 1
    • > PHP Notice
      Undefined variable: popup_attr in wp-content/plugins/slider-and-carousel-plus-widget-for-instagram/templates/popup/popup.php on line 1
    • > PHP Notice
      Undefined variable: instagram_link in wp-content/plugins/slider-and-carousel-plus-widget-for-instagram/templates/design-1.php on line 5
    • > PHP Notice
      Undefined variable: wrpper_cls in wp-content/plugins/slider-and-carousel-plus-widget-for-instagram/templates/design-1.php on line 1
    • > PHP Notice
      Undefined variable: height_css in wp-content/plugins/slider-and-carousel-plus-widget-for-instagram/templates/design-1.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/slider-and-carousel-plus-widget-for-instagram/templates/design-1.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/slider-and-carousel-plus-widget-for-instagram/templates/popup/design-1.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/slider-and-carousel-plus-widget-for-instagram/templates/popup/popup.php:3
    • > PHP Notice
      Undefined variable: offset_css in wp-content/plugins/slider-and-carousel-plus-widget-for-instagram/templates/design-1.php on line 1

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: You are using too many tags: 23 tag instead of maximum 10
You can take inspiration from this readme.txt

slider-and-carousel-plus-widget-for-instagram/slider-carousel-plus-widget-for-instagram.php 92% from 13 tests

The entry point to "Slider and Carousel Plus Widget for Social Media" version 1.9.3 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("slider-and-carousel-plus-widget-for-instagram.php" instead of "slider-carousel-plus-widget-for-instagram.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected5,632 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
PHP206197652,068
CSS67219663
JavaScript56613230

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity27.86
▷ Minimum class complexity3.00
▷ Maximum class complexity80.00
Average method complexity5.95
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes114.29%
Methods38
▷ Static methods12.63%
▷ Public methods3694.74%
▷ Protected methods00.00%
▷ Private methods25.26%
Functions41
▷ Named functions41100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/arrow-left.png0.36KB0.18KB▼ 50.00%
assets/images/arrow-right.png0.35KB0.18KB▼ 49.17%
assets/images/close.png0.84KB0.85KB0.00%
wpos-analytics/assets/images/wpos-logo.png16.78KB9.19KB▼ 45.21%
wpos-analytics/assets/images/icon.png11.25KB2.61KB▼ 76.80%