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 gracefully, with no errors
Server metrics [RAM: ▲0.38MB] [CPU: ▼1.00ms] Passed 4 tests
A check of server-side resources used by Migrate Xcart to WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 41.20 ▼0.40 |
Dashboard /wp-admin | 3.75 ▲0.45 | 61.05 ▲4.22 |
Posts /wp-admin/edit.php | 3.86 ▲0.51 | 56.56 ▲3.57 |
Add New Post /wp-admin/post-new.php | 6.35 ▲0.46 | 90.99 ▼11.39 |
Media Library /wp-admin/upload.php | 3.67 ▲0.44 | 41.75 ▲7.95 |
X-Cart Migration /wp-admin/admin.php?page=xcart_migration | 3.64 | 39.84 |
Settings /wp-admin/admin.php?page=wxm_db_conn | 3.61 | 36.23 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: 5 new tables, 6 new options
New tables |
---|
wp_xcart_lastSynced |
wp_xcart_database |
wp_xcart_cronjob |
wp_xcart_operation_weight |
wp_xcart_relation |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Migrate Xcart to WooCommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,923 ▲177 | 13.97 ▼0.41 | 6.94 ▲4.75 | 50.63 ▲6.49 |
Dashboard /wp-admin | 2,239 ▲51 | 4.83 ▼0.01 | 102.62 ▼19.46 | 41.99 ▼0.32 |
Posts /wp-admin/edit.php | 2,122 ▲33 | 2.03 ▼0.01 | 38.62 ▼2.43 | 35.40 ▲0.41 |
Add New Post /wp-admin/post-new.php | 1,548 ▲20 | 22.94 ▲4.55 | 673.09 ▲31.26 | 65.18 ▲10.92 |
Media Library /wp-admin/upload.php | 1,421 ▲33 | 4.24 ▲0.01 | 104.02 ▲1.06 | 45.39 ▼2.82 |
X-Cart Migration /wp-admin/admin.php?page=xcart_migration | 852 | 1.70 | 25.29 | 26.75 |
Settings /wp-admin/admin.php?page=wxm_db_conn | 771 | 1.55 | 7.27 | 19.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 5 tables in the database
- wp_xcart_lastSynced
- wp_xcart_operation_weight
- wp_xcart_database
- wp_xcart_cronjob
- wp_xcart_relation
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=wxm_db_conn
- > Error in wp-includes/plugin.php+847
Uncaught ArgumentCountError: Too few arguments to function plugin_dir_url(), 0 passed in wp-content/plugins/woo-xcart-migration/woo-xcart-migration.php on line 599 and exactly 1 expected in wp-includes/plugin.php:847
Stack trace:
#0 wp-content/plugins/woo-xcart-migration/woo-xcart-migration.php(599): plugin_dir_url()
#1 wp-includes/class-wp-hook.php(310): WXM_Admin->wxm_db_connect()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 {main}
thrown
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
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 on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Requires at least: Version format is invalid
woo-xcart-migration/woo-xcart-migration.php Passed 13 tests
"Migrate Xcart to WooCommerce" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
36 characters long description:
X-Cart to WooCommerce Migration Tool
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
There were no executable files found in this plugin2,989 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 359 | 900 | 2,946 |
JavaScript | 1 | 2 | 1 | 22 |
CSS | 1 | 4 | 1 | 21 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 204.50 |
▷ Minimum class complexity | 99.00 |
▷ Maximum class complexity | 310.00 |
Average method complexity | 7.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 54.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 | 67 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 56 | 83.58% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 16.42% |
Functions | 14 | |
▷ Named functions | 8 | 57.14% |
▷ Anonymous functions | 6 | 42.86% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.20MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/screenshot/screenshot-1.png | 56.18KB | 24.18KB | ▼ 56.96% |
inc/question-mark.png | 0.92KB | 0.65KB | ▼ 29.06% |
inc/question-mark-16x16.png | 0.58KB | 0.38KB | ▼ 34.89% |
inc/screenshot/screenshop-2.png | 65.72KB | 28.45KB | ▼ 56.71% |
inc/shopping-cart.png | 1.19KB | 0.94KB | ▼ 21.35% |