Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.86ms] Passed 4 tests
This is a short check of server-side resources used by CSV Posts Importer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.37 ▼0.47 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.66 ▼4.75 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 50.64 ▲3.03 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 93.72 ▼12.08 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.93 ▲1.88 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for CSV Posts Importer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 14.47 ▲0.18 | 2.17 ▲0.21 | 43.36 ▲0.13 |
Dashboard /wp-admin | 2,222 ▲34 | 4.87 ▼0.03 | 112.20 ▲5.44 | 42.04 ▲0.93 |
Posts /wp-admin/edit.php | 2,102 ▲10 | 2.03 ▼0.03 | 39.47 ▲0.61 | 33.70 ▼1.86 |
Add New Post /wp-admin/post-new.php | 1,548 ▲20 | 23.14 ▲4.95 | 653.19 ▲45.13 | 51.22 ▲2.02 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.16 ▼0.17 | 95.84 ▼14.46 | 42.62 ▼4.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/csv-posts-importer/views/main.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/csv-posts-importer/views/table.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/csv-posts-importer/views/progress.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/csv-posts-importer/bwt-csv-importer.php:29
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: importer, csv, post, acf
csv-posts-importer/bwt-csv-importer.php 92% from 13 tests
"CSV Posts Importer" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("csv-posts-importer.php" instead of "bwt-csv-importer.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected832 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 109 | 190 | 548 |
JavaScript | 2 | 10 | 3 | 149 |
CSS | 1 | 22 | 0 | 135 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 107.00 |
▷ Minimum class complexity | 107.00 |
▷ Maximum class complexity | 107.00 |
Average method complexity | 5.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 58.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 | 25 | |
▷ Static methods | 25 | 100.00% |
▷ Public methods | 25 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin