83% user-social-fields

Code Review | User Social Fields

WordPress plugin User Social Fields scored83%from 54 tests.

About plugin

  • Plugin page: user-social-fields
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Sep 16, 2014
  • Latest release: Sep 17, 2014
  • Number of updates: 18
  • Update frequency: every 0.2 days
  • Top authors: aliasbdi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,100 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.41ms] Passed 4 tests

An overview of server-side resources used by User Social Fields
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.55 ▼1.63
Dashboard /wp-admin3.32 ▼0.0245.18 ▼12.28
Posts /wp-admin/edit.php3.37 ▲0.0243.76 ▼2.84
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.04 ▼12.69
Media Library /wp-admin/upload.php3.24 ▲0.0232.75 ▼1.81

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

User Social Fields: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.26 ▼1.394.76 ▲3.0441.67 ▼0.59
Dashboard /wp-admin2,203 ▲155.78 ▲0.8995.65 ▼10.4137.79 ▼1.08
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0434.43 ▼5.3233.85 ▼0.40
Add New Post /wp-admin/post-new.php1,514 ▼517.35 ▼5.71681.49 ▲31.6953.71 ▼5.37
Media Library /wp-admin/upload.php1,388 ▼04.20 ▼0.0191.90 ▼2.7041.15 ▼0.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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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× PHP files output text when accessed directly:
    • > /wp-content/plugins/user-social-fields/user-social-fields.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 16 tag instead of maximum 10
  • Donate link: Please fix this invalid url: "n/a"
  • Plugin Name: You should set the name of your plugin on the first line ( === user-social-fields === )
The official readme.txt might help

user-social-fields/user-social-fields.php Passed 13 tests

The main PHP file in "User Social Fields" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
120 characters long description:
Adds extra user fields: facebook, flickr, gplus, instagram, linkedin, pinterest, tumbler, twitter, vimeo, vine, youtube.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin87 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1311487

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
PNG images were not found in this plugin