Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin cannot be installed
- > Warning in wp-content/plugins/exchange-addon-product-importer/includes/functions.php+282
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.48ms] Passed 4 tests
Analyzing server-side resources used by iThemes Exchange - Product Importer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.45 ▲0.75 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.06 ▼5.01 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.22 ▼4.17 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 96.09 ▲3.15 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.65 ▲2.52 |
Server storage [IO: ▲1.39MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by iThemes Exchange - Product Importer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 14.74 ▲0.37 | 1.96 ▲0.21 | 44.22 ▲3.13 |
Dashboard /wp-admin | 2,206 ▲18 | 5.84 ▼0.01 | 99.06 ▼0.68 | 37.69 ▼0.87 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▼0.02 | 34.31 ▼5.40 | 38.97 ▲4.54 |
Add New Post /wp-admin/post-new.php | 1,535 ▲1 | 17.84 ▼5.37 | 628.18 ▼95.37 | 52.18 ▼8.45 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.20 ▼0.13 | 95.24 ▼4.70 | 40.12 ▼4.93 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 21× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
include_once(): Failed opening 'ITE_PI_PATHincludes/categories.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/exchange-addon-product-importer/includes/functions.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/exchange-addon-product-importer/includes/common-dashboard_widgets.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function it_exchange_product_importer_finish_message() in wp-content/plugins/exchange-addon-product-importer/templates/admin/import_finish.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/exchange-addon-product-importer/templates/admin/tabs-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/exchange-addon-product-importer/includes/common.php:14
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/exchange-addon-product-importer/includes/functions.php on line 282
- > PHP Warning
include_once(ITE_PI_PATHincludes/tags.php): failed to open stream: No such file or directory in wp-content/plugins/exchange-addon-product-importer/includes/functions.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_query_arg() in wp-content/plugins/exchange-addon-product-importer/templates/admin/tabs-overview.php:3
- > PHP Warning
include_once(ITE_PI_PATHincludes/categories.php): failed to open stream: No such file or directory in wp-content/plugins/exchange-addon-product-importer/includes/functions.php on line 3
- > PHP Warning
Use of undefined constant ITE_PI_PATH - assumed 'ITE_PI_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/exchange-addon-product-importer/includes/functions.php on line 3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Product Importer is an iThemes Exchange compatible Addon), #2 (From the Import screen you can upload CSV files for import), #3 (Link CSV columns to Exchange Product fields and review the Import Options), #4 (Watch as new Products are populated within your iThemes Exchange store), #5 (A final review report includes skipped Products with reasons and a detailed import log for re-import)
exchange-addon-product-importer/product-importer.php 92% from 13 tests
The main PHP script in "iThemes Exchange - Product Importer" version 1.2 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("exchange-addon-product-importer.php" instead of "product-importer.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin9,968 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 1,813 | 1,332 | 7,041 |
PHP | 18 | 492 | 268 | 2,706 |
CSS | 1 | 16 | 32 | 221 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 36.00 |
▷ Minimum class complexity | 36.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 4.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.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 | 9 | |
▷ Static methods | 9 | 100.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 65 | |
▷ Named functions | 65 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/product-importer50px.png | 2.77KB | 1.84KB | ▼ 33.37% |