Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-includes/class-wp-hook.php+307
Non-static method SmackCSVImportHelper::sm_activate_function() should not be called statically
Server metrics [RAM: ▲0.08MB] [CPU: ▼280.90ms] Passed 4 tests
An overview of server-side resources used by CSV Import
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.17 | 124.58 ▲64.92 |
Dashboard /wp-admin | 3.52 ▲0.11 | 38.87 ▲1.03 |
Posts /wp-admin/edit.php | 3.75 ▲0.11 | 47.61 ▲2.44 |
Add New Post /wp-admin/post-new.php | 6.99 ▲0.02 | 178.57 ▼1,121.85 |
Media Library /wp-admin/upload.php | 3.40 ▲0.10 | 30.65 ▼5.23 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
CSV Import: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,778 ▲24 | 15.91 ▲0.22 | 5.72 ▼0.05 | 2.30 ▼1.04 |
Dashboard /wp-admin | 2,906 ▲48 | 6.00 ▼0.21 | 122.65 ▼17.77 | 202.38 ▲35.98 |
Posts /wp-admin/edit.php | 2,703 ▲15 | 3.10 ▼0.14 | 67.31 ▲3.32 | 142.18 ▼8.61 |
Add New Post /wp-admin/post-new.php | 1,671 ▼110 | 16.51 ▼0.40 | 413.73 ▼31.54 | 160.04 ▼25.92 |
Media Library /wp-admin/upload.php | 1,714 ▲13 | 5.55 ▲0.02 | 126.34 ▼13.86 | 205.03 ▼42.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
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 | 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 | 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
Almost there! Just fix the following items
- 4× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/csv-import/SmackCSVParser.php
- > /wp-content/plugins/csv-import/csv-import.php
- > /wp-content/plugins/csv-import/sm_ajax_class.php
- > /wp-content/plugins/csv-import/sm_main_control.php
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 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (CSV Upload section.), #2 (Sample WordPress Fields and the CSV Headers list), #3 (Choose the Post type from dropdown.), #4 (Log for the import data.)
- Tags: You are using too many tags: 12 tag instead of maximum 10
csv-import/csv-import.php 92% from 13 tests
The entry point to "CSV Import" version 2.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
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
Good job! No executable or dangerous file extensions detected671 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 102 | 122 | 603 |
JavaScript | 2 | 7 | 7 | 67 |
CSS | 1 | 0 | 5 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 25.33 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 3.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 32 | 96.97% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.03% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.21MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 49.92KB | 13.87KB | ▼ 72.21% |
screenshot-3.png | 29.98KB | 8.03KB | ▼ 73.22% |
screenshot-2.png | 68.79KB | 19.27KB | ▼ 71.98% |
images/csv-import.png | 1.90KB | 1.47KB | ▼ 22.83% |
screenshot-4.png | 62.30KB | 10.26KB | ▼ 83.53% |