84% instagram-widget-by-wpzoom

Code Review | WPZOOM Social Feed Widget & Block

WordPress plugin WPZOOM Social Feed Widget & Block scored84%from 54 tests.

About plugin

  • Plugin page: instagram-widget-...
  • Plugin version: 2.1.10
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.4
  • WordPress version: 6.3.1
  • First release: Mar 4, 2015
  • Latest release: Nov 30, 2023
  • Number of updates: 120
  • Update frequency: every 26.6 days
  • Top authors: WPZOOM (98.33%)nvartolomei (2.5%)

Code review

54 tests

User reviews

37 reviews

Install metrics

70,000+ active /1,627,071 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲1.45MB] [CPU: ▲8.03ms] Passed 4 tests

Analyzing server-side resources used by WPZOOM Social Feed Widget & Block
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.90 ▲1.4348.48 ▲5.95
Dashboard /wp-admin4.77 ▲1.4757.96 ▲4.22
Posts /wp-admin/edit.php4.82 ▲1.4659.79 ▲9.41
Add New Post /wp-admin/post-new.php7.50 ▲1.61106.50 ▲12.52
Media Library /wp-admin/upload.php4.69 ▲1.4651.16 ▲17.30
Support /wp-admin/edit.php?post_type=wpz-insta_feed&page=wpzoom-instagram-support4.6944.68
Feeds /wp-admin/edit.php?post_type=wpz-insta_feed4.7651.14
Users /wp-admin/edit.php?post_type=wpz-insta_user4.7646.72
Settings /wp-admin/edit.php?post_type=wpz-insta_feed&page=wpz-insta_settings4.6941.97

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 88 new files
Database: no new tables, 10 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
wpzoom_run_only_once_01
db_upgraded
widget_wpzoom_instagram_widget
wpzoom_run_only_once_02
wpzoom-instagram-transition-between-4_7-4_8-versions

Browser metrics Passed 4 tests

WPZOOM Social Feed Widget & Block: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,879 ▲13214.78 ▲0.431.72 ▲0.0142.03 ▼1.92
Dashboard /wp-admin2,284 ▲1065.79 ▲0.0599.79 ▼12.2353.38 ▲6.37
Posts /wp-admin/edit.php2,189 ▲892.29 ▲0.2854.70 ▲16.1145.78 ▲9.51
Add New Post /wp-admin/post-new.php6,425 ▲4,89928.13 ▲4.93946.98 ▲322.8439.35 ▼12.54
Media Library /wp-admin/upload.php1,486 ▲864.36 ▲0.18106.84 ▲8.0351.23 ▲8.73
Support /wp-admin/edit.php?post_type=wpz-insta_feed&page=wpzoom-instagram-support1,2123.6173.5045.89
Feeds /wp-admin/edit.php?post_type=wpz-insta_feed1,3643.8565.6169.92
Users /wp-admin/edit.php?post_type=wpz-insta_user1,3903.8961.2548.62
Settings /wp-admin/edit.php?post_type=wpz-insta_feed&page=wpz-insta_settings1,3033.6061.0045.92

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • db_upgraded
    • wpzoom_run_only_once_02
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • wpzoom-instagram-transition-between-4_7-4_8-versions
    • widget_wpzoom_instagram_widget
    • theysaidso_admin_options
    • wpzoom_run_only_once_01
    • can_compress_scripts

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
Good news, no errors were detected

SRP 50% from 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
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'DiDom\ode' not found in wp-content/plugins/instagram-widget-by-wpzoom/vendor/imangazaliev/didom/src/DiDom/DocumentFragment.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'DiDom\ode' not found in wp-content/plugins/instagram-widget-by-wpzoom/vendor/imangazaliev/didom/src/DiDom/Element.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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 need to be fixed:
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

instagram-widget-by-wpzoom/instagram-widget-by-wpzoom.php 92% from 13 tests

The principal PHP file in "WPZOOM Social Feed Widget & Block" v. 2.1.10 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 160 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin13,950 lines of code in 77 files:
LanguageFilesBlank linesComment linesLines of code
PHP401,9312,2997,739
Sass3674303,362
JavaScript21230601,358
Markdown23830723
JSON200442
CSS83617317
SVG1009

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity59.00
▷ Minimum class complexity1.00
▷ Maximum class complexity323.00
Average method complexity4.63
▷ Minimum method complexity1.00
▷ Maximum method complexity93.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes24
▷ Abstract classes14.17%
▷ Concrete classes2395.83%
▷ Final classes00.00%
Methods373
▷ Static methods7620.38%
▷ Public methods34492.23%
▷ Protected methods246.43%
▷ Private methods51.34%
Functions19
▷ Named functions1052.63%
▷ Anonymous functions947.37%
Constants5
▷ Global constants120.00%
▷ Class constants480.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 compressed PNG files occupy 0.02MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
dist/images/backend/icon-insta.png6.83KB7.09KB0.00%
assets/backend/img/icon-insta.png6.83KB7.09KB0.00%
src/images/backend/icon-insta.png6.83KB7.09KB0.00%