68% user-profile

Code Review | User profile

WordPress plugin User profile scored68%from 54 tests.

About plugin

  • Plugin page: user-profile
  • Plugin version: 2.0.20
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 5, 2014
  • Latest release: Oct 29, 2023
  • Number of updates: 91
  • Update frequency: every 36.1 days
  • Top authors: pickplugins (65.93%)paratheme (27.47%)wpkids (8.79%)

Code review

54 tests

User reviews

17 reviews

Install metrics

300+ active /47,293 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.16MB] [CPU: ▲0.10ms] Passed 4 tests

A check of server-side resources used by User profile
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2248.46 ▲10.67
Dashboard /wp-admin3.50 ▲0.2050.70 ▼1.22
Posts /wp-admin/edit.php3.56 ▲0.2053.37 ▲7.38
Add New Post /wp-admin/post-new.php6.00 ▲0.1196.74 ▲0.41
Media Library /wp-admin/upload.php3.34 ▲0.1132.14 ▼6.18
Help /wp-admin/admin.php?page=user-profile-help3.3437.08
User Profile /wp-admin/admin.php?page=user-profile3.3542.26
Addons /wp-admin/admin.php?page=user_profile_addons3.3435.20

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 105 new files
Database: 2 new tables, 7 new options
New tables
wp_user_profile_reactions
wp_user_profile_follow
New WordPress options
widget_user_profile_widget_users
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

User profile: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,362 ▲60116.47 ▲2.1223.03 ▲21.3441.93 ▲0.38
Dashboard /wp-admin2,405 ▲2316.46 ▲0.81113.13 ▲20.6641.77 ▼0.39
Posts /wp-admin/edit.php2,339 ▲2393.62 ▲1.5155.34 ▲16.2038.23 ▲5.32
Add New Post /wp-admin/post-new.php1,581 ▲5523.76 ▲0.66603.23 ▼53.1535.19 ▼19.44
Media Library /wp-admin/upload.php1,476 ▲794.44 ▲0.2582.20 ▼20.2443.77 ▲0.94
Help /wp-admin/admin.php?page=user-profile-help1,1023.4643.2130.62
User Profile /wp-admin/admin.php?page=user-profile1,2123.6656.2334.57
Addons /wp-admin/admin.php?page=user_profile_addons1,0893.4543.1163.72

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure failed, leaving 2 tables in the database
    • wp_user_profile_reactions
    • wp_user_profile_follow
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_user_profile_widget_users

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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 fix 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_action() in wp-content/plugins/user-profile/includes/actions/action-user-profile.php:13

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=user_profile_addons
    • > Network (severe)
    wp-content/plugins/user-profile/user-profile/includes/classes/WPAdminMenu/css/addons-grid.min.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #5 (Screenshot 5), #6 (Screenshot 6), #7 (Screenshot 7), #8 (Screenshot 8), #9 (Screenshot 9), #10 (Screenshot 10)
You can look at the official readme.txt

user-profile/user-profile.php Passed 13 tests

"User profile" version 2.0.20's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
28 characters long description:
Socialize your user profile.

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
There were no executable files found in this plugin14,946 lines of code in 71 files:
LanguageFilesBlank linesComment linesLines of code
CSS182852238,972
PHP481,7062863,600
SVG1002,116
JavaScript212824226
YAML20032

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity38.00
▷ Minimum class complexity1.00
▷ Maximum class complexity143.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods163
▷ Static methods00.00%
▷ Public methods13079.75%
▷ Protected methods00.00%
▷ Private methods3320.25%
Functions40
▷ Named functions3895.00%
▷ Anonymous functions25.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
27 PNG files occupy 5.85MB with 3.48MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/addons/verified-users.png23.45KB3.20KB▼ 86.35%
assets/front/images/thumb-large.png24.61KB3.33KB▼ 86.49%
assets/images/ui-bg_glass_55_fbf9ee_1x400.png0.23KB0.11KB▼ 51.46%
assets/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.13KB0.11KB▼ 11.72%
.wordpress-org/screenshot-1.png839.79KB322.95KB▼ 61.54%