94% rs-csv-importer-media-addon

Code Review | RS CSV Importer Media Add-On

WordPress plugin RS CSV Importer Media Add-On scored 94% from 54 tests.

About plugin

  • Plugin page: rs-csv-importer-m...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.3
  • WordPress version: 5.8.1
  • First release: Apr 13, 2015
  • Latest release: Sep 30, 2015
  • Number of updates: 9
  • Update frequency: every 19.2 days
  • Top authors: Toro_Unit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

4,000+ active / 6,109 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

An overview of server-side resources used by RS CSV Importer Media Add-On
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1233.29 ▲13.91
Dashboard /wp-admin3.06 ▲0.0145.74 ▲0.60
Posts /wp-admin/edit.php3.11 ▲0.0144.70 ▼4.01
Add New Post /wp-admin/post-new.php5.42 ▼0.0189.17 ▼573.13
Media Library /wp-admin/upload.php3.00 ▲0.0033.53 ▲0.80

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for RS CSV Importer Media Add-On
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.79 ▼0.028.41 ▼0.9250.18 ▼1.64
Dashboard /wp-admin2,967 ▲305.86 ▼0.11163.20 ▲12.24110.87 ▼1.76
Posts /wp-admin/edit.php2,739 ▼02.69 ▼0.0166.18 ▼3.4595.53 ▲1.51
Add New Post /wp-admin/post-new.php1,672 ▼1118.82 ▲0.25375.04 ▼6.79115.92 ▲2.53
Media Library /wp-admin/upload.php1,810 ▲35.04 ▲0.04152.63 ▲5.96122.90 ▼0.04

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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
The following issues need your attention
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/rs-csv-importer-media-addon/rs-csv-importer-media-addon.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'RS_CSV_Importer' not found in wp-content/plugins/rs-csv-importer-media-addon/class-rs_csv_importer_media_plus.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: importer, rscsv, csv

rs-csv-importer-media-addon/rs-csv-importer-media-addon.php 92% from 13 tests

The main file in "RS CSV Importer Media Add-On" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected85 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3408985

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.27
Average class complexity5.50
▷ Minimum class complexity2.00
▷ Maximum class complexity9.00
Average method complexity1.82
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods19.09%
▷ Public methods1090.91%
▷ Protected methods00.00%
▷ Private methods19.09%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin