Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/xml-shipping-importer-for-woocommerce/woocommerce-xml-shipping-importer.php+29
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.84MB] [CPU: ▼185.99ms] Passed 4 tests
Analyzing server-side resources used by XML Shipping Importer for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.79 ▼0.93 | 5.53 ▼16.58 |
Dashboard /wp-admin | 1.81 ▼1.24 | 6.16 ▼37.40 |
Posts /wp-admin/edit.php | 1.81 ▼1.30 | 5.94 ▼34.16 |
Add New Post /wp-admin/post-new.php | 1.81 ▼3.62 | 6.86 ▼648.31 |
Media Library /wp-admin/upload.php | 1.81 ▼1.19 | 5.29 ▼24.10 |
XML Shipping Import /wp-admin/options-general.php?page=xml-shipping-import-setting-admin | 1.81 | 6.49 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
XML Shipping Importer for WooCommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 15.90 ▲0.29 | 8.71 ▲0.51 | 46.59 ▼0.70 |
Dashboard /wp-admin | 2,978 ▲41 | 5.93 ▼0.02 | 139.04 ▼4.89 | 111.45 ▼1.18 |
Posts /wp-admin/edit.php | 2,741 ▲5 | 2.69 ▼0.00 | 63.94 ▲0.88 | 92.41 ▼0.24 |
Add New Post /wp-admin/post-new.php | 1,679 ▲181 | 18.89 ▲0.10 | 361.63 ▼15.50 | 106.66 ▼3.98 |
Media Library /wp-admin/upload.php | 1,815 ▲8 | 5.02 ▼0.02 | 144.98 ▼12.98 | 112.02 ▼7.34 |
XML Shipping Import /wp-admin/options-general.php?page=xml-shipping-import-setting-admin | 1,118 | 2.09 | 56.17 | 90.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/xml-shipping-importer-for-woocommerce/woocommerce-xml-shipping-importer.php+29
Trying to access array offset on value of type bool
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 7 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=xml-shipping-import-setting-admin
- > Notice in wp-content/plugins/xml-shipping-importer-for-woocommerce/class-xml-shipping-importer-options.php+245
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/xml-shipping-importer-for-woocommerce/woocommerce-xml-shipping-importer.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (This screen shot description corresponds to screenshot-1.png - this screenshot depicts the setting screen where you will enter your FTP credentials), #2 (This is the second screen shot)
xml-shipping-importer-for-woocommerce/woocommerce-xml-shipping-importer.php 92% from 13 tests
The main file in "XML Shipping Importer for WooCommerce" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("xml-shipping-importer-for-woocommerce.php" instead of "woocommerce-xml-shipping-importer.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected344 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 94 | 111 | 302 |
Markdown | 1 | 12 | 0 | 29 |
XML | 1 | 0 | 0 | 13 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 18.50 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 10.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 89.05KB | 29.62KB | ▼ 66.74% |