89% ve-csv-importer

Code Review | VE CSV Importer

WordPress plugin VE CSV Importer scored 89% from 54 tests.

About plugin

  • Plugin page: ve-csv-importer
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.5
  • WordPress version: 5.8.1
  • First release: Nov 1, 2016
  • Latest release: Apr 6, 2018
  • Number of updates: 5
  • Update frequency: every 105.0 days
  • Top authors: virtualemployee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,908 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼176.56ms] Passed 4 tests

Server-side resources used by VE CSV Importer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.1742.02 ▲20.39
Dashboard /wp-admin3.11 ▲0.0642.09 ▼17.51
Posts /wp-admin/edit.php3.16 ▲0.0653.45 ▲0.07
Add New Post /wp-admin/post-new.php5.47 ▲0.0499.72 ▼685.87
Media Library /wp-admin/upload.php3.05 ▲0.0536.51 ▼2.94
Virtual CSV Importer /wp-admin/tools.php?page=virtual-csv-import3.0141.94

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 2 new options
New WordPress options
csv_importer_cat
csv_importer_import_as_draft

Browser metrics Passed 4 tests

VE CSV Importer: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲13616.20 ▲0.7012.16 ▼3.5852.25 ▼2.33
Dashboard /wp-admin2,994 ▲586.09 ▲0.15163.63 ▼8.32109.92 ▼36.59
Posts /wp-admin/edit.php2,744 ▲52.71 ▲0.0084.97 ▲20.4896.78 ▲7.69
Add New Post /wp-admin/post-new.php1,686 ▲10518.47 ▲0.31454.71 ▲38.34119.23 ▼0.75
Media Library /wp-admin/upload.php1,812 ▲55.05 ▲0.02160.45 ▼5.62122.87 ▼0.15
Virtual CSV Importer /wp-admin/tools.php?page=virtual-csv-import1,1772.0863.1382.74

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 2 options in the database
    • csv_importer_cat
    • csv_importer_import_as_draft

Smoke tests Passed 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 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
No output text or server-side errors detected on direct access of PHP files

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 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Donate link: Please fix this invalid URI: ""
The official readme.txt is a good inspiration

ve-csv-importer/ve-csv-importer.php 92% from 13 tests

This is the main PHP file of "VE CSV Importer" version 1.2, 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:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin397 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18270397

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity85.00
▷ Minimum class complexity85.00
▷ Maximum class complexity85.00
Average method complexity15.00
▷ Minimum method complexity2.00
▷ Maximum method complexity59.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected