84% blossomthemes-instagram-feed

Code Review | BlossomThemes Social Feed

WordPress plugin BlossomThemes Social Feed scored 84% from 54 tests.

About plugin

  • Plugin page: blossomthemes-ins...
  • Plugin version: 2.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.7
  • WordPress version: 5.8.1
  • First release: Oct 3, 2017
  • Latest release: Jun 10, 2021
  • Number of updates: 258
  • Update frequency: every 5.2 days
  • Top authors: blossomthemes (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

50,000+ active / 459,059 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▼143.43ms] Passed 4 tests

Analyzing server-side resources used by BlossomThemes Social Feed
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.02 ▲0.2937.16 ▲18.86
Dashboard /wp-admin3.30 ▲0.2447.52 ▲4.06
Posts /wp-admin/edit.php3.35 ▲0.2440.90 ▼5.73
Add New Post /wp-admin/post-new.php5.60 ▲0.1691.58 ▼578.19
Media Library /wp-admin/upload.php3.18 ▲0.1834.29 ▲6.16

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 46 new files
Database: no new tables, 1 new option
New WordPress options
widget_btif_instagram_widget

Browser metrics Passed 4 tests

An overview of browser requirements for BlossomThemes Social Feed
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,910 ▲31416.75 ▲1.0213.89 ▲2.9548.01 ▼3.74
Dashboard /wp-admin3,054 ▲1235.94 ▼0.28136.87 ▼9.08126.36 ▲14.00
Posts /wp-admin/edit.php2,833 ▲942.74 ▲0.0265.31 ▲1.7992.92 ▲11.11
Add New Post /wp-admin/post-new.php1,679 ▲18122.75 ▲3.94279.70 ▼125.03111.40 ▲1.89
Media Library /wp-admin/upload.php1,839 ▲295.03 ▼0.00128.72 ▼17.13140.28 ▲16.87

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • widget_btif_instagram_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Please fix the following items
  • 13× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/blossomthemes-instagram-feed/includes/template/backend/settings.php:7
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/blossomthemes-instagram-feed/public/partials/blossomthemes-instagram-feed-public-display.php on line 18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/blossomthemes-instagram-feed/public/partials/blossomthemes-instagram-feed-public-display.php:45
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/blossomthemes-instagram-feed/public/partials/blossomthemes-instagram-feed-public-display.php on line 17
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/blossomthemes-instagram-feed/public/partials/blossomthemes-instagram-feed-public-display.php on line 17
    • > PHP Notice
      Undefined variable: items in wp-content/plugins/blossomthemes-instagram-feed/public/partials/blossomthemes-instagram-feed-public-display.php on line 18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/blossomthemes-instagram-feed/includes/template/backend/usage.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/blossomthemes-instagram-feed/includes/template/backend/sidebar.php:8
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/blossomthemes-instagram-feed/public/partials/blossomthemes-instagram-feed-public-display.php on line 17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/blossomthemes-instagram-feed/includes/template/backend/general.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: instagram, popup, insta widget, responsive

blossomthemes-instagram-feed/blossomthemes-instagram-feed.php Passed 13 tests

"BlossomThemes Social Feed" version 2.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
63 characters long description:
Show instagram feed on your website using shortcode and widget.

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
No dangerous file extensions were detected6,297 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
CSS541202,508
PHP213227321,055
JavaScript42763

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity8.25
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity2.46
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods58
▷ Static methods712.07%
▷ Public methods5086.21%
▷ Protected methods00.00%
▷ Private methods813.79%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/css/images/menu-icon.png1.35KB0.53KB▼ 60.61%
admin/css/images/files.png3.30KB1.41KB▼ 57.38%
admin/css/images/help.png5.37KB2.58KB▼ 51.87%
admin/css/images/logo.png6.71KB3.78KB▼ 43.65%