90% wp-instagram-feed-awplife

Code Review | Social Media Feed - Social Feed Gallery With API

WordPress plugin Social Media Feed - Social Feed Gallery With API scored 90% from 54 tests.

About plugin

  • Plugin page: wp-instagram-feed...
  • Plugin version: 1.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Apr 2, 2019
  • Latest release: Sep 27, 2023
  • Number of updates: 58
  • Update frequency: every 28.3 days
  • Top authors: awordpresslife (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

3,000+ active / 45,307 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.41ms] Passed 4 tests

This is a short check of server-side resources used by Social Media Feed - Social Feed Gallery With API
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.17 ▼8.21
Dashboard /wp-admin3.33 ▲0.0345.08 ▼1.33
Posts /wp-admin/edit.php3.38 ▲0.0346.98 ▼5.00
Add New Post /wp-admin/post-new.php5.91 ▲0.0381.79 ▼7.09
Media Library /wp-admin/upload.php3.25 ▲0.0335.61 ▲3.89

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Social Media Feed - Social Feed Gallery With API
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,890 ▲15513.58 ▼0.784.97 ▲3.2341.08 ▼1.85
Dashboard /wp-admin2,214 ▲295.88 ▲0.0797.81 ▼6.9475.19 ▲29.57
Posts /wp-admin/edit.php2,106 ▲171.97 ▼0.0639.87 ▲5.4034.39 ▼0.66
Add New Post /wp-admin/post-new.php1,534 ▲2023.37 ▲5.72734.33 ▲94.9255.41 ▲1.12
Media Library /wp-admin/upload.php1,393 ▲24.14 ▼0.02107.64 ▲4.8548.97 ▲3.21

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: instagram, instagram gallery, instagram post, instagram feed, social media feed

wp-instagram-feed-awplife/wp-instagram-feed-awplife.php Passed 13 tests

"Social Media Feed - Social Feed Gallery With API" version 1.3.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
111 characters long description:
Instagram Feed Gallery Plugin For WordPress allows you to fetch your Instagram feeds to your WordPress website.

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
There were no executable files found in this plugin21,204 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
CSS91,4183211,907
JSON1005,070
JavaScript38423413,274
PHP56462719
SVG100186
PO File1161648

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods571.43%
▷ Protected methods228.57%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
6 PNG files occupy 0.28MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/Grid-Layout.png66.30KB62.78KB▼ 5.31%
img/insta-icon.png1.45KB1.42KB▼ 1.82%
img/carousel-layout.png43.89KB40.23KB▼ 8.32%
img/instagram-gallery-premium.png67.46KB22.37KB▼ 66.84%
img/post-layout.png52.40KB48.83KB▼ 6.80%