89% importe-csv

Code Review | Importe CSV

WordPress plugin Importe CSV scored 89% from 54 tests.

About plugin

  • Plugin page: importe-csv
  • Plugin version: 0.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7
  • WordPress version: 6.3.1
  • First release: Mar 28, 2018
  • Latest release: Mar 28, 2018
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: mortuzahossain1997 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 844 total downloads

Benchmarks

Plugin footprint 83% from 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.04MB] [CPU: ▼3.81ms] Passed 4 tests

This is a short check of server-side resources used by Importe CSV
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0435.55 ▼4.71
Dashboard /wp-admin3.35 ▲0.0457.82 ▲9.10
Posts /wp-admin/edit.php3.40 ▲0.0444.31 ▼1.31
Add New Post /wp-admin/post-new.php5.93 ▲0.0486.05 ▼6.22
Media Library /wp-admin/upload.php3.27 ▲0.0434.35 ▼2.98

Server storage [IO: ▲0.02MB] [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: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Importe CSV
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▼0.111.55 ▼0.2738.24 ▼9.34
Dashboard /wp-admin2,203 ▲185.86 ▲0.00110.18 ▲6.4141.78 ▼1.89
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0235.63 ▼0.0130.03 ▼9.99
Add New Post /wp-admin/post-new.php1,547 ▲918.34 ▼5.17640.80 ▼35.8270.40 ▲12.47
Media Library /wp-admin/upload.php1,388 ▼34.24 ▲0.0396.01 ▼8.1440.74 ▼1.00

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Contributors: The plugin contributors field is missing
The official readme.txt might help

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

Analyzing the main PHP file in "Importe CSV" version 0.0.1
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("importe-csv.php" instead of "rs-csv-importer.php")

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
No dangerous file extensions were detected639 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP410915633
JavaScript1006

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity43.67
▷ Minimum class complexity11.00
▷ Maximum class complexity64.00
Average method complexity4.88
▷ Minimum method complexity1.00
▷ Maximum method complexity49.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods33
▷ Static methods26.06%
▷ Public methods2781.82%
▷ Protected methods618.18%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin