78% large-csv-import-handler

Code Review | Large CSV Import Handler

WordPress plugin Large CSV Import Handler scored78%from 54 tests.

About plugin

  • Plugin page: large-csv-import-...
  • Plugin version: 0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6
  • WordPress version: 6.3.1
  • First release: Aug 6, 2016
  • Latest release: Aug 5, 2016
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: firimar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,250 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
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Large CSV Import Handler
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0533.67 ▼7.67
Dashboard /wp-admin3.36 ▲0.0644.56 ▼4.20
Posts /wp-admin/edit.php3.41 ▲0.0647.91 ▲0.23
Add New Post /wp-admin/post-new.php5.96 ▲0.0789.27 ▲0.77
Media Library /wp-admin/upload.php3.28 ▲0.0633.17 ▲0.07
CSV Import /wp-admin/admin.php?page=large-csv-import-handler3.2537.82
Settings /wp-admin/admin.php?page=large-csv-import-handler-settings3.2532.48

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 9 new options
New WordPress options
db_upgraded
lcih_csv_delimiter
theysaidso_admin_options
widget_theysaidso_widget
lcih_csv_escape
widget_recent-comments
widget_recent-posts
lcih_csv_enclosure
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Large CSV Import Handler
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲9513.18 ▼0.995.88 ▲4.0641.64 ▼4.49
Dashboard /wp-admin2,236 ▲485.85 ▲0.8997.54 ▼17.7282.11 ▲36.91
Posts /wp-admin/edit.php2,125 ▲362.03 ▲0.0238.24 ▲4.6933.69 ▼3.50
Add New Post /wp-admin/post-new.php1,554 ▲1818.10 ▼4.89710.05 ▲79.2559.67 ▲7.70
Media Library /wp-admin/upload.php1,415 ▲274.14 ▼0.0799.70 ▼2.7067.65 ▲24.73
CSV Import /wp-admin/admin.php?page=large-csv-import-handler8382.0725.6628.76
Settings /wp-admin/admin.php?page=large-csv-import-handler-settings8481.7029.2328.47

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 9 options
    • lcih_csv_enclosure
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • lcih_csv_escape
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • lcih_csv_delimiter

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means 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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/large-csv-import-handler/large-csv-import-handler.php:15

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=large-csv-import-handler
    • > Network (severe)
    https://www.paypalobjects.com/ru_RU/i/scr/pixel.gif - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === large-csv-import-handler === )
You can take inspiration from this readme.txt

large-csv-import-handler/large-csv-import-handler.php 92% from 13 tests

"Large CSV Import Handler" version 0.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Domain Path: The domain path is invalid: folder "/lang" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected279 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP13811217
CSS14031
JavaScript12031

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.07
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods214.29%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/icon.png15.31KB1.00KB▼ 93.48%