84% social-icons-widget-by-wpzoom

Code Review | Social Icons Widget & Block by WPZOOM

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

About plugin

  • Plugin page: social-icons-widg...
  • Plugin version: 4.2.15
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.4
  • WordPress version: 6.3.1
  • First release: Mar 4, 2015
  • Latest release: Nov 17, 2023
  • Number of updates: 119
  • Update frequency: every 26.7 days
  • Top authors: WPZOOM (100%)

Code review

54 tests

User reviews

142 reviews

Install metrics

100,000+ active /2,610,047 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲4.41MB] [CPU: ▲11.60ms] Passed 4 tests

This is a short check of server-side resources used by Social Icons Widget & Block by WPZOOM
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /8.39 ▲4.9248.15 ▲8.60
Dashboard /wp-admin8.43 ▲5.1259.61 ▲15.81
Posts /wp-admin/edit.php8.43 ▲5.0760.04 ▲9.72
Add New Post /wp-admin/post-new.php8.43 ▲2.54129.05 ▲43.03
Media Library /wp-admin/upload.php8.43 ▲5.2046.83 ▲12.28
Social Icons Widget /wp-admin/options-general.php?page=wpzoom-social-icons-widget8.4346.68

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_zoom-social-icons-widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Social Icons Widget & Block by WPZOOM
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,897 ▲13513.44 ▼0.948.42 ▲6.5637.61 ▼5.93
Dashboard /wp-admin2,204 ▲275.59 ▼0.0491.41 ▼6.0539.20 ▼5.35
Posts /wp-admin/edit.php2,109 ▲61.95 ▼0.0739.73 ▼3.3137.07 ▼3.78
Add New Post /wp-admin/post-new.php6,210 ▲4,67019.28 ▼6.11867.32 ▲246.0150.45 ▼29.14
Media Library /wp-admin/upload.php1,403 ▲34.14 ▲0.01101.29 ▼1.0643.53 ▼2.90
Social Icons Widget /wp-admin/options-general.php?page=wpzoom-social-icons-widget1,2121.9338.3832.51

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_zoom-social-icons-widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/social-icons-widget-by-wpzoom/social-icons-widget-by-wpzoom.php:19

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (17 tag instead of maximum 10)
The official readme.txt might help

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

The main PHP script in "Social Icons Widget & Block by WPZOOM" version 4.2.15 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 213 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin24,385 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP71,09059620,893
CSS10517372,657
JavaScript109420596
SVG100239

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity58.00
▷ Minimum class complexity13.00
▷ Maximum class complexity103.00
Average method complexity3.53
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods45
▷ Static methods36.67%
▷ Public methods4395.56%
▷ Protected methods12.22%
▷ Private methods12.22%
Functions26
▷ Named functions2492.31%
▷ Anonymous functions27.69%
Constants4
▷ Global constants4100.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
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/social-icons-pro-avatar.png11.82KB12.52KB0.00%