Benchmarks
Plugin footprint 65% 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.85MB] [CPU: ▲2.51ms] Passed 4 tests
Server-side resources used by Import WP – Export and Import CSV and XML files to WordPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.33 ▲0.86 | 43.92 ▲4.97 |
Dashboard /wp-admin | 4.16 ▲0.85 | 55.27 ▲1.47 |
Posts /wp-admin/edit.php | 4.21 ▲0.85 | 53.13 ▲4.65 |
Add New Post /wp-admin/post-new.php | 6.81 ▲0.92 | 98.37 ▼1.07 |
Media Library /wp-admin/upload.php | 4.08 ▲0.85 | 40.87 ▲6.01 |
Import WP /wp-admin/tools.php?page=importwp | 5.05 | 62.40 |
Server storage [IO: ▲1.11MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
It is recommended to fix the following issues
- The plugin illegally modified 1 file (1.05KB) outside of "wp-content/plugins/jc-importer/" and "wp-content/uploads/"
- (new file) wp-content/mu-plugins/importwp-compatibility.php
Filesystem: 123 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_iwp_sessions |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
iwp_muplugin_version |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Import WP – Export and Import CSV and XML files to WordPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲57 | 14.34 ▼0.06 | 1.82 ▼0.03 | 42.44 ▼2.60 |
Dashboard /wp-admin | 2,196 ▲19 | 5.53 ▼0.11 | 87.91 ▼10.31 | 40.57 ▼4.44 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.04 | 38.85 ▼1.92 | 34.73 ▲0.15 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.34 ▼0.22 | 583.90 ▼49.14 | 53.05 ▼4.42 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.23 ▲0.02 | 96.24 ▼0.11 | 40.82 ▼0.01 |
Import WP /wp-admin/tools.php?page=importwp | 1,034 | 3.12 | 104.77 | 34.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_iwp_sessions
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% 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 0% 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 fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/jc-importer/views/admin.php
- 53× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ImportWP\\Common\\Importer\\Template\\PostTemplate' not found in wp-content/plugins/jc-importer/class/Common/Importer/Template/PageTemplate.php:9
- > PHP Fatal error
Uncaught Error: Class 'ImportWP\\Common\\Importer\\Parser\\AbstractParser' not found in wp-content/plugins/jc-importer/class/Common/Importer/Parser/CSVParser.php:11
- > PHP Fatal error
Uncaught Error: Class 'ImportWP\\Common\\Importer\\File\\AbstractIndexedFile' not found in wp-content/plugins/jc-importer/class/Common/Importer/File/CSVFile.php:8
- > PHP Fatal error
Uncaught Error: Class 'ImportWP\\Common\\Addon\\AddonBaseData' not found in wp-content/plugins/jc-importer/class/Common/Addon/AddonBaseContainer.php:5
- > PHP Fatal error
Trait 'ImportWP\\Common\\Util\\Singleton' not found in wp-content/plugins/jc-importer/class/Common/Properties/Properties.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'ImportWP\\Common\\Runner\\RunnerState' not found in wp-content/plugins/jc-importer/class/Common/Exporter/State/ExporterState.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/jc-importer/views/tools-card.php:2
- > PHP Fatal error
Uncaught Error: Class 'ImportWP\\Common\\Importer\\Template\\Template' not found in wp-content/plugins/jc-importer/class/Common/Importer/Template/UserTemplate.php:10
- > PHP Fatal error
Uncaught Error: Class 'ImportWP\\Common\\Exporter\\Mapper\\AbstractMapper' not found in wp-content/plugins/jc-importer/class/Common/Exporter/Mapper/PostMapper.php:8
- > PHP Fatal error
Uncaught Error: Class 'ImportWP\\Common\\Importer\\Template\\Template' not found in wp-content/plugins/jc-importer/class/Common/Importer/Template/AttachmentTemplate.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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 an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
jc-importer/jc-importer.php 92% from 13 tests
This is the main PHP file of "Import WP – Export and Import CSV and XML files to WordPress" version 2.11.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 150 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected15,514 lines of code in 115 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 113 | 4,091 | 2,691 | 15,499 |
CSS | 1 | 1 | 0 | 14 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please tend to the following items
- Method cyclomatic complexity should be reduced to less than 100 (currently 103)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 22.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 194.00 |
Average method complexity | 3.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 103.00 |
Code structure | ||
---|---|---|
Namespaces | 30 | |
Interfaces | 13 | |
Traits | 1 | |
Classes | 90 | |
▷ Abstract classes | 7 | 7.78% |
▷ Concrete classes | 83 | 92.22% |
▷ Final classes | 0 | 0.00% |
Methods | 932 | |
▷ Static methods | 46 | 4.94% |
▷ Public methods | 894 | 95.92% |
▷ Protected methods | 15 | 1.61% |
▷ Private methods | 23 | 2.47% |
Functions | 63 | |
▷ Named functions | 12 | 19.05% |
▷ Anonymous functions | 51 | 80.95% |
Constants | 7 | |
▷ Global constants | 7 | 100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dist/images/iwp-premium-placeholder.517e8c22.png | 13.57KB | 7.08KB | ▼ 47.83% |