Benchmarks
Plugin footprint 83% 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.61MB] [CPU: ▲2.94ms] Passed 4 tests
Server-side resources used by LinkGreen Product Import
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.07 ▲0.60 | 49.17 ▲2.63 |
Dashboard /wp-admin | 3.93 ▲0.62 | 53.42 ▼4.68 |
Posts /wp-admin/edit.php | 3.98 ▲0.62 | 60.27 ▲10.46 |
Add New Post /wp-admin/post-new.php | 6.55 ▲0.66 | 108.08 ▲9.29 |
Media Library /wp-admin/upload.php | 3.85 ▲0.62 | 42.69 ▲4.52 |
LinkGreen Product Import Admin /wp-admin/tools.php?page=linkgreen_product_import_options | 3.80 | 40.93 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 45 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
linkgreen_product_import_debug_options |
linkgreen_product_import_setup_options |
linkgreen_product_import_input_examples |
db_upgraded |
Browser metrics Passed 4 tests
LinkGreen Product Import: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,880 ▲119 | 13.37 ▼0.98 | 7.63 ▲5.85 | 40.44 ▼3.14 |
Dashboard /wp-admin | 2,203 ▲29 | 5.59 ▲0.01 | 95.50 ▼8.80 | 38.52 ▼11.73 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.00 ▼0.01 | 39.94 ▲1.34 | 36.34 ▼0.39 |
Add New Post /wp-admin/post-new.php | 1,538 ▲10 | 23.12 ▲0.09 | 626.26 ▼42.23 | 45.14 ▼8.71 |
Media Library /wp-admin/upload.php | 1,402 ▲2 | 4.15 ▼0.03 | 99.37 ▼9.52 | 45.95 ▲0.78 |
LinkGreen Product Import Admin /wp-admin/tools.php?page=linkgreen_product_import_options | 879 | 1.99 | 23.55 | 30.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options detected upon uninstall: 9 options
- can_compress_scripts
- linkgreen_product_import_input_examples
- db_upgraded
- widget_theysaidso_widget
- linkgreen_product_import_setup_options
- theysaidso_admin_options
- linkgreen_product_import_debug_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/tools.php?page=linkgreen_product_import_options
- > Notice in wp-content/plugins/linkgreen-product-import/admin/class-plugin-settings.php+519
Undefined index: api_token
- 4 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=linkgreen_product_import_options
- > Notice in wp-content/plugins/linkgreen-product-import/admin/class-plugin-settings.php+563
Undefined index: schedule_frequency
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/linkgreen-product-import/admin/partials/linkgreen-product-import-admin-display.php
- > /wp-content/plugins/linkgreen-product-import/public/partials/linkgreen-product-import-public-display.php
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/linkgreen-product-import/admin/page-template-linkgreen-retail-locations.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/linkgreen-product-import/includes/task-product-import.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/linkgreen-product-import/includes/wp-background-processing/wp-background-processing.php:19
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/linkgreen-product-import/includes/rest-controller-products.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/linkgreen-product-import/includes/helpers.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Async_Request' not found in wp-content/plugins/linkgreen-product-import/includes/wp-background-processing/classes/wp-background-process.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/linkgreen-product-import/includes/task-product-delete.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/linkgreen-product-import/includes/task-product-callback.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/linkgreen-product-import/includes/task-product-api.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: wholesale, linkgreen, link green, woocommerce, api
linkgreen-product-import/linkgreen-product-import.php Passed 13 tests
"LinkGreen Product Import" version 1.0.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
118 characters long description:
Use your LinkGreen.io catalogs to feed WooCommerce with products including pictures, attributes & even store locations
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin3,050 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 1,082 | 1,488 | 2,542 |
JavaScript | 3 | 73 | 79 | 291 |
Markdown | 1 | 54 | 0 | 104 |
CSS | 3 | 18 | 13 | 95 |
JSON | 1 | 0 | 0 | 18 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 15.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 2 | 9.52% |
▷ Concrete classes | 19 | 90.48% |
▷ Final classes | 0 | 0.00% |
Methods | 186 | |
▷ Static methods | 15 | 8.06% |
▷ Public methods | 109 | 58.60% |
▷ Protected methods | 31 | 16.67% |
▷ Private methods | 46 | 24.73% |
Functions | 14 | |
▷ Named functions | 11 | 78.57% |
▷ Anonymous functions | 3 | 21.43% |
Constants | 20 | |
▷ Global constants | 5 | 25.00% |
▷ Class constants | 15 | 75.00% |
▷ Public constants | 15 | 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
PNG images were not found in this plugin