74% import-users-from-csv-with-meta

Code Review | Import and export users and customers

WordPress plugin Import and export users and customers scored74%from 54 tests.

About plugin

  • Plugin page: import-users-from...
  • Plugin version: 1.24.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.4.1
  • WordPress version: 6.3.1
  • First release: Jul 14, 2014
  • Latest release: Dec 1, 2023
  • Number of updates: 438
  • Update frequency: every 7.8 days
  • Top authors: carazo (99.09%)hornero (1.14%)

Code review

54 tests

User reviews

219 reviews

Install metrics

80,000+ active /3,848,889 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: ▲2.66MB] [CPU: ▲10.95ms] Passed 4 tests

This is a short check of server-side resources used by Import and export users and customers
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /6.14 ▲2.6856.62 ▲18.03
Dashboard /wp-admin5.99 ▲2.6465.25 ▲7.17
Posts /wp-admin/edit.php6.02 ▲2.6668.15 ▲14.24
Add New Post /wp-admin/post-new.php8.57 ▲2.69108.55 ▲4.35
Media Library /wp-admin/upload.php5.89 ▲2.6658.07 ▲27.36
Import and export users and customers /wp-admin/tools.php?page=acui5.9160.01
Scheduled Actions /wp-admin/tools.php?page=action-scheduler6.0963.57

Server storage [IO: ▲1.14MB] [DB: ▲0.08MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 170 new files
Database: 4 new tables, 10 new options
New tables
wp_actionscheduler_claims
wp_actionscheduler_actions
wp_actionscheduler_groups
wp_actionscheduler_logs
New WordPress options
action_scheduler_hybrid_store_demarkation
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
acui_settings
schema-ActionScheduler_StoreSchema
db_upgraded
widget_recent-posts
schema-ActionScheduler_LoggerSchema

Browser metrics Passed 4 tests

A check of browser resources used by Import and export users and customers
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲3614.37 ▼0.361.75 ▲0.1236.66 ▼3.13
Dashboard /wp-admin2,206 ▲295.62 ▲0.0195.78 ▼7.4842.12 ▼0.93
Posts /wp-admin/edit.php2,108 ▲81.96 ▼0.0639.80 ▼0.1935.98 ▲0.27
Add New Post /wp-admin/post-new.php1,532 ▼322.99 ▼2.07637.07 ▼5.3058.92 ▼14.18
Media Library /wp-admin/upload.php1,405 ▲54.19 ▲0.0097.50 ▲3.3742.35 ▲0.39
Import and export users and customers /wp-admin/tools.php?page=acui1,6783.9563.7946.59
Scheduled Actions /wp-admin/tools.php?page=action-scheduler1,2381.8228.4731.33

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The plugin did not uninstall successfully, leaving 4 tables in the database
    • wp_actionscheduler_groups
    • wp_actionscheduler_logs
    • wp_actionscheduler_actions
    • wp_actionscheduler_claims
  • This plugin does not fully uninstall, leaving 10 options in the database
    • widget_recent-posts
    • schema-ActionScheduler_StoreSchema
    • widget_theysaidso_widget
    • acui_settings
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • schema-ActionScheduler_LoggerSchema
    • action_scheduler_hybrid_store_demarkation

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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
  • 43× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'ActionScheduler_Exception' not found in wp-content/plugins/import-users-from-csv-with-meta/lib/action-scheduler/classes/ActionScheduler_InvalidActionException.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_Schedule' not found in wp-content/plugins/import-users-from-csv-with-meta/lib/action-scheduler/classes/schedules/ActionScheduler_SimpleSchedule.php:6
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/import-users-from-csv-with-meta/lib/action-scheduler/classes/abstracts/ActionScheduler_Abstract_ListTable.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_QueueRunner' not found in wp-content/plugins/import-users-from-csv-with-meta/lib/action-scheduler/classes/WP_CLI/ActionScheduler_WPCLI_QueueRunner.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Schedule_Deprecated' not found in wp-content/plugins/import-users-from-csv-with-meta/lib/action-scheduler/classes/abstracts/ActionScheduler_Abstract_Schedule.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_SimpleSchedule' not found in wp-content/plugins/import-users-from-csv-with-meta/lib/action-scheduler/classes/schedules/ActionScheduler_CanceledSchedule.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/import-users-from-csv-with-meta/lib/action-scheduler/lib/cron-expression/CronExpression_MinutesField.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Action' not found in wp-content/plugins/import-users-from-csv-with-meta/lib/action-scheduler/classes/actions/ActionScheduler_FinishedAction.php:6
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/import-users-from-csv-with-meta/lib/action-scheduler/classes/abstracts/ActionScheduler_Abstract_ListTable.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/import-users-from-csv-with-meta/lib/action-scheduler/classes/WP_CLI/ActionScheduler_WPCLI_Clean_Command.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
You can take inspiration from this readme.txt

import-users-from-csv-with-meta/import-users-from-csv-with-meta.php Passed 13 tests

The primary PHP file in "Import and export users and customers" version 1.24.1 is used by WordPress to initiate all plugin functionality
139 characters long description:
Using this plugin you will be able to import and export users or customers choosing many options and interacting with lots of other plugins

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected16,679 lines of code in 154 files:
LanguageFilesBlank linesComment linesLines of code
PHP1433,5325,77614,794
PO File24644841,391
CSS1333190
JavaScript3300172
Markdown237090
SVG10128
XML1009
JSON1005

PHP code 50% from 2 tests

A short review of cyclomatic complexity and code structure
Please fix the following
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 113)
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity16.72
▷ Minimum class complexity1.00
▷ Maximum class complexity236.00
Average method complexity2.90
▷ Minimum method complexity1.00
▷ Maximum method complexity113.00
Code structure
Namespaces4
Interfaces3
Traits0
Classes124
▷ Abstract classes1512.10%
▷ Concrete classes10987.90%
▷ Final classes00.00%
Methods1,052
▷ Static methods13312.64%
▷ Public methods86582.22%
▷ Protected methods14914.16%
▷ Private methods383.61%
Functions78
▷ Named functions5064.10%
▷ Anonymous functions2835.90%
Constants35
▷ Global constants25.71%
▷ Class constants3394.29%
▷ Public constants33100.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
5 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon_coffee.png5.82KB5.80KB0.42%
assets/webempresa_logo.png2.76KB2.74KB▼ 0.71%
assets/codection-inmotion.png9.64KB9.62KB0.22%
icon_coffee.png5.82KB5.80KB0.42%
csv_example.png11.95KB12.02KB0.00%