89% kiwi-social-share

Code Review | Social Sharing Plugin - Kiwi

WordPress plugin Social Sharing Plugin - Kiwi scored89%from 54 tests.

About plugin

  • Plugin page: kiwi-social-share
  • Plugin version: 2.1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Jun 20, 2016
  • Latest release: Jul 7, 2023
  • Number of updates: 108
  • Update frequency: every 23.8 days
  • Top authors: cristian.raiber (36.11%)wpkube (34.26%)machothemes (31.48%)

Code review

54 tests

User reviews

18 reviews

Install metrics

9,000+ active /451,733 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: ▲0.38MB] [CPU: ▲2.81ms] Passed 4 tests

An overview of server-side resources used by Social Sharing Plugin - Kiwi
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.89 ▲0.4242.62 ▲5.65
Dashboard /wp-admin3.71 ▲0.4048.76 ▲1.21
Posts /wp-admin/edit.php3.76 ▲0.4050.40 ▲7.14
Add New Post /wp-admin/post-new.php6.25 ▲0.3685.38 ▼0.39
Media Library /wp-admin/upload.php3.57 ▲0.3437.30 ▲4.75

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 83 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
kiwi_general_settings
kiwi_social_sharing_version
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Social Sharing Plugin - Kiwi
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲5014.35 ▼0.181.80 ▼0.0241.88 ▼1.95
Dashboard /wp-admin2,218 ▲385.51 ▼0.0684.13 ▼2.9238.20 ▼0.75
Posts /wp-admin/edit.php2,120 ▲232.03 ▲0.0939.05 ▲4.0137.57 ▼0.89
Add New Post /wp-admin/post-new.php1,550 ▲2423.25 ▼0.25665.66 ▼30.8560.23 ▼6.97
Media Library /wp-admin/upload.php1,420 ▲204.23 ▲0.08105.85 ▲2.7347.99 ▲5.02

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 8 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • kiwi_social_sharing_version
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • kiwi_general_settings

Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
Please take inspiration from this readme.txt

kiwi-social-share/kiwi-social-share.php 92% from 13 tests

"Social Sharing Plugin - Kiwi" version 2.1.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("3.8" instead of "4.0")

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
Everything looks great! No dangerous files found in this plugin8,639 lines of code in 66 files:
LanguageFilesBlank linesComment linesLines of code
PHP447821,3523,581
CSS9341482,779
JSON1001,530
JavaScript10140123687
SVG20062

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity12.45
▷ Minimum class complexity1.00
▷ Maximum class complexity43.00
Average method complexity3.09
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces2
Traits0
Classes29
▷ Abstract classes26.90%
▷ Concrete classes2793.10%
▷ Final classes1451.85%
Methods178
▷ Static methods1910.67%
▷ Public methods17397.19%
▷ Protected methods00.00%
▷ Private methods52.81%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/mix.png1.08KB0.19KB▼ 82.64%
assets/img/back-wavy.png3.65KB2.15KB▼ 41.03%
assets/img/ico-delete.png0.70KB0.72KB0.00%