84% blossomthemes-instagram-feed

Code Review | BlossomThemes Social Feed

WordPress plugin BlossomThemes Social Feed scored84%from 54 tests.

About plugin

  • Plugin page: blossomthemes-ins...
  • Plugin version: 2.0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.2
  • WordPress version: 6.3.1
  • First release: Oct 3, 2017
  • Latest release: Apr 27, 2023
  • Number of updates: 262
  • Update frequency: every 7.8 days
  • Top authors: blossomthemes (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

40,000+ active /665,077 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: ▼2.47ms] 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.65 ▲0.1937.71 ▼3.25
Dashboard /wp-admin3.54 ▲0.2454.40 ▲7.36
Posts /wp-admin/edit.php3.60 ▲0.2448.27 ▲1.32
Add New Post /wp-admin/post-new.php6.08 ▲0.2082.26 ▼8.95
Media Library /wp-admin/upload.php3.41 ▲0.1837.99 ▲1.01

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, 7 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_btif_instagram_widget
can_compress_scripts

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 /2,970 ▲20913.90 ▼0.459.65 ▲8.1038.81 ▼0.52
Dashboard /wp-admin2,266 ▲865.65 ▼0.0181.47 ▼3.4568.89 ▲25.34
Posts /wp-admin/edit.php2,169 ▲692.16 ▲0.1435.77 ▲1.5433.94 ▲1.62
Add New Post /wp-admin/post-new.php1,585 ▲5923.29 ▲0.37771.22 ▲73.1457.07 ▲2.70
Media Library /wp-admin/upload.php1,465 ▲684.13 ▼0.1298.76 ▼0.7763.23 ▲14.63

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 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • widget_btif_instagram_widget
    • db_upgraded
    • theysaidso_admin_options

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 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/usage.php:7
    • > 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/general.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/blossomthemes-instagram-feed/admin/partials/blossomthemes-instagram-feed-admin-display.php:18
    • > 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 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: settings in wp-content/plugins/blossomthemes-instagram-feed/public/partials/blossomthemes-instagram-feed-public-display.php on line 17
    • > 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/sidebar.php:8

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: popup, insta widget, instagram, responsive

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

"BlossomThemes Social Feed" version 2.0.5'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/help.png5.37KB2.58KB▼ 51.87%
admin/css/images/logo.png6.71KB3.78KB▼ 43.65%
admin/css/images/files.png3.30KB1.41KB▼ 57.38%
admin/css/images/menu-icon.png1.35KB0.53KB▼ 60.61%