Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- The plugin did not install without errors
- > Warning in wp-admin/includes/plugin.php+294
opendir(wp-content/plugins/woocommerce): failed to open dir: No such file or directory
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.32ms] Passed 4 tests
This is a short check of server-side resources used by WooCommerce Force Default Variant
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.68 ▼0.57 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.18 ▼4.60 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.42 ▲4.89 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.07 ▼8.44 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.24 ▲0.32 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
hpy_plugin_deferred_admin_notices |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Force Default Variant
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.14 ▼0.39 | 1.81 ▲0.06 | 44.21 ▼1.09 |
Dashboard /wp-admin | 2,198 ▲21 | 5.60 ▲0.03 | 90.11 ▼12.79 | 42.07 ▼0.49 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.98 ▼0.03 | 33.31 ▼2.23 | 34.70 ▲4.85 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.46 ▲0.39 | 676.58 ▲29.74 | 65.47 ▲7.43 |
Media Library /wp-admin/upload.php | 1,403 ▲9 | 4.22 ▲0.01 | 97.52 ▲5.33 | 43.01 ▲1.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- hpy_plugin_deferred_admin_notices
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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 items
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function hpy_fdv_wc_version_check() in wp-content/plugins/force-default-variant-for-woocommerce/includes/variations.php:2
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/force-default-variant-for-woocommerce/woo-force-default-variant.php on line 44
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/force-default-variant-for-woocommerce/woo-force-default-variant.php on line 44
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/force-default-variant-for-woocommerce/includes/clear-removal.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/force-default-variant-for-woocommerce/includes/settings.php:6
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/force-default-variant-for-woocommerce/woo-force-default-variant.php on line 44
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: woocommerce variant, woocommerce, variable product, ecommerce
force-default-variant-for-woocommerce/woo-force-default-variant.php 85% from 13 tests
The entry point to "WooCommerce Force Default Variant" version 1.8 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("4.2" instead of "2.4")
- Main file name: Name the main plugin file the same as the plugin slug ("force-default-variant-for-woocommerce.php" instead of "woo-force-default-variant.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected481 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 130 | 95 | 481 |
PHP code Passed 2 tests
This is a very shot review 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.40 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 30 | |
▷ Named functions | 28 | 93.33% |
▷ Anonymous functions | 2 | 6.67% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin