84% simple-csv-importer

Code Review | Simple CSV Importer

WordPress plugin Simple CSV Importer scored84%from 54 tests.

About plugin

  • Plugin page: simple-csv-importer
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.8.2
  • WordPress version: 6.3.1
  • First release: Nov 27, 2021
  • Latest release: Nov 27, 2021
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: apsaraaruna (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /738 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼10.98ms] Passed 4 tests

This is a short check of server-side resources used by Simple CSV Importer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0539.19 ▼4.14
Dashboard /wp-admin3.35 ▲0.0050.28 ▼18.31
Posts /wp-admin/edit.php3.46 ▲0.1150.09 ▼2.61
Add New Post /wp-admin/post-new.php5.95 ▲0.0694.49 ▼18.87
Media Library /wp-admin/upload.php3.27 ▲0.0437.67 ▲2.34

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple CSV Importer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,901 ▲13013.41 ▼0.757.68 ▲5.4741.80 ▼2.92
Dashboard /wp-admin2,199 ▲195.63 ▲0.1184.94 ▼14.9239.94 ▼3.04
Posts /wp-admin/edit.php2,107 ▲72.03 ▲0.0440.44 ▲1.8135.16 ▼0.29
Add New Post /wp-admin/post-new.php1,530 ▼623.19 ▲0.24663.16 ▼8.9258.49 ▲0.56
Media Library /wp-admin/upload.php1,407 ▲74.29 ▼0.0596.73 ▼3.4741.68 ▼1.41

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/simple-csv-importer/admin/partials/simple-csv-importer-admin-display.php
    • > /wp-content/plugins/simple-csv-importer/public/partials/simple-csv-importer-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: csv, acf, custom posts, scf, importer...

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

The primary PHP file in "Simple CSV Importer" version 1.0.0 is used by WordPress to initiate all plugin functionality
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected875 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP15233772761
Markdown1330108
JavaScript24546
CSS2080

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity13.40
▷ Minimum class complexity1.00
▷ Maximum class complexity57.00
Average method complexity3.21
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods56
▷ Static methods47.14%
▷ Public methods4580.36%
▷ Protected methods610.71%
▷ Private methods58.93%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.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
PNG images were not found in this plugin