78% wp-user-profile

Code Review | WP User Profile

WordPress plugin WP User Profile scored78%from 54 tests.

About plugin

  • Plugin page: wp-user-profile
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.5
  • WordPress version: 6.3.1
  • First release: Apr 10, 2018
  • Latest release: Apr 11, 2018
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: ejointjp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /577 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.79ms] Passed 4 tests

Analyzing server-side resources used by WP User Profile
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0625.72 ▼15.17
Dashboard /wp-admin3.33 ▲0.0345.68 ▲0.02
Posts /wp-admin/edit.php3.38 ▲0.0245.88 ▼0.60
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.00 ▲0.60
Media Library /wp-admin/upload.php3.25 ▲0.0233.60 ▲0.65
WP User Profile /wp-admin/options-general.php?page=wppf-setting3.1929.33

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
widget_wp-user-profile
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP User Profile
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.20 ▼1.041.84 ▲0.2341.27 ▲3.70
Dashboard /wp-admin2,207 ▲215.83 ▲0.8696.24 ▼19.6340.53 ▲2.13
Posts /wp-admin/edit.php2,090 ▲42.04 ▲0.0633.57 ▼1.5135.54 ▲2.57
Add New Post /wp-admin/post-new.php1,536 ▲822.98 ▲4.58629.94 ▲27.0056.90 ▲2.42
Media Library /wp-admin/upload.php1,392 ▲44.21 ▼0.0694.96 ▼2.1542.16 ▼0.48
WP User Profile /wp-admin/options-general.php?page=wppf-setting7992.0625.3727.01

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_wp-user-profile
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wppf-setting
    • > Notice in wp-content/plugins/wp-user-profile/wp-user-profile.php+157
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-user-profile/classes/class-wp-user-profile-widget.php:2
    • > PHP Fatal error
      Uncaught Error: Call to a member function avatar() on null in wp-content/plugins/wp-user-profile/template/wppf-template.php:3
    • > PHP Notice
      Undefined variable: wp_user_profile in wp-content/plugins/wp-user-profile/template/wppf-template.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-user-profile/classes/class-wp-user-profile-widget.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Invalid URI ("")
The official readme.txt might help

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

Analyzing the main PHP file in "WP User Profile" version 0.1.0
54 characters long description:
A WordPress plugin that makes author's profile easily.

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 plugin337 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP49140279
PO File1253457
CSS1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity3.50
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes116.67%
▷ Concrete classes583.33%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods2080.00%
▷ Protected methods00.00%
▷ Private methods520.00%
Functions1
▷ Named functions1100.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
No PNG images were found in this plugin