84% wp-user-profiles

Code Review | WP User Profiles

WordPress plugin WP User Profiles scored84%from 54 tests.

About plugin

  • Plugin page: wp-user-profiles
  • Plugin version: 2.6.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.9
  • WordPress version: 6.3.1
  • First release: Oct 15, 2015
  • Latest release: Aug 18, 2021
  • Number of updates: 37
  • Update frequency: every 57.7 days
  • Top authors: johnjamesjacoby (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

500+ active /23,053 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼7.04ms] Passed 4 tests

An overview of server-side resources used by WP User Profiles
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0653.35 ▲5.58
Dashboard /wp-admin3.38 ▲0.0348.32 ▼22.21
Posts /wp-admin/edit.php3.49 ▲0.1352.72 ▲1.22
Add New Post /wp-admin/post-new.php5.96 ▲0.0786.12 ▼10.90
Media Library /wp-admin/upload.php3.30 ▲0.0738.55 ▲3.74
Profile /wp-admin/users.php?page=profile3.2937.71

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WP User Profiles
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.38 ▲0.091.76 ▲0.0443.67 ▼0.28
Dashboard /wp-admin2,195 ▲245.51 ▼0.1586.09 ▼36.5441.35 ▼16.30
Posts /wp-admin/edit.php2,097 ▼32.04 ▲0.0636.30 ▼2.1236.21 ▲1.91
Add New Post /wp-admin/post-new.php1,527 ▼123.17 ▼0.03677.82 ▼18.7859.91 ▼0.90
Media Library /wp-admin/upload.php1,403 ▲64.18 ▲0.00104.24 ▼15.7345.26 ▼7.33
Profile /wp-admin/users.php?page=profile1,31013.32109.8654.36

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
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-ms-sites-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/wp-user-profiles/wp-user-profiles/includes/sites-list-table.php on line 9
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-ms-sites-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-user-profiles/wp-user-profiles/includes/sites-list-table.php on line 9
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-user-profiles/wp-user-profiles/includes/sites-list-table.php on line 9

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

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed: You can take inspiration from this readme.txt

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

"WP User Profiles" version 2.6.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
52 characters long description:
Upgrade your WordPress admin user profile experience

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 detected3,018 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
PHP369321,7862,340
JavaScript2137117512
CSS44630166

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity12.12
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity4.07
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods29
▷ Static methods00.00%
▷ Public methods2896.55%
▷ Protected methods13.45%
▷ Private methods00.00%
Functions79
▷ Named functions7898.73%
▷ Anonymous functions11.27%
Constants3
▷ Global constants3100.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 were not PNG files found in your plugin