84% user-social-profiles

Code Review | User Social Profiles

WordPress plugin User Social Profiles scored 84% from 54 tests.

About plugin

  • Plugin page: user-social-profiles
  • Plugin version: 0.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0
  • WordPress version: 6.3.1
  • First release: Nov 14, 2015
  • Latest release: Dec 11, 2018
  • Number of updates: 12
  • Update frequency: every 93.6 days
  • Top authors: limestreet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active / 9,516 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Server-side resources used by User Social Profiles
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.24 ▼4.74
Dashboard /wp-admin3.31 ▲0.0144.47 ▼2.23
Posts /wp-admin/edit.php3.36 ▲0.0146.07 ▼12.96
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.34 ▼24.20
Media Library /wp-admin/upload.php3.24 ▲0.0133.53 ▼4.38

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for User Social Profiles
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4314.80 ▲0.421.74 ▼0.2440.04 ▼2.95
Dashboard /wp-admin2,203 ▲185.80 ▲0.88100.13 ▼8.0440.38 ▼3.08
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0439.64 ▲4.2434.50 ▲0.05
Add New Post /wp-admin/post-new.php1,534 ▲1523.32 ▲0.26647.10 ▲0.5149.53 ▼72.58
Media Library /wp-admin/upload.php1,388 ▲34.19 ▼0.0295.54 ▼6.5045.78 ▲0.67

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/user-social-profiles/user-social-profiles.php:33

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, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: social profiles, social accounts, user social profiles, social user fields

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

"User Social Profiles" version 0.1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
48 characters long description:
Adds some social profiles links to user account.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin18 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP191518

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.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
There are no PNG files in this plugin