84% simple-user-profile

Code Review | Simple User Profile

WordPress plugin Simple User Profile scored 84% from 54 tests.

About plugin

  • Plugin page: simple-user-profile
  • Plugin version: 1.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.8.2
  • WordPress version: 6.3.1
  • First release: Dec 25, 2012
  • Latest release: Apr 4, 2013
  • Number of updates: 8
  • Update frequency: every 217.0 days
  • Top authors: Scriptonite (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

200+ active / 10,112 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.01MB] [CPU: ▼6.92ms] Passed 4 tests

Analyzing server-side resources used by Simple User Profile
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0033.94 ▼15.48
Dashboard /wp-admin3.31 ▲0.0145.43 ▼2.81
Posts /wp-admin/edit.php3.36 ▲0.0146.45 ▼4.27
Add New Post /wp-admin/post-new.php5.89 ▲0.0194.55 ▼5.12
Media Library /wp-admin/upload.php3.23 ▲0.0135.98 ▲1.47
User Profile /wp-admin/options-general.php?page=adj-usr-profilr3.2132.27
Simplify Profile /wp-admin/users.php?page=adj-usr-profilr-usr3.2233.91

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 10 new options
New WordPress options
db_upgraded
usrprof_about
theysaidso_admin_options
usrprof_contact
usrprof_name
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
usrprof_personal
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Simple User Profile
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲6213.67 ▼0.531.93 ▼0.1242.23 ▲4.09
Dashboard /wp-admin2,214 ▲264.86 ▼0.06110.29 ▲1.2942.00 ▼2.74
Posts /wp-admin/edit.php2,100 ▲112.06 ▲0.0040.00 ▲0.0833.62 ▼3.25
Add New Post /wp-admin/post-new.php1,539 ▲523.36 ▲0.23588.56 ▼65.9449.20 ▼9.96
Media Library /wp-admin/upload.php1,396 ▲144.28 ▲0.1196.37 ▼4.4841.30 ▼1.49
User Profile /wp-admin/options-general.php?page=adj-usr-profilr9992.0322.5837.09
Simplify Profile /wp-admin/users.php?page=adj-usr-profilr-usr9992.0621.9126.52

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 did not uninstall successfully, leaving 10 options in the database
    • widget_recent-posts
    • usrprof_about
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • usrprof_name
    • usrprof_personal
    • widget_theysaidso_widget
    • usrprof_contact

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-user-profile/simple-profile.php:16

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

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: edit profile, simplify profile, remove profile fields, user profile, remove profile bio

simple-user-profile/simple-profile.php 85% from 13 tests

This is the main PHP file of "Simple User Profile" version 1.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 285 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-user-profile.php" instead of "simple-profile.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected154 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP116810154

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.55
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%
Functions7
▷ Named functions7100.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
There were not PNG files found in your plugin