Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼291.04ms] Passed 4 tests
Server-side resources used by Advanced CSV Importer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.15 | 56.46 ▲2.48 |
Dashboard /wp-admin | 3.50 ▲0.09 | 35.48 ▲0.75 |
Posts /wp-admin/edit.php | 3.72 ▲0.08 | 39.16 ▲1.30 |
Add New Post /wp-admin/post-new.php | 6.99 ▼0.01 | 98.44 ▼1,168.67 |
Media Library /wp-admin/upload.php | 3.38 ▲0.08 | 27.39 ▲3.38 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 82 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Advanced CSV Importer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲41 | 15.98 ▲0.20 | 5.81 ▼1.06 | 2.55 ▼1.14 |
Dashboard /wp-admin | 2,895 ▲34 | 6.15 ▼0.02 | 119.21 ▼18.05 | 155.50 ▼13.72 |
Posts /wp-admin/edit.php | 2,694 ▲21 | 3.24 ▼0.01 | 64.44 ▲1.24 | 144.16 ▲1.79 |
Add New Post /wp-admin/post-new.php | 1,700 ▲39 | 20.64 ▲3.84 | 428.18 ▲18.24 | 158.36 ▲1.73 |
Media Library /wp-admin/upload.php | 1,701 ▲3 | 5.50 ▲0.02 | 144.97 ▲4.28 | 194.47 ▲5.98 |
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 completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 33× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/advanced-csv-importer/vendor/goodby/csv/src/Goodby/CSV/Import/Tests/Standard/Unit/Observer/SqlObserverTest.php:13
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/advanced-csv-importer/vendor/goodby/csv/src/Goodby/CSV/Export/Tests/Protocol/ExporterInterfaceTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/advanced-csv-importer/vendor/goodby/csv/src/Goodby/CSV/Import/Tests/Standard/Unit/InterpreterTest.php:13
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/advanced-csv-importer/vendor/goodby/csv/src/Goodby/CSV/Import/Tests/Standard/Join/LexerTest.php:12
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/advanced-csv-importer/vendor/goodby/csv/src/Goodby/CSV/Export/Tests/Standard/Unit/ExporterConfigTest.php:7
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/advanced-csv-importer/vendor/goodby/csv/example/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/advanced-csv-importer/vendor/goodby/csv/example/tsv-sample.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/advanced-csv-importer/vendor/goodby/csv/src/Goodby/CSV/Import/Tests/Standard/Unit/LexerConfigTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/advanced-csv-importer/vendor/goodby/csv/src/Goodby/CSV/Import/Tests/Standard/Join/Observer/PdoObserverTest.php:16
- > PHP Fatal error
Uncaught Error: Class 'WP_Importer' not found in wp-content/plugins/advanced-csv-importer/lib/ACSV/Importer.php:7
- > PHP Warning
require_once(vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/advanced-csv-importer/vendor/goodby/csv/phpunit-bootstrap.php on line 3
- > PHP Fatal error
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 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: import, wp-cli, csv
advanced-csv-importer/advanced-csv-importer.php 92% from 13 tests
The main file in "Advanced CSV Importer" v. 0.1.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin3,459 lines of code in 65 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 57 | 771 | 1,018 | 2,900 |
Markdown | 2 | 133 | 0 | 320 |
JSON | 3 | 0 | 0 | 160 |
XML | 1 | 3 | 4 | 43 |
Bourne Shell | 1 | 11 | 1 | 24 |
YAML | 1 | 1 | 0 | 12 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 6.59 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 28 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 43 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 43 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 230 | |
▷ Static methods | 40 | 17.39% |
▷ Public methods | 204 | 88.70% |
▷ Protected methods | 3 | 1.30% |
▷ Private methods | 23 | 10.00% |
Functions | 19 | |
▷ Named functions | 2 | 10.53% |
▷ Anonymous functions | 17 | 89.47% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.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