89% dvk-social-sharing

Code Review | Social Sharing (by Danny)

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

About plugin

  • Plugin page: dvk-social-sharing
  • Plugin version: 1.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.3
  • WordPress version: 5.8.1
  • First release: Nov 20, 2013
  • Latest release: Dec 31, 2019
  • Number of updates: 45
  • Update frequency: every 49.6 days
  • Top authors: DvanKooten (100%)

Code review

54 tests

User reviews

68 reviews

Install metrics

5,000+ active / 82,568 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.03MB] [CPU: ▼141.13ms] 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 /2.87 ▲0.0337.64 ▲4.92
Dashboard /wp-admin3.09 ▲0.0348.14 ▲1.36
Posts /wp-admin/edit.php3.14 ▲0.0336.76 ▼5.66
Add New Post /wp-admin/post-new.php5.44 ▲0.0193.87 ▼559.89
Media Library /wp-admin/upload.php3.03 ▲0.0332.10 ▼0.34
Social Sharing /wp-admin/options-general.php?page=dvkss3.0525.52

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: 23 new files
Database: no new tables, 2 new options
New WordPress options
dvk_social_sharing
dvkss_code_version

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 /3,686 ▲9016.03 ▲0.419.55 ▼0.3949.83 ▲0.32
Dashboard /wp-admin2,994 ▲606.01 ▲0.06164.61 ▲14.14102.40 ▼9.16
Posts /wp-admin/edit.php2,744 ▲52.71 ▼0.0171.10 ▼13.2987.68 ▼8.20
Add New Post /wp-admin/post-new.php1,503 ▼16918.54 ▼0.27395.81 ▼40.10111.68 ▲2.78
Media Library /wp-admin/upload.php1,812 ▲55.04 ▲0.00152.02 ▼10.10110.79 ▼5.52
Social Sharing /wp-admin/options-general.php?page=dvkss1,5102.4159.73107.94

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: 2 options
    • 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.3 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 plugin578 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP799103348
CSS4250104
Markdown158079
JavaScript4171743
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.22
Average class complexity9.50
▷ Minimum class complexity9.00
▷ Maximum class complexity10.00
Average method complexity2.31
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.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