79% wp-ultimate-csv-importer

Code Review | Import All Pages, Post types, Products, Orders, and Users as XML & CSV

WordPress plugin Import All Pages, Post types, Products, Orders, and Users as XML & CSV scored79%from 54 tests.

About plugin

  • Plugin page: wp-ultimate-csv-i...
  • Plugin version: 7.10.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Oct 22, 2012
  • Latest release: Nov 21, 2023
  • Number of updates: 370
  • Update frequency: every 11.0 days
  • Top authors: smackcoders (100%)

Code review

54 tests

User reviews

483 reviews

Install metrics

20,000+ active /1,411,363 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲1.39MB] [CPU: ▲0.45ms] Passed 4 tests

A check of server-side resources used by Import All Pages, Post types, Products, Orders, and Users as XML & CSV
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.90 ▲1.4345.17 ▲0.86
Dashboard /wp-admin4.74 ▲1.3957.93 ▼4.57
Posts /wp-admin/edit.php4.79 ▲1.4358.08 ▲11.36
Add New Post /wp-admin/post-new.php7.26 ▲1.3789.77 ▼2.31
Media Library /wp-admin/upload.php4.60 ▲1.3741.55 ▲7.80
Manage Addons /wp-admin/admin.php?page=wp-addons-page4.5936.95
Ultimate CSV Importer Free /wp-admin/admin.php?page=com.smackcoders.csvimporternew.menu7.6779.16

Server storage [IO: ▲9.44MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 214 new files
Database: 11 new tables, 8 new options
New tables
wp_import_postID
wp_cli_csv_template
wp_ultimate_csv_importer_acf_fields
wp_smackuci_events
wp_ultimate_csv_importer_mappingtemplate
wp_ultimate_csv_importer_media
wp_ultimate_post_entries
wp_ultimate_csv_importer_shortcode_manager
wp_import_detail_log
wp_smackcsv_file_events
...
New WordPress options
ULTIMATE_CSV_IMP_VERSION
sm_uci_pro_settings
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Import All Pages, Post types, Products, Orders, and Users as XML & CSV: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,862 ▲11514.26 ▼0.382.09 ▲0.4444.04 ▲1.95
Dashboard /wp-admin2,236 ▲555.57 ▼0.1091.70 ▼11.2673.59 ▲32.26
Posts /wp-admin/edit.php2,148 ▲481.99 ▼0.0038.25 ▼0.0932.44 ▼2.96
Add New Post /wp-admin/post-new.php1,583 ▲5723.37 ▲0.40786.11 ▲171.8369.12 ▲16.09
Media Library /wp-admin/upload.php1,438 ▲384.21 ▲0.03105.17 ▲7.6577.27 ▲33.09
Manage Addons /wp-admin/admin.php?page=wp-addons-page1,2042.6434.6180.39
Ultimate CSV Importer Free /wp-admin/admin.php?page=com.smackcoders.csvimporternew.menu1,1106.46433.95141.89

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie tables were found after uninstall: 11 tables
    • wp_ultimate_post_entries
    • wp_import_log_detail
    • wp_ultimate_csv_importer_media
    • wp_ultimate_csv_importer_shortcode_manager
    • wp_smackuci_events
    • wp_smackcsv_file_events
    • wp_ultimate_csv_importer_acf_fields
    • wp_import_detail_log
    • wp_cli_csv_template
    • wp_ultimate_csv_importer_mappingtemplate
    • ...
  • Zombie WordPress options detected upon uninstall: 8 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • ULTIMATE_CSV_IMP_VERSION
    • sm_uci_pro_settings
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (Dashboard view of the WordPress Ultimate CSV & XML Import plugin.), #2 (Upload an XML or CSV file.), #3 (Simple Drag and Drop mapping in CSV & XML Import plugin.), #4 (Mapping view of the uploaded XML or CSV. All import fields are set up against WordPress fields.), #5 (Detailed real-time log in WordPress.), #6 (Settings with php.ini details.), #7 (Downloadable log manager for all imported events.), #8 (WordPress XML All Import Option.)
  • Tags: You are using too many tags: 45 tag instead of maximum 10
The official readme.txt is a good inspiration

wp-ultimate-csv-importer/wp-ultimate-csv-importer.php Passed 13 tests

This is the main PHP file of "Import All Pages, Post types, Products, Orders, and Users as XML & CSV" version 7.10.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
95 characters long description:
Seamlessly create posts, custom posts, pages, media, SEO and more from your CSV data with ease.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin47,813 lines of code in 139 files:
LanguageFilesBlank linesComment linesLines of code
PHP1132,5961,59424,146
CSS152,57323411,442
SVG4009,695
JavaScript63651,0571,621
Markdown15190909

PHP code 50% from 2 tests

A short review of cyclomatic complexity and code structure
These items need your attention
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 568)
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity34.20
▷ Minimum class complexity1.00
▷ Maximum class complexity569.00
Average method complexity8.61
▷ Minimum method complexity1.00
▷ Maximum method complexity568.00
Code structure
Namespaces2
Interfaces1
Traits0
Classes108
▷ Abstract classes00.00%
▷ Concrete classes108100.00%
▷ Final classes00.00%
Methods472
▷ Static methods15633.05%
▷ Public methods46097.46%
▷ Protected methods00.00%
▷ Private methods122.54%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
51 PNG files occupy 1.73MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/wp-ultimate-csv-importer.png1.25KB0.95KB▼ 23.53%
assets/css/images/formula.png0.84KB1.00KB0.00%
assets/images/check-circle.png0.87KB0.38KB▼ 55.83%
assets/css/images/file/pdf.png0.58KB0.57KB▼ 1.02%
assets/css/images/file/old/directory.png0.52KB0.68KB0.00%