84% add-instagram

Code Review | Image Social Feed Plugin

WordPress plugin Image Social Feed Plugin scored 84% from 54 tests.

About plugin

  • Plugin page: add-instagram
  • Plugin version: 1.7.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.5
  • WordPress version: 5.9.2
  • First release: May 26, 2016
  • Latest release: Sep 27, 2020
  • Number of updates: 37
  • Update frequency: every 42.9 days
  • Top authors: umarbajwa (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

2,000+ active / 114,685 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼295.82ms] Passed 4 tests

Server-side resources used by Image Social Feed Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.1755.19 ▼1.24
Dashboard /wp-admin3.51 ▲0.1133.09 ▼2.31
Posts /wp-admin/edit.php3.74 ▲0.1037.96 ▼8.47
Add New Post /wp-admin/post-new.php6.98 ▲0.0193.53 ▼1,171.26
Media Library /wp-admin/upload.php3.39 ▲0.1026.12 ▲3.63
Instagram Feeds /wp-admin/edit.php?post_type=wsinsta_social_feed3.4925.31
Add New Instagram Feed /wp-admin/post-new.php?post_type=wsinsta_social_feed3.7539.50

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 49 new files
Database: no new tables, 1 new option
New WordPress options
smuzisf_plugin_version

Browser metrics Passed 4 tests

A check of browser resources used by Image Social Feed Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,954 ▲20017.75 ▲1.6917.51 ▲10.392.32 ▼0.31
Dashboard /wp-admin2,922 ▲625.98 ▼0.13114.63 ▼17.75171.14 ▲9.57
Posts /wp-admin/edit.php2,722 ▲343.11 ▼0.1464.20 ▲0.19144.24 ▲3.30
Add New Post /wp-admin/post-new.php1,688 ▲2718.42 ▲1.92427.72 ▲12.68190.04 ▲34.55
Media Library /wp-admin/upload.php1,730 ▲325.54 ▲0.02123.40 ▼26.08205.06 ▲23.37
Instagram Feeds /wp-admin/edit.php?post_type=wsinsta_social_feed1,4223.5265.52136.97
Add New Instagram Feed /wp-admin/post-new.php?post_type=wsinsta_social_feed3,3954.5688.09211.04

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • smuzisf_plugin_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/post-new.php?post_type=wsinsta_social_feed
    • > Rendering (warning) in unknown
    /wp-admin/post-new.php?post_type=wsinsta_social_feed 441 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/post-new.php?post_type=wsinsta_social_feed
    • > Rendering (warning) in unknown
    /wp-admin/post-new.php?post_type=wsinsta_social_feed 452 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: instagram posts, instagram pictures, instagram photos, show instagram posts, instagram social feed...

add-instagram/plugin.php 92% from 13 tests

The principal PHP file in "Image Social Feed Plugin" v. 1.7.6 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("add-instagram.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin2,588 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP11420341,351
SVG100655
JavaScript28718580
CSS1132

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity7.50
▷ Minimum class complexity5.00
▷ Maximum class complexity10.00
Average method complexity1.68
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants18
▷ Global constants18100.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
28 PNG files occupy 1.53MB with 0.88MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/ui/images/layout4.png495.49KB118.41KB▼ 76.10%
admin/ui/images/twitter.png1.44KB1.14KB▼ 20.92%
admin/ui/images/slider.png27.08KB5.88KB▼ 78.30%
admin/ui/images/fs-sprite.png1.07KB0.18KB▼ 82.82%
admin/ui/images/facebook.png0.69KB0.49KB▼ 30.00%