63% uix-usercenter

Code Review | Uix UserCenter

WordPress plugin Uix UserCenter scored63%from 54 tests.

About plugin

  • Plugin page: uix-usercenter
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-6.4
  • WordPress version: 6.3.1
  • First release: Oct 28, 2022
  • Latest release: Nov 8, 2023
  • Number of updates: 15
  • Update frequency: every 25.1 days
  • Top authors: uiuxlab (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,015 total downloads

Benchmarks

Plugin footprint 65% 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.07MB] [CPU: ▼10.40ms] Passed 4 tests

Analyzing server-side resources used by Uix UserCenter
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.09 ▲0.6254.31 ▲14.72
Dashboard /wp-admin3.90 ▲0.5541.70 ▼22.54
Posts /wp-admin/edit.php3.90 ▲0.5449.77 ▲3.59
Add New Post /wp-admin/post-new.php3.90 ▼1.9948.13 ▼37.35
Media Library /wp-admin/upload.php3.90 ▲0.6755.97 ▲23.85
Template Files /wp-admin/admin.php?page=uix-usercenter-helper&tab=temp3.9048.75
Settings /wp-admin/admin.php?page=uix-usercenter-helper&tab=general-settings3.9043.58
Uix UserCenter /wp-admin/edit.php?post_type=uix_usercenter3.9045.87
Add New Item /wp-admin/post-new.php?post_type=uix_usercenter3.9047.08
How to use? /wp-admin/admin.php?page=uix-usercenter-helper&tab=usage3.9053.82
About /wp-admin/edit.php?post_type=uix_usercenter&page=uix-usercenter-helper3.9046.01

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 148 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
uix_usercenter_opt_captchastr
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Uix UserCenter
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,885 ▲11314.38 ▲0.014.70 ▲2.5739.64 ▼4.53
Dashboard /wp-admin2,243 ▲685.66 ▲0.0995.75 ▼22.4142.03 ▼0.16
Posts /wp-admin/edit.php2,148 ▲482.00 ▲0.0539.04 ▲1.6936.84 ▲0.52
Add New Post /wp-admin/post-new.php1,590 ▲6422.14 ▼1.44634.08 ▼79.6834.60 ▼21.65
Media Library /wp-admin/upload.php1,448 ▲484.18 ▼0.04100.52 ▼9.6543.42 ▼2.72
Template Files /wp-admin/admin.php?page=uix-usercenter-helper&tab=temp9422.0637.8231.42
Settings /wp-admin/admin.php?page=uix-usercenter-helper&tab=general-settings1,2262.0837.2331.62
Uix UserCenter /wp-admin/edit.php?post_type=uix_usercenter1,2102.0833.4134.61
Add New Item /wp-admin/post-new.php?post_type=uix_usercenter2,7277.68189.1477.08
How to use? /wp-admin/admin.php?page=uix-usercenter-helper&tab=usage9182.0530.7131.60
About /wp-admin/edit.php?post_type=uix_usercenter&page=uix-usercenter-helper8892.0732.1826.21

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Warning in wp-admin/includes/class-wp-filesystem-direct.php+558
    mkdir(): No such file or directory
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • uix_usercenter_opt_captchastr
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=uix_usercenter&page=uix-usercenter-helper
    • > Warning in wp-admin/includes/class-wp-filesystem-direct.php+558
    mkdir(): No such file or directory

SRP 0% 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
  • 5× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/uix-usercenter/helper/tabs/temp.php
    • > /wp-content/plugins/uix-usercenter/theme_templates/partials-usercenter_tmpl_nav.php
    • > /wp-content/plugins/uix-usercenter/helper/tabs/about.php
    • > /wp-content/plugins/uix-usercenter/helper/tabs/usage.php
    • > /wp-content/plugins/uix-usercenter/helper/tabs/general-settings.php
  • 27× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Uix_UserCenter_Custom_Metaboxes' not found in wp-content/plugins/uix-usercenter/includes/admin/uix-custom-metaboxes/controls/custom-attrs.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Uix_UserCenter_Custom_Metaboxes' not found in wp-content/plugins/uix-usercenter/includes/admin/uix-custom-metaboxes/controls/multi-checkbox.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Uix_UserCenter_Custom_Metaboxes' not found in wp-content/plugins/uix-usercenter/includes/admin/uix-custom-metaboxes/controls/multi-content.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/uix-usercenter/includes/post-type/options.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Uix_UserCenter_Custom_Metaboxes' not found in wp-content/plugins/uix-usercenter/includes/admin/uix-custom-metaboxes/controls/checkbox.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/uix-usercenter/theme_templates/tmpl-usercenter_password_reset.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/uix-usercenter/theme_templates/partials-usercenter_tmpl_nav.php:209
    • > PHP Fatal error
      Uncaught Error: Class 'Uix_UserCenter_Custom_Metaboxes' not found in wp-content/plugins/uix-usercenter/includes/admin/uix-custom-metaboxes/controls/image.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/uix-usercenter/includes/plugins/checkcode/index.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Uix_UserCenter_Custom_Metaboxes' not found in wp-content/plugins/uix-usercenter/includes/admin/uix-custom-metaboxes/controls/multi-portfolio.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
8 plugin tags: post type, ajax, sign-up, users, register...

uix-usercenter/uix-usercenter.php Passed 13 tests

Analyzing the main PHP file in "Uix UserCenter" version 1.0.2
74 characters long description:
Sign-in, registration and publishing system with AJAX, support remote API.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin25,923 lines of code in 142 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript831,2221,01118,540
PHP502,3071,1744,690
CSS74211621,657
Markdown12250535
PO File1199249501

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity24.81
▷ Minimum class complexity5.00
▷ Maximum class complexity111.00
Average method complexity6.43
▷ Minimum method complexity1.00
▷ Maximum method complexity65.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes21
▷ Abstract classes00.00%
▷ Concrete classes21100.00%
▷ Final classes00.00%
Methods93
▷ Static methods9197.85%
▷ Public methods9096.77%
▷ Protected methods00.00%
▷ Private methods33.23%
Functions32
▷ Named functions2990.62%
▷ Anonymous functions39.38%
Constants6
▷ Global constants350.00%
▷ Class constants350.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin