10% social-site-sharer-links-widget

Code Review | Social Site Sharer Links Widget

WordPress plugin Social Site Sharer Links Widget scored 10% from 54 tests.

About plugin

  • Plugin page: social-site-share...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 5.9.2
  • First release: Mar 8, 2013
  • Latest release: Mar 8, 2013
  • Number of updates: 5
  • Update frequency: every 4.2 days
  • Top authors: hebeisenconsulting (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 2,111 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/social-site-sharer-links-widget/social-site-sharer-links-widget.php+202
    Function create_function() is deprecated

Server metrics [RAM: ▼2.41MB] [CPU: ▼345.83ms] Passed 4 tests

An overview of server-side resources used by Social Site Sharer Links Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /1.96 ▼1.564.51 ▼48.57
Dashboard /wp-admin1.98 ▼1.434.27 ▼30.85
Posts /wp-admin/edit.php1.98 ▼1.665.19 ▼32.79
Add New Post /wp-admin/post-new.php1.98 ▼4.994.22 ▼1,271.11
Media Library /wp-admin/upload.php1.98 ▼1.323.75 ▼27.32

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 1 new option
New WordPress options
widget_social_site_sharer_links_widget

Browser metrics Passed 4 tests

Checking browser requirements for Social Site Sharer Links Widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲1916.01 ▲0.337.10 ▲0.663.04 ▲1.10
Dashboard /wp-admin2,895 ▲346.22 ▲0.06117.77 ▼20.46155.57 ▼9.04
Posts /wp-admin/edit.php2,694 ▼03.24 ▲0.0164.46 ▲0.03142.32 ▼4.63
Add New Post /wp-admin/post-new.php1,661 ▼5815.87 ▼6.54411.07 ▼48.72154.68 ▼3.40
Media Library /wp-admin/upload.php1,698 ▼05.49 ▼0.03142.88 ▼3.00184.50 ▼12.26

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/social-site-sharer-links-widget/social-site-sharer-links-widget.php+202
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 1 option
    • widget_social_site_sharer_links_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/social-site-sharer-links-widget/social-site-sharer-links-widget.php:29

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 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: There are too many tags (14 tag instead of maximum 10)
  • Donate link: Please fix this invalid url: ""
The official readme.txt is a good inspiration

social-site-sharer-links-widget/social-site-sharer-links-widget.php Passed 13 tests

The principal PHP file in "Social Site Sharer Links Widget" v. 1.0 is loaded by WordPress automatically on each request
124 characters long description:
Social site sharer links widget automatically places popular social share links in a widget placement without configuration.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected138 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14224138

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
13 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icon/google.png3.62KB0.95KB▼ 73.78%
icon/delicious.png3.44KB0.85KB▼ 75.23%
icon/facebook.png3.33KB0.67KB▼ 80.01%
icon/friendfeed.png1.67KB1.62KB▼ 3.21%
icon/myspace.png3.49KB0.82KB▼ 76.47%