78% easy-csv-importer

Code Review | Easy CSV Importer BETA

WordPress plugin Easy CSV Importer BETA scored78%from 54 tests.

About plugin

  • Plugin page: easy-csv-importer
  • Plugin version: 7.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-3.6.0
  • WordPress version: 6.3.1
  • First release: Apr 11, 2010
  • Latest release: Jan 20, 2017
  • Number of updates: 32
  • Update frequency: every 78.3 days
  • Top authors: WebTechGlobal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /8,949 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲1.38MB] [CPU: ▲7.13ms] Passed 4 tests

An overview of server-side resources used by Easy CSV Importer BETA
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.86 ▲1.4058.21 ▲14.87
Dashboard /wp-admin4.72 ▲1.3860.73 ▼2.65
Posts /wp-admin/edit.php4.77 ▲1.4254.07 ▲10.41
Add New Post /wp-admin/post-new.php7.26 ▲1.37101.91 ▲5.89
Media Library /wp-admin/upload.php4.59 ▲1.3651.59 ▲20.48
Flag Item /wp-admin/post-new.php?post_type=easycsvimporterflags4.7858.51
All Content Templates /wp-admin/edit.php?post_type=wtgcsvcontent4.6948.09
All Flags /wp-admin/edit.php?post_type=easycsvimporterflags4.6944.17
Create /wp-admin/post-new.php?post_type=wtgcsvcontent4.7761.61

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 188 new files
Database: no new tables, 9 new options
New WordPress options
ecsvi_adminset
ecsvi_tabmenu
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
ecsvi_file_profiles
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy CSV Importer BETA
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,870 ▲12413.34 ▼1.041.96 ▼0.0356.91 ▲12.52
Dashboard /wp-admin2,276 ▲855.83 ▲0.98102.14 ▼1.4539.43 ▲1.08
Posts /wp-admin/edit.php2,159 ▲731.99 ▲0.0034.81 ▼1.3834.89 ▲0.97
Add New Post /wp-admin/post-new.php1,573 ▲5917.60 ▲0.08614.75 ▼82.5048.02 ▼10.10
Media Library /wp-admin/upload.php1,461 ▲734.29 ▲0.0696.47 ▼6.7741.50 ▼6.31
Flag Item /wp-admin/post-new.php?post_type=easycsvimporterflags2,8237.83183.5872.29
All Content Templates /wp-admin/edit.php?post_type=wtgcsvcontent1,1021.9932.0529.64
All Flags /wp-admin/edit.php?post_type=easycsvimporterflags1,1201.9929.9532.69
Create /wp-admin/post-new.php?post_type=wtgcsvcontent2,3077.60161.1056.82

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 9 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • ecsvi_tabmenu
    • ecsvi_file_profiles
    • widget_recent-posts
    • ecsvi_adminset
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please fix the following
  • 9× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/easy-csv-importer/wtg-core/wp/css/index.php
    • > /wp-content/plugins/easy-csv-importer/index.php
    • > /wp-content/plugins/easy-csv-importer/pages/index.php
    • > /wp-content/plugins/easy-csv-importer/include/variables/index.php
    • > /wp-content/plugins/easy-csv-importer/pages/pagemain/index.php
    • > /wp-content/plugins/easy-csv-importer/pages/postprojects/ecsvi_data.php
    • > /wp-content/plugins/easy-csv-importer/wtg-core/wp/script/phpajax/wtgcsv_ajax_username_availablecheck.php
    • > /wp-content/plugins/easy-csv-importer/pages/pagemain/ecsvi_about.php
    • > /wp-content/plugins/easy-csv-importer/include/index.php
  • 55× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ecsvi_WP_SETTINGS_get_version() in wp-content/plugins/easy-csv-importer/pages/pagemain/ecsvi_main.php:26
    • > PHP Warning
      count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/easy-csv-importer/pages/postprojects/ecsvi_data.php on line 238
    • > PHP Warning
      Use of undefined constant WTG_ECI_NAME - assumed 'WTG_ECI_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/easy-csv-importer/pages/pagemain/ecsvi_main.php on line 6
    • > PHP Notice
      Undefined variable: side in wp-content/plugins/easy-csv-importer/wtg-core/wp/css/wtgcore_css_parent.php on line 61
    • > PHP Warning
      Use of undefined constant WTG_ECI_DIR - assumed 'WTG_ECI_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/easy-csv-importer/pages/ecsvi_variables_tabmenu_array.php on line 9
    • > PHP Notice
      Undefined variable: ecsvi_is_free in wp-content/plugins/easy-csv-importer/pages/pagemain/ecsvi_install.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ecsvi_form_installpackage() in wp-content/plugins/easy-csv-importer/wtg-core/wp/wtgcore_wp_formsubmit.php:10
    • > PHP Notice
      Undefined variable: panel_number in wp-content/plugins/easy-csv-importer/pages/pagemain/ecsvi_datasources.php on line 2
    • > PHP Warning
      count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/easy-csv-importer/pages/postprojects/ecsvi_data.php on line 166
    • > PHP Warning
      Use of undefined constant WTG_ECI_DIR - assumed 'WTG_ECI_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/easy-csv-importer/pages/ecsvi_variables_tabmenu_array.php on line 8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Plugin Name: Please specify the plugin name on the first line ( === easy-csv-importer === )
  • Screenshots: Please add descriptions for these screenshots #2, #3, #4, #5, #6, #7 in easy-csv-importer/assets to your readme.txt
The official readme.txt might help

easy-csv-importer/easy-csv-importer.php Passed 13 tests

"Easy CSV Importer BETA" version 7.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
109 characters long description:
Easy CSV Importer is the easiest data importer for Wordpress while still providing the most advanced features

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin30,251 lines of code in 124 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript503,8283,43718,050
PHP642,9593,73911,111
CSS101382201,090

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions444
▷ Named functions444100.00%
▷ Anonymous functions00.00%
Constants21
▷ Global constants21100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
48 PNG files occupy 2.36MB with 1.71MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
wtg-core/images/success_large.png63.58KB5.66KB▼ 91.09%
wtg-core/images/warning_large.png52.42KB4.12KB▼ 92.14%
wtg-core/images/add_extra.png131.39KB14.75KB▼ 88.77%
wtg-core/images/multi-select/download.png0.29KB0.18KB▼ 37.46%
wtg-core/wp/css/jquerythemes/start/images/ui-bg_flat_55_999999_40x100.png0.18KB0.08KB▼ 51.67%