Benchmarks
Plugin footprint Passed 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.00MB] [CPU: ▼285.64ms] Passed 4 tests
Analyzing server-side resources used by CSV Custom Content Importer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 31.61 ▲8.79 |
Dashboard /wp-admin | 3.06 ▲0.01 | 44.11 ▼0.59 |
Posts /wp-admin/edit.php | 3.11 ▲0.01 | 37.42 ▼9.29 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 93.86 ▼1,125.50 |
Media Library /wp-admin/upload.php | 3.00 ▼0.00 | 31.29 ▼7.17 |
CSV Custom Content Importer /wp-admin/tools.php?page=csv-custom-content-importer | 3.01 | 27.47 |
Server storage [IO: ▲0.02MB] [DB: ▲0.67MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for CSV Custom Content Importer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,654 ▲48 | 15.91 ▲0.40 | 8.94 ▲1.07 | 48.59 ▼0.64 |
Dashboard /wp-admin | 2,935 ▲85 | 5.98 ▲0.07 | 137.97 ▲1.84 | 100.84 ▼11.54 |
Posts /wp-admin/edit.php | 2,711 ▲8 | 2.70 ▲0.01 | 63.05 ▼1.28 | 95.24 ▲2.45 |
Add New Post /wp-admin/post-new.php | 1,484 ▼167 | 18.28 ▲1.11 | 349.77 ▼13.00 | 105.57 ▼9.17 |
Media Library /wp-admin/upload.php | 1,777 ▲5 | 5.03 ▲0.03 | 148.23 ▼6.92 | 117.83 ▲1.32 |
CSV Custom Content Importer /wp-admin/tools.php?page=csv-custom-content-importer | 1,092 | 2.08 | 57.38 | 75.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.67MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/tools.php?page=csv-custom-content-importer
- > Warning in wp-content/plugins/csv-custom-content-importer/templates/upload_form.php+21
count(): Parameter must be an array or an object that implements Countable
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 4× PHP files output text when accessed directly:
- > /wp-content/plugins/csv-custom-content-importer/templates/components/footer.php
- > /wp-content/plugins/csv-custom-content-importer/templates/completed_screen.php
- > /wp-content/plugins/csv-custom-content-importer/templates/tool_maintenance_empty.php
- > /wp-content/plugins/csv-custom-content-importer/templates/components/header.php
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/csv-custom-content-importer/templates/upload_form.php:11
- > PHP Fatal error
Uncaught Error: Class 'CcciCustomTypeHandler' not found in wp-content/plugins/csv-custom-content-importer/src/CcciPodHandler.php:9
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/csv-custom-content-importer/templates/components/errors.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/csv-custom-content-importer/templates/tool_maintenance.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/csv-custom-content-importer/csv-custom-content-importer.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/csv-custom-content-importer/templates/matching_form.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: pod, csv, import, pods, custom post type
csv-custom-content-importer/csv-custom-content-importer.php Passed 13 tests
The entry point to "CSV Custom Content Importer" version 0.5 is a PHP file that has certain tags in its header comment area
38 characters long description:
Imports data from a CSV file to Pods..
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected445 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 103 | 207 | 445 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 1 | 25.00% |
▷ Concrete classes | 3 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 3 | 9.68% |
▷ Public methods | 26 | 83.87% |
▷ Protected methods | 5 | 16.13% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin