67% wp-all-import

Code Review | Import any XML or CSV File to WordPress

WordPress plugin Import any XML or CSV File to WordPress scored67%from 54 tests.

About plugin

  • Plugin page: wp-all-import
  • Plugin version: 3.7.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.3
  • WordPress version: 6.3.1
  • First release: Jul 24, 2012
  • Latest release: Oct 19, 2023
  • Number of updates: 254
  • Update frequency: every 16.2 days
  • Top authors: soflyy (96.85%)WPAllImport (3.54%)

Code review

54 tests

User reviews

1811 reviews

Install metrics

100,000+ active /3,691,032 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.93MB] [CPU: ▲6.71ms] Passed 4 tests

This is a short check of server-side resources used by Import any XML or CSV File to WordPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.32 ▲0.8648.44 ▲7.76
Dashboard /wp-admin4.27 ▲0.9357.49 ▼2.54
Posts /wp-admin/edit.php4.39 ▲1.0359.76 ▲14.00
Add New Post /wp-admin/post-new.php6.86 ▲0.97104.73 ▲7.63
Media Library /wp-admin/upload.php4.20 ▲0.9751.65 ▲16.92
Manage Imports /wp-admin/admin.php?page=pmxi-admin-manage4.3554.15
Settings /wp-admin/admin.php?page=pmxi-admin-settings4.3664.10
Support /wp-admin/admin.php?page=pmxi-admin-help4.2447.79
History /wp-admin/admin.php?page=pmxi-admin-history4.0232.14
New Import /wp-admin/admin.php?page=pmxi-admin-import6.6657.77

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 533 new files
Database: 7 new tables, 7 new options
New tables
wp_pmxi_images
wp_pmxi_hash
wp_pmxi_history
wp_pmxi_imports
wp_pmxi_templates
wp_pmxi_posts
wp_pmxi_files
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
pmxi_is_migrated
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Import any XML or CSV File to WordPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲10214.37 ▼0.161.72 ▲0.0743.88 ▲2.97
Dashboard /wp-admin2,252 ▲755.53 ▼0.1385.30 ▼8.9838.25 ▼1.25
Posts /wp-admin/edit.php2,159 ▲622.02 ▲0.0535.75 ▲3.0431.10 ▼5.81
Add New Post /wp-admin/post-new.php1,574 ▲4818.20 ▼4.81596.50 ▼51.3576.15 ▲22.59
Media Library /wp-admin/upload.php1,462 ▲624.30 ▲0.1396.67 ▼1.2844.28 ▲1.58
Manage Imports /wp-admin/admin.php?page=pmxi-admin-manage1,3274.8080.9738.89
Settings /wp-admin/admin.php?page=pmxi-admin-settings1,5665.2792.7950.27
Support /wp-admin/admin.php?page=pmxi-admin-help9874.7655.5931.48
History /wp-admin/admin.php?page=pmxi-admin-history1,2904.8551.5327.66
New Import /wp-admin/admin.php?page=pmxi-admin-import1,9235.4272.7635.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
These items require your attention
  • The uninstall procedure failed, leaving 7 tables in the database
    • wp_pmxi_templates
    • wp_pmxi_files
    • wp_pmxi_hash
    • wp_pmxi_history
    • wp_pmxi_images
    • wp_pmxi_posts
    • wp_pmxi_imports
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • pmxi_is_migrated

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-all-import/views/admin/import/evaluate_variations.php
  • 150× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-all-import/views/admin/help/index.php:1
    • > PHP Fatal error
      Uncaught Error: Interface 'Prewk\\XmlStringStreamer\\StreamInterface' not found in wp-content/plugins/wp-all-import/classes/XmlStreamReader/prewk/xml-string-streamer/src/XmlStringStreamer/Stream/File.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'PMXI_Model_List' not found in wp-content/plugins/wp-all-import/models/import/list.php:3
    • > PHP Fatal error
      Uncaught Error: Interface 'PHPExcel_IComparable' not found in wp-content/plugins/wp-all-import/classes/PHPExcel/Comment.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'PHPExcel_CachedObjectStorage_CacheBase' not found in wp-content/plugins/wp-all-import/classes/PHPExcel/CachedObjectStorage/DiscISAM.php:28
    • > PHP Notice
      Undefined variable: is_csv in wp-content/plugins/wp-all-import/views/admin/import/evaluate.php on line 2
    • > PHP Notice
      Undefined variable: tagno in wp-content/plugins/wp-all-import/views/admin/import/preview_prices.php on line 5
    • > PHP Fatal error
      Uncaught Error: Class 'PMXI_Controller_Admin' not found in wp-content/plugins/wp-all-import/controllers/admin/settings.php:7
    • > PHP Notice
      Undefined variable: isWizard in wp-content/plugins/wp-all-import/views/admin/import/options/_buttons_template.php on line 1
    • > PHP Fatal error
      Uncaught Error: Class 'PHPExcel_Worksheet_Drawing' not found in wp-content/plugins/wp-all-import/classes/PHPExcel/Worksheet/HeaderFooterDrawing.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 87% 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 require attention:
  • Screenshots: These screenshots require images: #1 (Choose file.), #2 (Filtering options.), #3 (Choose where to import your data.), #4 (Manage imports.)
  • Tags: There are too many tags (23 tag instead of maximum 10)
You can look at the official readme.txt

wp-all-import/plugin.php 85% from 13 tests

This is the main PHP file of "Import any XML or CSV File to WordPress" version 3.7.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-all-import.php" instead of "plugin.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 220 characters long)

Code Analysis 95% 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 plugin90,245 lines of code in 386 files:
LanguageFilesBlank linesComment linesLines of code
PHP35211,54132,22165,481
PO File65,8087,65611,791
JavaScript139465366,617
CSS123313566,257
SVG33199

PHP code 0% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 1,625)
  • Method cyclomatic complexity should be reduced to less than 100 (currently 1,218)
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity51.45
▷ Minimum class complexity1.00
▷ Maximum class complexity1,625.00
Average method complexity5.46
▷ Minimum method complexity1.00
▷ Maximum method complexity1,218.00
Code structure
Namespaces6
Interfaces10
Traits0
Classes230
▷ Abstract classes146.09%
▷ Concrete classes21693.91%
▷ Final classes31.39%
Methods2,710
▷ Static methods65624.21%
▷ Public methods2,30485.02%
▷ Protected methods1174.32%
▷ Private methods28910.66%
Functions114
▷ Named functions11096.49%
▷ Anonymous functions43.51%
Constants818
▷ Global constants13116.01%
▷ Class constants68783.99%
▷ Public constants687100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
85 PNG files occupy 1.18MB with 0.69MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
static/img/ui_4.0/info.png1.62KB0.75KB▼ 53.76%
static/img/ui_4.0/logo.png4.94KB2.24KB▼ 54.65%
screenshot-4.png78.42KB20.68KB▼ 73.63%
static/img/f_logo_RGB-Blue_250.png9.54KB4.65KB▼ 51.25%
static/js/jquery/css/redmond/images/ui-bg_inset-hard_100_f5f8f9_1x100.png0.38KB0.16KB▼ 58.18%