83% wp-social-links-widget

Code Review | Social Links Widget

WordPress plugin Social Links Widget scored83%from 54 tests.

About plugin

  • Plugin page: wp-social-links-w...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 25, 2018
  • Latest release: Oct 27, 2018
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: bhawnatech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /455 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.06MB] [CPU: ▼7.50ms] Passed 4 tests

This is a short check of server-side resources used by Social Links Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0640.69 ▲2.02
Dashboard /wp-admin3.37 ▲0.0747.41 ▼7.88
Posts /wp-admin/edit.php3.42 ▲0.0649.02 ▼8.09
Add New Post /wp-admin/post-new.php5.95 ▲0.0687.28 ▼14.47
Media Library /wp-admin/upload.php3.29 ▲0.0639.08 ▲0.43

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_social_links_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Social Links Widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.26 ▼0.141.79 ▼0.0739.66 ▼4.27
Dashboard /wp-admin2,218 ▲185.80 ▼0.05101.37 ▼5.2440.32 ▼7.43
Posts /wp-admin/edit.php2,100 ▼02.06 ▲0.0337.52 ▼2.2134.03 ▼4.40
Add New Post /wp-admin/post-new.php1,545 ▲423.21 ▲4.88702.49 ▲59.9157.49 ▲8.76
Media Library /wp-admin/upload.php1,400 ▼34.18 ▼0.05102.37 ▼4.4548.10 ▼1.27

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_social_links_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-social-links-widget/includes/social-links-class.php:2

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

readme.txt 81% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Requires at least: Invalid plugin version format
  • Screenshots: These screenshots do not have images: #1 (backend view), #2 (backend view), #3 (front view)
  • Requires php: Invalid plugin version format
The official readme.txt might help

wp-social-links-widget/wp-social-links-widget.php Passed 13 tests

"Social Links Widget" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
43 characters long description:
Adds social icons with links to profiles to

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected254 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP37163252
Markdown1002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity6.33
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/instagram.png8.11KB6.85KB▼ 15.55%
img/dribble.png3.83KB2.77KB▼ 27.86%
img/facebook.png1.19KB0.69KB▼ 42.02%
img/google.png2.34KB1.38KB▼ 41.01%
img/twitter.png2.72KB1.57KB▼ 42.47%