78% user-meta

Code Review | User Meta - User Profile Builder and User management plugin

WordPress plugin User Meta - User Profile Builder and User management plugin scored78%from 54 tests.

About plugin

  • Plugin page: user-meta
  • Plugin version: 3.0
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Jul 13, 2011
  • Latest release: Jul 30, 2023
  • Number of updates: 188
  • Update frequency: every 23.4 days
  • Top authors: khaledsaikat (81.38%)sourov (19.15%)

Code review

54 tests

User reviews

16 reviews

Install metrics

2,000+ active /166,629 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲1.51MB] [CPU: ▲6.86ms] Passed 4 tests

An overview of server-side resources used by User Meta - User Profile Builder and User management plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.94 ▲1.4852.77 ▲12.83
Dashboard /wp-admin4.89 ▲1.5565.37 ▼2.70
Posts /wp-admin/edit.php4.92 ▲1.5655.33 ▲8.41
Add New Post /wp-admin/post-new.php7.36 ▲1.47107.79 ▲8.88
Media Library /wp-admin/upload.php4.75 ▲1.5353.51 ▲18.09
Pro Features /wp-admin/admin.php?page=user-meta-pro-ads4.7346.60
Forms /wp-admin/admin.php?page=user-meta4.7843.44
Settings /wp-admin/admin.php?page=user-meta-settings4.9548.02
Shared Fields /wp-admin/admin.php?page=user-meta-fields4.8044.15

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 206 new files
Database: no new tables, 10 new options
New WordPress options
widget_theysaidso_widget
user_meta_history
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_umform
user_meta_feedback
widget_umlogin
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for User Meta - User Profile Builder and User management plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,922 ▲17613.68 ▼0.578.67 ▲6.9543.35 ▲1.23
Dashboard /wp-admin2,233 ▲444.86 ▼1.07101.57 ▼18.3964.30 ▲22.10
Posts /wp-admin/edit.php2,129 ▲402.02 ▼0.0336.19 ▼2.7434.14 ▼1.44
Add New Post /wp-admin/post-new.php1,548 ▲2023.16 ▲4.58773.85 ▲91.0263.81 ▲11.61
Media Library /wp-admin/upload.php1,421 ▲334.23 ▲0.03113.45 ▼2.3176.95 ▲30.58
Pro Features /wp-admin/admin.php?page=user-meta-pro-ads1,0911.8731.2653.63
Forms /wp-admin/admin.php?page=user-meta1,1872.2336.6446.30
Settings /wp-admin/admin.php?page=user-meta-settings1,8392.5749.4286.65
Shared Fields /wp-admin/admin.php?page=user-meta-fields1,0312.1833.1538.14

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 10 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • user_meta_feedback
    • widget_umform
    • theysaidso_admin_options
    • widget_umlogin
    • widget_recent-posts
    • can_compress_scripts
    • user_meta_history

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/user-meta/user-meta.php
    • > /wp-content/plugins/user-meta/views/debug.php
  • 61× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/user-meta/views/settings/textSettings.php:7
    • > PHP Notice
      Undefined variable: isOpen in wp-content/plugins/user-meta/views/metaBox.php on line 6
    • > PHP Fatal error
      Uncaught Error: Class 'UserMeta\\Field\\Multiple' not found in wp-content/plugins/user-meta/models/classes/Field/Custom.php:12
    • > PHP Fatal error
      Uncaught Error: Call to a member function createInput() on null in wp-content/plugins/user-meta/views/forms/conditionalPanel.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'UserMeta\\Field\\Multiple' not found in wp-content/plugins/user-meta/models/classes/Field/Email.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/user-meta/views/settings/generalSettings.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'UserMeta\\Field\\Base' not found in wp-content/plugins/user-meta/models/classes/Field/Description.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'UserMeta\\Field\\Base' not found in wp-content/plugins/user-meta/models/classes/Field/Consent.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function UserMeta\\_e() in wp-content/plugins/user-meta/views/forms/formsEditorPage.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'UserMeta\\Field\\Description' not found in wp-content/plugins/user-meta/models/classes/Field/RichText.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
The official readme.txt might help

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

The main file in "User Meta - User Profile Builder and User management plugin" v. 3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
70 characters long description:
A well-designed, feature-rich, and easy to use user management plugin.

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
Success! There were no dangerous files found in this plugin60,091 lines of code in 160 files:
LanguageFilesBlank linesComment linesLines of code
PO File1010,62021,19223,173
JavaScript182,4492,28212,962
PHP1112,5683,88412,864
CSS131,37013110,546
Markdown11300359
JSON300113
YAML38667
XML1007

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity25.47
▷ Minimum class complexity1.00
▷ Maximum class complexity130.00
Average method complexity3.93
▷ Minimum method complexity1.00
▷ Maximum method complexity70.00
Code structure
Namespaces4
Interfaces0
Traits3
Classes73
▷ Abstract classes22.74%
▷ Concrete classes7197.26%
▷ Final classes11.41%
Methods635
▷ Static methods233.62%
▷ Public methods35656.06%
▷ Protected methods14222.36%
▷ Private methods13721.57%
Functions48
▷ Named functions3777.08%
▷ Anonymous functions1122.92%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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
19 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/jquery/jquery.wysiwyg.bg.png0.59KB0.33KB▼ 44.41%
assets/images/success.png1.88KB1.49KB▼ 21.07%
screenshot-2.png9.41KB8.13KB▼ 13.64%
screenshot-1.png4.61KB3.57KB▼ 22.66%
assets/images/ump-icon.png3.39KB0.78KB▼ 77.09%