72% bulk-edit-user-profiles-in-spreadsheet

Code Review | Bulk Edit and Create User Profiles - WP Sheet Editor

WordPress plugin Bulk Edit and Create User Profiles - WP Sheet Editor scored72%from 54 tests.

About plugin

  • Plugin page: bulk-edit-user-pr...
  • Plugin version: 1.5.29
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.4
  • WordPress version: 6.3.1
  • First release: Apr 8, 2018
  • Latest release: Nov 1, 2023
  • Number of updates: 138
  • Update frequency: every 14.8 days
  • Top authors: JoseVega (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

1,000+ active /53,511 total downloads

Benchmarks

Plugin footprint 64% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲6.83MB] [CPU: ▲50.52ms] 50% from 4 tests

Server-side resources used by Bulk Edit and Create User Profiles - WP Sheet Editor
Please have a look at the following items
  • RAM: The total memory usage must be kept under 10MB (currently 10.17MB on /wp-admin/admin.php?page=vg_sheet_editor_setup)
  • Extra RAM: The extra memory usage must be under 5MB (currently 6.83MB on /wp-admin/admin.php?page=vg_sheet_editor_setup)
PageMemory (MB)CPU Time (ms)
Home /10.07 ▲6.6187.69 ▲45.29
Dashboard /wp-admin10.22 ▲6.9199.47 ▲51.23
Posts /wp-admin/edit.php10.33 ▲6.97108.45 ▲60.51
Add New Post /wp-admin/post-new.php12.80 ▲6.91135.34 ▲48.82
Media Library /wp-admin/upload.php10.14 ▲6.9193.24 ▲56.72
Settings /wp-admin/admin.php?page=vg_sheet_editor10.2785.63
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius10.3977.19
Extensions /wp-admin/admin.php?page=vg_sheet_editor_extensions10.1586.14
Edit Users /wp-admin/admin.php?page=vgse-bulk-edit-user10.51105.42
WP Sheet Editor /wp-admin/admin.php?page=vg_sheet_editor_setup10.1790.70

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 353 new files
Database: no new tables, 14 new options
New WordPress options
fs_active_plugins
widget_recent-comments
vg_sheet_editor
vgse_disable_quick_setup
fs_accounts
fs_debug_mode
widget_theysaidso_widget
vgse_columns_visibility_migrated
theysaidso_admin_options
can_compress_scripts
...

Browser metrics Passed 4 tests

An overview of browser requirements for Bulk Edit and Create User Profiles - WP Sheet Editor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,018 ▲25714.60 ▲0.041.86 ▲0.1529.03 ▼21.28
Dashboard /wp-admin2,384 ▲2095.65 ▲0.0096.66 ▼7.9187.56 ▲48.54
Posts /wp-admin/edit.php2,195 ▲951.97 ▼0.0140.11 ▲1.9338.76 ▲4.34
Add New Post /wp-admin/post-new.php1,607 ▲8121.93 ▼1.28706.19 ▲96.9350.24 ▲1.45
Media Library /wp-admin/upload.php1,488 ▲884.26 ▲0.1099.32 ▲3.6973.58 ▲29.05
Settings /wp-admin/admin.php?page=vg_sheet_editor2,2145.92169.7262.38
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius1,1431.6625.0227.12
Extensions /wp-admin/admin.php?page=vg_sheet_editor_extensions1,9735.86142.8573.73
Edit Users /wp-admin/admin.php?page=vgse-bulk-edit-user4,9168.43245.4073.66
WP Sheet Editor /wp-admin/admin.php?page=vg_sheet_editor_setup2,1085.6974.6584.52

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/bulk-edit-user-profiles-in-spreadsheet/vendor/freemius/includes/class-freemius.php+8546
    Undefined property: stdClass::$plugins
  • The uninstall procedure has failed, leaving 12 options in the database
    • wpseu_welcome_redirect
    • vgse_columns_visibility
    • fs_debug_mode
    • db_upgraded
    • widget_recent-comments
    • fs_active_plugins
    • widget_recent-posts
    • theysaidso_admin_options
    • fs_accounts
    • can_compress_scripts
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/bulk-edit-user-profiles-in-spreadsheet/vendor/vg-plugin-sdk/views/page-template.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulk-edit-user-profiles-in-spreadsheet/modules/wp-sheet-editor/inc/integrations/visual-composer.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/bulk-edit-user-profiles-in-spreadsheet/vendor/vg-plugin-sdk/views/settings-page.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulk-edit-user-profiles-in-spreadsheet/modules/wp-sheet-editor/inc/integrations/elementor.php:107
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/bulk-edit-user-profiles-in-spreadsheet/vendor/vg-plugin-sdk/samples/email-optin-form.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/bulk-edit-user-profiles-in-spreadsheet/vendor/vg-plugin-sdk/views/settings-form.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: users, bulk edit, buddypress, woocommerce, spreadsheet

bulk-edit-user-profiles-in-spreadsheet/users.php 77% from 13 tests

This is the main PHP file of "Bulk Edit and Create User Profiles - WP Sheet Editor" version 1.5.29, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.7" instead of "3.0")
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("bulk-edit-user-profiles-in-spreadsheet.php" instead of "users.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin179,212 lines of code in 253 files:
LanguageFilesBlank linesComment linesLines of code
PO File2719,34828,07564,271
JavaScript1315,53118,55654,375
PHP18810,57618,84549,672
CSS189173397,726
SVG4002,691
Markdown12110429
JSON10032
XML13016

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
These items need your attention
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity73.17
▷ Minimum class complexity1.00
▷ Maximum class complexity3,096.00
Average method complexity4.53
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes95
▷ Abstract classes33.16%
▷ Concrete classes9296.84%
▷ Final classes00.00%
Methods2,015
▷ Static methods24212.01%
▷ Public methods1,58378.56%
▷ Protected methods170.84%
▷ Private methods41520.60%
Functions133
▷ Named functions12996.99%
▷ Anonymous functions43.01%
Constants156
▷ Global constants10969.87%
▷ Class constants4730.13%
▷ Public constants47100.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
11 PNG files occupy 0.15MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
modules/wp-sheet-editor/assets/vendor/images/chosen-sprite@2x.png0.72KB0.83KB0.00%
assets/imgs/logo-248x102.png14.09KB5.48KB▼ 61.08%
modules/wp-sheet-editor/assets/imgs/logo-248x102.png14.09KB5.48KB▼ 61.08%
modules/wp-sheet-editor/assets/imgs/freemius-icon.png12.54KB6.09KB▼ 51.47%
modules/wp-sheet-editor/assets/vendor/images/chosen-sprite.png0.53KB0.88KB0.00%