62% users-customers-import-export-for-wp-woocommerce

Code Review | Export and Import Users and Customers

WordPress plugin Export and Import Users and Customers scored62%from 54 tests.

About plugin

  • Plugin page: users-customers-i...
  • Plugin version: 2.4.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Oct 22, 2016
  • Latest release: Nov 21, 2023
  • Number of updates: 129
  • Update frequency: every 20.1 days
  • Top authors: webtoffee (74.42%)xadapter (11.63%)hikeforce (8.53%)mujeebur (7.75%)

Code review

54 tests

User reviews

380 reviews

Install metrics

70,000+ active /1,972,999 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.72MB] [CPU: ▲3.07ms] Passed 4 tests

A check of server-side resources used by Export and Import Users and Customers
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0235.04 ▼7.66
Dashboard /wp-admin4.25 ▲0.9552.21 ▲2.50
Posts /wp-admin/edit.php4.37 ▲1.0155.96 ▲6.46
Add New Post /wp-admin/post-new.php6.83 ▲0.95103.14 ▲16.65
Media Library /wp-admin/upload.php4.18 ▲0.9542.69 ▲10.99
Export /wp-admin/admin.php?page=wt_import_export_for_woo_basic_export4.2041.43
Pro upgrade /wp-admin/admin.php?page=wt_import_export_for_woo_basic_export-premium4.1241.48
Import /wp-admin/admin.php?page=wt_import_export_for_woo_basic_import4.2142.83
Import Logs /wp-admin/admin.php?page=wt_import_export_for_woo_basic_history_log4.1741.10
History /wp-admin/admin.php?page=wt_import_export_for_woo_basic_history4.2140.25
General Settings /wp-admin/admin.php?page=wt_import_export_for_woo_basic4.3746.07

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 160 new files
Database: 2 new tables, 9 new options
New tables
wp_wt_iew_action_history
wp_wt_iew_mapping_template
New WordPress options
can_compress_scripts
wt_u_iew_is_active
wt_iew_admin_modules
widget_recent-comments
db_upgraded
wt_u_iew_basic_start_date
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Export and Import Users and Customers
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲7014.29 ▼0.051.62 ▼0.1126.53 ▼17.26
Dashboard /wp-admin2,237 ▲575.63 ▼0.0294.52 ▼1.6344.51 ▲0.39
Posts /wp-admin/edit.php2,142 ▲421.95 ▲0.0139.59 ▼1.0937.20 ▲0.44
Add New Post /wp-admin/post-new.php1,560 ▲3423.03 ▼0.19573.35 ▼31.2550.61 ▼1.83
Media Library /wp-admin/upload.php1,445 ▲484.27 ▲0.0596.38 ▼4.8947.06 ▲4.26
Export /wp-admin/admin.php?page=wt_import_export_for_woo_basic_export1,8242.3344.6957.39
Pro upgrade /wp-admin/admin.php?page=wt_import_export_for_woo_basic_export-premium7031.517.0623.78
Import /wp-admin/admin.php?page=wt_import_export_for_woo_basic_import1,9412.4345.0950.09
Import Logs /wp-admin/admin.php?page=wt_import_export_for_woo_basic_history_log8822.1528.7625.99
History /wp-admin/admin.php?page=wt_import_export_for_woo_basic_history9682.1227.4737.32
General Settings /wp-admin/admin.php?page=wt_import_export_for_woo_basic4,0202.1456.3589.42

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
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_wt_iew_mapping_template
    • wp_wt_iew_action_history
  • The uninstall procedure has failed, leaving 8 options in the database
    • can_compress_scripts
    • db_upgraded
    • wt_iew_admin_modules
    • widget_theysaidso_widget
    • widget_recent-posts
    • wt_u_iew_basic_start_date
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wt_import_export_for_woo_basic_export-premium
    • > Warning in wp-includes/pluggable.php+1438
    Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/users-customers-import-export-for-wp-woocommerce/public/partials/wt-import-export-for-woo-public-display.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/users-customers-import-export-for-wp-woocommerce/includes/class-wt-userimport-uninstall-feedback.php:10

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 93% 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
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
You can take inspiration from this readme.txt

users-customers-import-export-for-wp-woocommerce/users-customers-import-export-for-wp-woocommerce.php 92% from 13 tests

The primary PHP file in "Export and Import Users and Customers" version 2.4.7 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("3.0.1" instead of "3.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin16,885 lines of code in 103 files:
LanguageFilesBlank linesComment linesLines of code
PHP691,4211,83511,245
JavaScript82491213,450
CSS4128881,778
SVG2200412

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity41.10
▷ Minimum class complexity1.00
▷ Maximum class complexity173.00
Average method complexity5.06
▷ Minimum method complexity1.00
▷ Maximum method complexity46.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes29
▷ Abstract classes13.45%
▷ Concrete classes2896.55%
▷ Final classes00.00%
Methods292
▷ Static methods6622.60%
▷ Public methods23279.45%
▷ Protected methods3712.67%
▷ Private methods237.88%
Functions21
▷ Named functions1571.43%
▷ Anonymous functions628.57%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.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
46 PNG files occupy 0.43MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/other_solutions/smart-coupons-plugin.png5.73KB5.74KB0.00%
assets/images/support.png1.63KB1.69KB0.00%
assets/images/wt-close-button.png0.76KB0.52KB▼ 32.09%
assets/images/wt-error-icon.png1.33KB0.70KB▼ 47.24%
admin/css/images/ui-bg_glass_75_e6e6e6_1x400.png0.29KB0.15KB▼ 49.83%