90% really-simple-csv-importer

Code Review | Really Simple CSV Importer

WordPress plugin Really Simple CSV Importer scored 90% from 54 tests.

About plugin

  • Plugin page: really-simple-csv...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.3
  • WordPress version: 6.3.1
  • First release: Sep 22, 2013
  • Latest release: Aug 4, 2015
  • Number of updates: 73
  • Update frequency: every 9.5 days
  • Top authors: hissy (100%)

Code review

54 tests

User reviews

107 reviews

Install metrics

50,000+ active / 270,407 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.45ms] Passed 4 tests

Analyzing server-side resources used by Really Simple CSV Importer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.79 ▲1.33
Dashboard /wp-admin3.31 ▲0.0045.35 ▲0.28
Posts /wp-admin/edit.php3.36 ▲0.0047.39 ▼6.24
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.09 ▼9.15
Media Library /wp-admin/upload.php3.23 ▲0.0038.68 ▲3.59

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Really Simple CSV Importer
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.68 ▼0.761.91 ▲0.1743.22 ▲0.69
Dashboard /wp-admin2,209 ▲215.87 ▼0.1794.60 ▼7.0341.16 ▼2.15
Posts /wp-admin/edit.php2,086 ▼32.01 ▼0.1139.16 ▼2.8533.64 ▼1.03
Add New Post /wp-admin/post-new.php1,542 ▲2318.44 ▼5.00587.44 ▼7.0255.32 ▲9.45
Media Library /wp-admin/upload.php1,388 ▼34.31 ▲0.1496.36 ▼1.5140.15 ▼1.83

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: csv, acf, cfs, importer, scf

really-simple-csv-importer/rs-csv-importer.php 92% from 13 tests

The main PHP file in "Really Simple CSV Importer" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("really-simple-csv-importer.php" instead of "rs-csv-importer.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,104 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP6177294936
PO File24860168

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity41.20
▷ Minimum class complexity11.00
▷ Maximum class complexity71.00
Average method complexity4.79
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods53
▷ Static methods23.77%
▷ Public methods4686.79%
▷ Protected methods611.32%
▷ Private methods11.89%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected