72% csv-me

Code Review | CSV Me

WordPress plugin CSV Me scored72%from 54 tests.

About plugin

  • Plugin page: csv-me
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8.1
  • WordPress version: 6.3.1
  • First release: Dec 3, 2013
  • Latest release: Jan 25, 2014
  • Number of updates: 9
  • Update frequency: every 6.0 days
  • Top authors: scottyla (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,658 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
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼10.83ms] Passed 4 tests

A check of server-side resources used by CSV Me
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.19 ▼5.30
Dashboard /wp-admin3.32 ▼0.0342.33 ▼26.71
Posts /wp-admin/edit.php3.39 ▲0.0346.68 ▲1.89
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.12 ▼13.20
Media Library /wp-admin/upload.php3.26 ▲0.0336.00 ▲3.06
CSV Me File Manager /wp-admin/tools.php?page=csv-me/csv_me_index.php3.2330.18

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

CSV Me: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,940 ▲17914.35 ▼0.181.63 ▼0.0630.52 ▼17.60
Dashboard /wp-admin2,346 ▲1695.59 ▲0.0187.95 ▼3.4541.15 ▼0.40
Posts /wp-admin/edit.php2,101 ▲12.02 ▲0.0838.00 ▲3.8135.39 ▼2.44
Add New Post /wp-admin/post-new.php1,531 ▲522.71 ▼0.97621.62 ▼29.9952.83 ▲1.89
Media Library /wp-admin/upload.php1,404 ▲74.21 ▼0.0596.55 ▼5.5744.94 ▲3.55
CSV Me File Manager /wp-admin/tools.php?page=csv-me/csv_me_index.php8722.0024.3629.43

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=csv-me/csv_me_index.php
    • > Notice in wp-content/plugins/csv-me/csv-functions.php+6
    fgetcsv(): read of 8192 bytes failed with errno=21 Is a directory
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=csv-me/csv_me_index.php
    • > Warning in wp-content/plugins/csv-me/views/options-page-wrapper.php+43
    count(): Parameter must be an array or an object that implements Countable
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=csv-me/csv_me_index.php
    • > Notice in wp-content/plugins/csv-me/views/options-page-wrapper.php+44
    Trying to access array offset on value of type bool

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/csv-me/views/csv-shortcode.php
    • > /wp-content/plugins/csv-me/views/add-csv-form.php
  • 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: row_end in wp-content/plugins/csv-me/views/csv-shortcode.php on line 17
    • > PHP Notice
      Undefined variable: csv_url in wp-content/plugins/csv-me/views/add-csv-form.php on line 16
    • > PHP Warning
      count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/csv-me/views/csv-shortcode.php on line 21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/csv-me/views/options-page-wrapper.php:16
    • > PHP Notice
      Undefined variable: col_nums in wp-content/plugins/csv-me/views/csv-shortcode.php on line 21
    • > PHP Notice
      Undefined variable: row_start in wp-content/plugins/csv-me/views/csv-shortcode.php on line 17
    • > PHP Notice
      Undefined variable: row_end in wp-content/plugins/csv-me/views/csv-shortcode.php on line 17
    • > PHP Notice
      Undefined variable: csv_url in wp-content/plugins/csv-me/views/add-csv-form.php on line 4
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/csv-me/views/csv-shortcode.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/csv-me/csv_me_index.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: shortcode, upload, csv

csv-me/csv_me_index.php 92% from 13 tests

The main file in "CSV Me" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("csv-me.php" instead of "csv_me_index.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 detected334 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP610756334

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected