84% insta-gallery

Code Review | Social Feed Gallery

WordPress plugin Social Feed Gallery scored84%from 54 tests.

About plugin

  • Plugin page: insta-gallery
  • Plugin version: 4.2.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4
  • WordPress version: 6.3.1
  • First release: Dec 15, 2016
  • Latest release: Nov 17, 2023
  • Number of updates: 350
  • Update frequency: every 7.2 days
  • Top authors: quadlayers (85.14%)buntisoft (14.86%)

Code review

54 tests

User reviews

218 reviews

Install metrics

80,000+ active /2,919,592 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.80MB] [CPU: ▲2.54ms] Passed 4 tests

Analyzing server-side resources used by Social Feed Gallery
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.23 ▲0.7743.14 ▲4.71
Dashboard /wp-admin4.12 ▲0.8252.87 ▲3.71
Posts /wp-admin/edit.php4.19 ▲0.8454.13 ▲2.66
Add New Post /wp-admin/post-new.php6.76 ▲0.8792.67 ▼0.93
Media Library /wp-admin/upload.php4.00 ▲0.7846.27 ▲14.08

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 145 new files
Database: no new tables, 7 new options
New WordPress options
widget_qligg_widget
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Social Feed Gallery
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,042 ▲28013.58 ▼1.1811.26 ▲9.4638.01 ▼5.76
Dashboard /wp-admin2,340 ▲1625.56 ▼0.1499.13 ▼4.4543.09 ▼2.63
Posts /wp-admin/edit.php2,147 ▲472.03 ▲0.0639.01 ▼1.1035.86 ▲2.58
Add New Post /wp-admin/post-new.php1,707 ▲18122.29 ▼0.88716.30 ▲46.1937.41 ▼21.81
Media Library /wp-admin/upload.php1,444 ▲474.21 ▲0.0698.97 ▲0.4042.97 ▲1.27

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • widget_recent-posts
    • widget_qligg_widget
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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 take a closer look at the following
  • 41× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'QuadLayers\\IGG\\Api\\Rest\\Endpoints\\Backend\\Base' not found in wp-content/plugins/insta-gallery/lib/api/rest/endpoints/backend/settings/class-save.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'QuadLayers\\IGG\\Api\\Rest\\Endpoints\\Base' not found in wp-content/plugins/insta-gallery/lib/api/rest/endpoints/frontend/class-hashtag-media.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'QuadLayers\\IGG\\Models\\Base' not found in wp-content/plugins/insta-gallery/lib/models/class-account.php:12
    • > PHP Fatal error
      Trait 'QuadLayers\\WP_Notice_Plugin_Promote\\Traits\\PluginActions' not found in wp-content/plugins/insta-gallery/jetpack_vendor/quadlayers/wp-notice-plugin-promote/src/PluginBySlugV2.php on line 20
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-plugin-install-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/insta-gallery/jetpack_vendor/quadlayers/wp-plugin-suggestions/src/Table.php on line 14
    • > PHP Fatal error
      Uncaught Error: Class 'QuadLayers\\IGG\\Api\\Fetch\\Business\\Base' not found in wp-content/plugins/insta-gallery/lib/api/fetch/business/user-profile/class-get.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function QuadLayers\\IGG\\load_plugin_textdomain() in wp-content/plugins/insta-gallery/lib/class-plugin.php:19
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-plugin-install-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/insta-gallery/jetpack_vendor/quadlayers/wp-plugin-suggestions/src/Table.php on line 14
    • > PHP Fatal error
      Trait 'QuadLayers\\WP_Notice_Plugin_Promote\\Traits\\PluginActions' not found in wp-content/plugins/insta-gallery/jetpack_vendor/quadlayers/wp-notice-plugin-promote/src/PluginBySlug.php on line 20
    • > PHP Fatal error
      Uncaught Error: Class 'QuadLayers\\IGG\\Api\\Rest\\Endpoints\\Base' not found in wp-content/plugins/insta-gallery/lib/api/rest/endpoints/frontend/class-user-media.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% 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
Attributes that need to be fixed: Please take inspiration from this readme.txt

insta-gallery/insta-gallery.php Passed 13 tests

This is the main PHP file of "Social Feed Gallery" version 4.2.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
92 characters long description:
Display beautiful and responsive galleries on your website from your Instagram feed account.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected6,771 lines of code in 113 files:
LanguageFilesBlank linesComment linesLines of code
PHP871,2652,7195,471
Markdown122710734
JSON100458
JavaScript81236103
CSS41114
SVG1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity10.81
▷ Minimum class complexity1.00
▷ Maximum class complexity91.00
Average method complexity2.63
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces35
Interfaces2
Traits3
Classes58
▷ Abstract classes58.62%
▷ Concrete classes5391.38%
▷ Final classes11.89%
Methods336
▷ Static methods9728.87%
▷ Public methods27983.04%
▷ Protected methods257.44%
▷ Private methods329.52%
Functions34
▷ Named functions12.94%
▷ Anonymous functions3397.06%
Constants29
▷ Global constants29100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
12 compressed PNG files occupy 4.31MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/backend/img/masonry.png0.20KB0.19KB▼ 4.81%
assets/backend/img/carousel.png0.33KB0.34KB0.00%
assets/backend/img/instagram-feed.png354.62KB377.50KB0.00%
assets/backend/img/highlight.png0.18KB0.18KB▼ 1.61%
assets/backend/img/instagram-feed-popup.png450.88KB489.55KB0.00%