Benchmarks
Plugin footprint Passed 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.15MB] [CPU: ▼295.31ms] Passed 4 tests
This is a short check of server-side resources used by Advanced Product Fields (Product Addons) for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.12 | 54.09 ▼6.39 |
Dashboard /wp-admin | 3.61 ▲0.19 | 33.69 ▼0.45 |
Posts /wp-admin/edit.php | 3.83 ▲0.19 | 41.71 ▲3.47 |
Add New Post /wp-admin/post-new.php | 7.07 ▲0.09 | 109.76 ▼1,172.32 |
Media Library /wp-admin/upload.php | 3.49 ▲0.19 | 25.07 ▼2.09 |
Product Fields /wp-admin/admin.php?page=wapf-field-groups | 3.72 | 32.10 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 78 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Advanced Product Fields (Product Addons) for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲41 | 15.29 ▼0.38 | 5.86 ▼0.00 | 2.21 ▼0.03 |
Dashboard /wp-admin | 2,889 ▲28 | 6.17 ▼0.02 | 118.06 ▼23.04 | 171.24 ▲4.80 |
Posts /wp-admin/edit.php | 2,688 ▼0 | 3.35 ▲0.12 | 65.62 ▲0.75 | 146.95 ▼2.00 |
Add New Post /wp-admin/post-new.php | 1,661 ▼0 | 15.84 ▼0.58 | 405.44 ▼27.60 | 213.07 ▲23.39 |
Media Library /wp-admin/upload.php | 1,698 ▲6 | 5.55 ▲0.10 | 155.83 ▼3.66 | 218.26 ▼7.42 |
Product Fields /wp-admin/admin.php?page=wapf-field-groups | 1,487 | 5.18 | 89.07 | 99.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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 fix the following items
- 8× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/advanced-product-fields-for-woocommerce/views/frontend/fields/text.php
- > /wp-content/plugins/advanced-product-fields-for-woocommerce/views/frontend/fields/textarea.php
- > /wp-content/plugins/advanced-product-fields-for-woocommerce/views/admin/field.php
- > /wp-content/plugins/advanced-product-fields-for-woocommerce/views/frontend/fields/url.php
- > /wp-content/plugins/advanced-product-fields-for-woocommerce/views/frontend/field-group.php
- > /wp-content/plugins/advanced-product-fields-for-woocommerce/views/frontend/fields/email.php
- > /wp-content/plugins/advanced-product-fields-for-woocommerce/views/frontend/fields/select.php
- > /wp-content/plugins/advanced-product-fields-for-woocommerce/views/frontend/fields/number.php
- 93× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/advanced-product-fields-for-woocommerce/views/admin/settings/options.php:5
- > PHP Notice
Undefined variable: model in wp-content/plugins/advanced-product-fields-for-woocommerce/views/frontend/fields/true-false.php on line 9
- > PHP Notice
Undefined variable: model in wp-content/plugins/advanced-product-fields-for-woocommerce/views/frontend/fields/select.php on line 9
- > PHP Notice
Undefined variable: model in wp-content/plugins/advanced-product-fields-for-woocommerce/views/admin/settings/conditionals.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/advanced-product-fields-for-woocommerce/views/admin/settings/true-false.php:8
- > PHP Notice
Undefined variable: product_id in wp-content/plugins/advanced-product-fields-for-woocommerce/views/frontend/product-totals.php on line 6
- > PHP Notice
Undefined variable: model in wp-content/plugins/advanced-product-fields-for-woocommerce/views/frontend/fields/email.php on line 1
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/advanced-product-fields-for-woocommerce/views/frontend/fields/true-false.php on line 9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/advanced-product-fields-for-woocommerce/views/frontend/fields/url.php on line 6
- > PHP Notice
Undefined variable: model in wp-content/plugins/advanced-product-fields-for-woocommerce/views/admin/settings/types.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: product fields, woocommerce product addons, woocommerce, woocommerce product options, product addons
advanced-product-fields-for-woocommerce/advanced-product-fields-for-woocommerce.php 92% from 13 tests
This is the main PHP file of "Advanced Product Fields (Product Addons) for WooCommerce" version 1.4.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Requires at least: The required version number must match the one declared in readme.txt ("4.5" instead of "3.4.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin3,701 lines of code in 57 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 53 | 1,071 | 94 | 3,679 |
JavaScript | 2 | 0 | 0 | 20 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 20.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 2.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 158 | |
▷ Static methods | 68 | 43.04% |
▷ Public methods | 142 | 89.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 10.13% |
Functions | 32 | |
▷ Named functions | 4 | 12.50% |
▷ Anonymous functions | 28 | 87.50% |
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
No PNG files were detected