Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.11MB] [CPU: ▼140.27ms] Passed 4 tests
An overview of server-side resources used by WP CSV to Database - Insert CSV file content into WordPress database
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.93 ▲0.22 | 36.02 ▲13.98 |
Dashboard /wp-admin | 3.17 ▲0.12 | 53.28 ▲3.25 |
Posts /wp-admin/edit.php | 3.22 ▲0.12 | 49.22 ▲3.23 |
Add New Post /wp-admin/post-new.php | 5.53 ▲0.10 | 93.18 ▼567.73 |
Media Library /wp-admin/upload.php | 3.11 ▲0.11 | 34.30 ▲0.16 |
WP CSV/DB /wp-admin/options-general.php?page=wp_csv_to_db_menu_page | 3.09 | 32.08 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 1 new option
New WordPress options |
---|
wp_csv_to_db |
Browser metrics Passed 4 tests
WP CSV to Database - Insert CSV file content into WordPress database: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲102 | 15.90 ▲0.61 | 10.28 ▲0.81 | 46.36 ▼1.60 |
Dashboard /wp-admin | 2,978 ▲44 | 6.08 ▼0.08 | 138.69 ▼24.70 | 108.01 ▼5.41 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▲0.02 | 64.20 ▼7.03 | 87.94 ▲6.07 |
Add New Post /wp-admin/post-new.php | 3,580 ▼120 | 14.82 ▼3.83 | 481.71 ▲0.75 | 102.75 ▼12.33 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.02 ▼0.02 | 156.56 ▼2.17 | 111.90 ▲0.37 |
WP CSV/DB /wp-admin/options-general.php?page=wp_csv_to_db_menu_page | 1,917 | 2.95 | 84.71 | 121.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 1 option
- wp_csv_to_db
Smoke tests 75% from 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 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
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-csv-to-database/main.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
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
7 plugin tags: importer, excel, csv file to wordpress database, spreadsheet, csv...
wp-csv-to-database/main.php 92% from 13 tests
The primary PHP file in "WP CSV to Database - Insert CSV file content into WordPress database" version 2.6 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-csv-to-database.php" instead of "main.php")
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
Everything looks great! No dangerous files found in this plugin901 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 111 | 95 | 549 |
PO File | 1 | 50 | 50 | 161 |
JavaScript | 1 | 42 | 47 | 142 |
CSS | 1 | 8 | 0 | 49 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 51.00 |
▷ Minimum class complexity | 51.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 6.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/success.png | 4.34KB | 1.51KB | ▼ 65.32% |
images/warning.png | 4.46KB | 1.51KB | ▼ 66.10% |
images/error.png | 4.24KB | 1.48KB | ▼ 65.18% |
images/info.png | 4.30KB | 1.51KB | ▼ 64.82% |