73% ultimate-feed-gallery

Code Review | Ultimate Social Feed Gallery

WordPress plugin Ultimate Social Feed Gallery scored73%from 54 tests.

About plugin

  • Plugin page: ultimate-feed-gal...
  • Plugin version: 1.7.13
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Sep 22, 2020
  • Latest release: Feb 15, 2023
  • Number of updates: 95
  • Update frequency: every 9.2 days
  • Top authors: darell (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,537 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 gracefully, with no errors

Server metrics [RAM: ▲0.52MB] [CPU: ▲1.41ms] Passed 4 tests

An overview of server-side resources used by Ultimate Social Feed Gallery
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.84 ▲0.3939.87 ▼1.72
Dashboard /wp-admin3.87 ▲0.5748.73 ▲0.92
Posts /wp-admin/edit.php3.98 ▲0.6353.91 ▼1.09
Add New Post /wp-admin/post-new.php6.47 ▲0.58100.62 ▲16.46
Media Library /wp-admin/upload.php3.79 ▲0.5641.96 ▲7.54
Settings ⇪ /wp-admin/admin.php?page=ultimate-instagram-integrations3.8444.09
Upgrade   ➤ /wp-admin/admin.php?page=ultimate-instagram-upgrade3.8243.91
Dashboard /wp-admin/admin.php?page=ultimate-instagram3.8341.20
New Campaigns /wp-admin/admin.php?page=ultimate-instagram-campaign-wizard3.8743.35
Campaigns /wp-admin/admin.php?page=ultimate-instagram-campaign3.8645.39

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 93 new files
Database: no new tables, 8 new options
New WordPress options
ultimate_instagram_addons
widget_theysaidso_widget
ultimate_instagram_recent_log_file
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Ultimate Social Feed Gallery
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,987 ▲23014.29 ▼0.3912.58 ▲10.5038.08 ▼0.92
Dashboard /wp-admin2,283 ▲985.93 ▲0.14103.98 ▲1.1140.91 ▲0.93
Posts /wp-admin/edit.php2,169 ▲772.23 ▲0.2442.16 ▲4.6438.81 ▲2.99
Add New Post /wp-admin/post-new.php1,585 ▲7123.39 ▲5.90641.49 ▼48.8647.21 ▼5.84
Media Library /wp-admin/upload.php1,465 ▲744.32 ▲0.09101.98 ▲3.6249.29 ▲4.36
Settings ⇪ /wp-admin/admin.php?page=ultimate-instagram-integrations1,5755.3174.61154.89
Upgrade   ➤ /wp-admin/admin.php?page=ultimate-instagram-upgrade1,5815.1963.7650.34
Dashboard /wp-admin/admin.php?page=ultimate-instagram1,5295.1665.16134.46
New Campaigns /wp-admin/admin.php?page=ultimate-instagram-campaign-wizard1,8795.3257.0382.52
Campaigns /wp-admin/admin.php?page=ultimate-instagram-campaign1,4185.1660.50112.26

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 were found after uninstall: 8 options
    • theysaidso_admin_options
    • widget_recent-comments
    • ultimate_instagram_addons
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • ultimate_instagram_recent_log_file
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/ultimate-feed-gallery/admin/views/shortcode/components/youtube.php
  • 28× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Undefined variable: feeds_data in wp-content/plugins/ultimate-feed-gallery/admin/views/shortcode/components/youtube.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ultimate-feed-gallery/admin/views/campaigns/wizard/components/layout.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ultimate-feed-gallery/admin/views/campaigns/wizard/sections/tab-save.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ultimate-feed-gallery/admin/views/campaigns/wizard/components/cols-and-rows.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ultimate-feed-gallery/admin/views/campaigns/wizard/components/instagram-source.php:4
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/ultimate-feed-gallery/admin/views/shortcode/components/youtube.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ultimate-feed-gallery/admin/views/campaigns/wizard/content.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/ultimate-feed-gallery/admin/views/integrations/sections/tab-others.php:13
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/ultimate-feed-gallery/admin/views/campaigns/list/header.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/ultimate-feed-gallery/admin/views/dashboard/content.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ultimate-instagram-campaign
    • > Console-api (warning) in unknown
    https://unpkg.com/ionicons@5.0.0/dist/ionicons.js?ver=1.7.13 26:10 "[ionicons] Deprecated script, please remove: \u003Cscript src=\"https://unpkg.com/ionicons@5.0.0/dist/ionicons.js?ver=1.7.13\" id=\"ionicons-js\">\u003C/script>\nTo improve performance it is recommended to set the differential scripts in the head as follows:\n\u003Cscript type=\"module\" src=\"https://unpkg.com/ionicons@5.0.0/dist/ionicons/ionicons.esm.js\">\u003C/script>\n\u003Cscript nomodule=\"\" src=\"https://unpkg.com/ionicons@5.0.0/dist/ionicons/ionicons.js\">\u003C/script>"

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: No descriptions were found for these screenshots #1, #10, #11, #2, #3, #4, #5, #6, #7, #8, #9 in ultimate-feed-gallery/assets to your readme.txt
The official readme.txt might help

ultimate-feed-gallery/ultimate-feed-gallery.php Passed 13 tests

The main PHP script in "Ultimate Social Feed Gallery" version 1.7.13 is automatically included on every request by WordPress
69 characters long description:
Display instagram feed as gallery of images in your WordPress Website

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
Success! There were no dangerous files found in this plugin10,958 lines of code in 81 files:
LanguageFilesBlank linesComment linesLines of code
PHP581,1801,9614,359
CSS8487633,662
JavaScript141,1853802,924
SVG11013

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity10.96
▷ Minimum class complexity1.00
▷ Maximum class complexity51.00
Average method complexity2.36
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes26
▷ Abstract classes519.23%
▷ Concrete classes2180.77%
▷ Final classes00.00%
Methods194
▷ Static methods2814.43%
▷ Public methods17590.21%
▷ Protected methods73.61%
▷ Private methods126.19%
Functions34
▷ Named functions34100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants555.56%
▷ Class constants444.44%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.42MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/buy.png4.64KB3.54KB▼ 23.59%
assets/images/ultimate-instagram-shortcode.png47.89KB16.04KB▼ 66.50%
assets/images/instagram-sketched.png147.11KB58.68KB▼ 60.11%
assets/images/ultimate.png21.69KB8.41KB▼ 61.26%
assets/images/ultimate-instagram-feed-screenshot.png205.26KB59.46KB▼ 71.03%