Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▲0.75ms] Passed 4 tests
Server-side resources used by CSV Importer Improved
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 43.33 ▼1.78 |
Dashboard /wp-admin | 3.31 ▲0.01 | 51.18 ▼1.45 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.48 ▲5.67 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 94.52 ▲4.43 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.27 ▲1.81 |
CSV Importer Improved /wp-admin/tools.php?page=csv-importer-improved/csv_importer.php | 3.21 | 35.21 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
csv_importer_import_as_draft |
csv_importer_cat |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
CSV Importer Improved: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.25 ▼1.30 | 1.55 ▼0.41 | 38.31 ▼4.37 |
Dashboard /wp-admin | 2,207 ▲55 | 5.86 ▲0.15 | 110.05 ▲10.52 | 42.20 ▼0.01 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.03 ▼0.01 | 40.26 ▲2.60 | 32.94 ▼0.98 |
Add New Post /wp-admin/post-new.php | 1,536 ▲16 | 23.16 ▼0.01 | 690.62 ▲22.09 | 54.45 ▲1.23 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.21 ▼0.04 | 96.50 ▼0.52 | 44.22 ▲1.06 |
CSV Importer Improved /wp-admin/tools.php?page=csv-importer-improved/csv_importer.php | 827 | 2.03 | 23.73 | 31.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 8 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- csv_importer_import_as_draft
- db_upgraded
- csv_importer_cat
- widget_recent-posts
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 everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/csv-importer-improved/examples/functions.inc.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/csv-importer-improved/csv_importer.php:823
- > PHP Warning
require_once(PHPUnit/Framework.php): failed to open stream: No such file or directory in wp-content/plugins/csv-importer-improved/File_CSV_DataSource/tests/File_CSV_DataSourceTest.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'PHPUnit/Framework.php' (include_path='.:/usr/share/php') in wp-content/plugins/csv-importer-improved/File_CSV_DataSource/tests/File_CSV_DataSourceTest.php on line 2
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: Screenshot #1 (Plugin interface) image required
csv-importer-improved/csv_importer.php 92% from 13 tests
"CSV Importer Improved" version 0.6.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("csv-importer-improved.php" instead of "csv_importer.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin2,354 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 321 | 1,939 | 2,354 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 62.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 108.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.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 | 120 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 112 | 93.33% |
▷ Protected methods | 8 | 6.67% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 23.18KB | 10.93KB | ▼ 52.82% |