66% wp-instagram-feed

Code Review | The Awesome Photo Feed for Social Media Network

WordPress plugin The Awesome Photo Feed for Social Media Network scored66%from 54 tests.

About plugin

  • Plugin page: wp-instagram-feed
  • Plugin version: 2.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Nov 15, 2016
  • Latest release: May 30, 2022
  • Number of updates: 71
  • Update frequency: every 28.4 days
  • Top authors: arrowplugins (100%)

Code review

54 tests

User reviews

28 reviews

Install metrics

400+ active /31,962 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼2.69ms] Passed 4 tests

This is a short check of server-side resources used by The Awesome Photo Feed for Social Media Network
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1639.83 ▼2.11
Dashboard /wp-admin3.46 ▲0.1648.10 ▼0.18
Posts /wp-admin/edit.php3.51 ▲0.1549.01 ▲2.00
Add New Post /wp-admin/post-new.php6.07 ▲0.1881.09 ▼9.66
Media Library /wp-admin/upload.php3.39 ▲0.1536.00 ▲1.18
Rate us /wp-admin/edit.php?post_type=ifba_instagram_feed&page=ifba_rate_us_plugins3.3531.80
Add New /wp-admin/post-new.php?post_type=ifba_instagram_feed3.5155.87
Support /wp-admin/edit.php?post_type=ifba_instagram_feed&page=ifba_form_support3.3831.19
Our Plugins /wp-admin/edit.php?post_type=ifba_instagram_feed&page=ifba_our_plugins3.3630.89
All Instagram Feeds /wp-admin/edit.php?post_type=ifba_instagram_feed3.4337.34

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 136 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for The Awesome Photo Feed for Social Media Network
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,936 ▲17913.77 ▼0.6110.36 ▲8.1838.14 ▼14.17
Dashboard /wp-admin2,247 ▲595.90 ▲0.12107.13 ▼17.3739.34 ▼7.38
Posts /wp-admin/edit.php2,130 ▲412.02 ▼0.0039.66 ▲2.3635.14 ▼0.36
Add New Post /wp-admin/post-new.php1,562 ▲2421.15 ▼2.08640.82 ▼89.5350.58 ▼4.51
Media Library /wp-admin/upload.php1,429 ▲414.26 ▲0.0797.89 ▼15.1542.76 ▼6.08
Rate us /wp-admin/edit.php?post_type=ifba_instagram_feed&page=ifba_rate_us_plugins8552.0322.8334.16
Add New /wp-admin/post-new.php?post_type=ifba_instagram_feed2,6179.90359.89141.58
Support /wp-admin/edit.php?post_type=ifba_instagram_feed&page=ifba_form_support9172.0226.4838.76
Our Plugins /wp-admin/edit.php?post_type=ifba_instagram_feed&page=ifba_our_plugins1,0092.0824.1994.11
All Instagram Feeds /wp-admin/edit.php?post_type=ifba_instagram_feed1,1081.9430.9429.47

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/edit.php?post_type=ifba_instagram_feed&page=ifba_form_support
    • > Notice in wp-content/plugins/wp-instagram-feed/includes/ifba-support-page.php+61
    Undefined variable: _SESSION

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-instagram-feed/includes/ifba-rate-us.php
  • 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-instagram-feed/includes/ifba-save-post.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-instagram-feed/includes/ifba-our-plugins.php:81
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-instagram-feed/includes/ifba-shortcode.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-instagram-feed/includes/ifba-custom-columns.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/wp-instagram-feed/includes/ifba-settings-page.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-instagram-feed/includes/ifba-post-meta-boxes.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-instagram-feed/includes/ifba-post-type.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-instagram-feed/includes/ifba-enqueue-scripts.php:1

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/post-new.php?post_type=ifba_instagram_feed
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
    • > GET request to /wp-admin/post-new.php?post_type=ifba_instagram_feed
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
    • > GET request to /wp-admin/post-new.php?post_type=ifba_instagram_feed
    • > Other (severe) in unknown
    chrome-error://chromewebdata/ - Refused to display 'https://developers.google.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
    • > GET request to /wp-admin/edit.php?post_type=ifba_instagram_feed&page=ifba_form_support
    • > Javascript (severe) in unknown
    /wp-admin/edit.php?post_type=ifba_instagram_feed&page=ifba_form_support 147:409 Uncaught SyntaxError: Unexpected identifier 'formElements'

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
  • Screenshots: Please add images for these screenshots: #1 (All Instagram Feed Image), #2 (Instagram Feed Settings Page), #3 (Instagram Feed in Thumbnail View), #4 (Instagram Feed in Blog Style Layout), #5 (Instagram Feed in Vertical Style to add Feeds in Widget Area), #6 (Instagram Feed in Masonry Style), #7 (Instagram Feed in Masonry Style (Only Images no profile picture, no caption, no post date)), #8 (Instagram Feed pre-designed templates)
The official readme.txt is a good inspiration

wp-instagram-feed/instagram-feed-by-arrowplugins.php 92% from 13 tests

The main PHP script in "The Awesome Photo Feed for Social Media Network" version 2.1.4 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-instagram-feed.php" instead of "instagram-feed-by-arrowplugins.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin26,339 lines of code in 104 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript911,7401,97324,492
PHP12160451,721
CSS184126

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
29 PNG files occupy 2.72MB with 1.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/images/promotion.png135.30KB35.01KB▼ 74.13%
includes/images/cancel_48.png5.19KB1.92KB▼ 63.09%
screenshot-6.png40.51KB41.33KB0.00%
includes/images/accepted_48.png5.13KB1.89KB▼ 63.13%
screenshot-7.png204.38KB219.17KB0.00%