89% dvk-social-sharing

Code Review | Social Sharing (by Danny)

WordPress plugin Social Sharing (by Danny) scored89%from 54 tests.

About plugin

  • Plugin page: dvk-social-sharing
  • Plugin version: 1.3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-6.1
  • WordPress version: 6.3.1
  • First release: Nov 20, 2013
  • Latest release: Dec 23, 2022
  • Number of updates: 47
  • Update frequency: every 70.7 days
  • Top authors: DvanKooten (100%)

Code review

54 tests

User reviews

68 reviews

Install metrics

6,000+ active /97,976 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.62ms] Passed 4 tests

A check of server-side resources used by Social Sharing (by Danny)
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.34 ▲1.01
Dashboard /wp-admin3.33 ▼0.0141.57 ▼14.52
Posts /wp-admin/edit.php3.38 ▲0.0341.96 ▼6.58
Add New Post /wp-admin/post-new.php5.91 ▲0.0389.72 ▼5.62
Media Library /wp-admin/upload.php3.26 ▲0.0332.26 ▲0.26
Social Sharing /wp-admin/options-general.php?page=dvkss3.2728.70

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 8 new options
New WordPress options
dvkss_code_version
db_upgraded
dvk_social_sharing
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Social Sharing (by Danny)
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲4914.24 ▼0.371.56 ▼0.1735.35 ▼9.36
Dashboard /wp-admin2,199 ▲225.52 ▼0.1181.06 ▼5.7534.68 ▼7.19
Posts /wp-admin/edit.php2,101 ▲12.11 ▲0.1338.68 ▲2.7534.66 ▼2.27
Add New Post /wp-admin/post-new.php1,529 ▲323.24 ▲0.16581.85 ▼84.3151.65 ▼14.20
Media Library /wp-admin/upload.php1,404 ▲74.29 ▲0.0898.10 ▼3.2041.33 ▼1.78
Social Sharing /wp-admin/options-general.php?page=dvkss1,1242.1730.5640.47

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 detected upon uninstall: 8 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • dvkss_code_version
    • dvk_social_sharing

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

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

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention: The official readme.txt might help

dvk-social-sharing/index.php 92% from 13 tests

The primary PHP file in "Social Sharing (by Danny)" version 1.3.4 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("dvk-social-sharing.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin580 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP79797346
CSS4240104
Markdown161083
JavaScript45933
make14010
SVG4004

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity7.50
▷ Minimum class complexity7.00
▷ Maximum class complexity8.00
Average method complexity1.93
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin