Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.76MB] [CPU: ▼2.79ms] Passed 4 tests
This is a short check of server-side resources used by FG OpenCart to WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.23 ▲0.76 | 44.70 ▲1.85 |
Dashboard /wp-admin | 4.07 ▲0.76 | 48.34 ▼3.73 |
Posts /wp-admin/edit.php | 4.12 ▲0.75 | 49.91 ▲1.69 |
Add New Post /wp-admin/post-new.php | 6.65 ▲0.75 | 92.21 ▼10.98 |
Media Library /wp-admin/upload.php | 3.99 ▲0.75 | 38.51 ▲4.81 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by FG OpenCart to WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲3 | 14.21 ▼0.11 | 1.82 ▼0.30 | 44.95 ▼0.45 |
Dashboard /wp-admin | 2,195 ▲21 | 5.62 ▼0.03 | 92.86 ▼7.66 | 39.43 ▼5.32 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 1.94 ▼0.01 | 42.43 ▲5.27 | 38.39 ▲1.15 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.42 ▲0.15 | 602.93 ▼80.45 | 49.40 ▼14.73 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.19 ▲0.01 | 99.48 ▼5.54 | 42.44 ▼3.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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 fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/fg-opencart-to-woocommerce/admin/partials/progress-bar.php
- 22× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: data in wp-content/plugins/fg-opencart-to-woocommerce/admin/partials/admin-display.php on line 18
- > PHP Fatal error
Uncaught Error: Class 'WP_Importer' not found in wp-content/plugins/fg-opencart-to-woocommerce/admin/class-fg-opencart-to-woocommerce-admin.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/fg-opencart-to-woocommerce/admin/partials/tabs.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/fg-opencart-to-woocommerce/admin/partials/behavior.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/fg-opencart-to-woocommerce/admin/partials/database-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/fg-opencart-to-woocommerce/admin/partials/database-info.php:2
- > PHP Fatal error
Uncaught Error: Class 'FG_OpenCart_to_WooCommerce_Download_FTP' not found in wp-content/plugins/fg-opencart-to-woocommerce/admin/class-fg-opencart-to-woocommerce-ftp.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/fg-opencart-to-woocommerce/admin/partials/extra-features.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/fg-opencart-to-woocommerce/admin/partials/rating.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/fg-opencart-to-woocommerce/admin/partials/settings.php:2
- > PHP Notice
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)
There were no browser issues found
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
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
fg-opencart-to-woocommerce/fg-opencart-to-woocommerce.php Passed 13 tests
The main file in "FG OpenCart to WooCommerce" v. 1.27.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
63 characters long description:
A plugin to migrate OpenCart e-commerce solution to WooCommerce
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin4,208 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 35 | 673 | 1,668 | 3,259 |
PO File | 1 | 159 | 172 | 479 |
JavaScript | 1 | 54 | 115 | 358 |
CSS | 1 | 1 | 4 | 112 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 29.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 338.00 |
Average method complexity | 3.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 186 | |
▷ Static methods | 7 | 3.76% |
▷ Public methods | 117 | 62.90% |
▷ Protected methods | 13 | 6.99% |
▷ Private methods | 56 | 30.11% |
Functions | 6 | |
▷ Named functions | 3 | 50.00% |
▷ Anonymous functions | 3 | 50.00% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin