Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼3.20ms] Passed 4 tests
A check of server-side resources used by Advanced Product Fields (Product Addons) for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 38.32 ▼3.72 |
Dashboard /wp-admin | 3.51 ▲0.20 | 45.69 ▲0.20 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 46.49 ▼1.16 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 80.17 ▼3.01 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 34.23 ▼4.92 |
Product Fields /wp-admin/admin.php?page=wapf-field-groups | 3.61 | 38.09 |
Server storage [IO: ▲0.38MB] [DB: ▲0.49MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 80 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Advanced Product Fields (Product Addons) for WooCommerce: 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,783 ▲22 | 14.51 ▲0.22 | 1.62 ▲0.08 | 38.08 ▼3.42 |
Dashboard /wp-admin | 2,192 ▲28 | 5.68 ▲0.00 | 80.41 ▼24.13 | 33.82 ▼7.96 |
Posts /wp-admin/edit.php | 2,094 ▼6 | 1.94 ▼0.04 | 37.86 ▼2.29 | 30.19 ▼5.61 |
Add New Post /wp-admin/post-new.php | 1,520 ▼8 | 23.59 ▲0.43 | 720.39 ▲72.19 | 71.11 ▲26.06 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.19 ▼0.08 | 93.55 ▼12.36 | 37.64 ▼8.73 |
Product Fields /wp-admin/admin.php?page=wapf-field-groups | 1,179 | 3.71 | 54.45 | 41.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.49MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 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
Almost there! Just fix the following items
- 9× PHP files output text when accessed directly:
- > /wp-content/plugins/advanced-product-fields-for-woocommerce/views/frontend/fields/textarea.php
- > /wp-content/plugins/advanced-product-fields-for-woocommerce/views/frontend/fields/number.php
- > /wp-content/plugins/advanced-product-fields-for-woocommerce/views/frontend/fields/email.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/url.php
- > /wp-content/plugins/advanced-product-fields-for-woocommerce/views/frontend/fields/text.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/content.php
- > /wp-content/plugins/advanced-product-fields-for-woocommerce/views/admin/field.php
- 97× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: model in wp-content/plugins/advanced-product-fields-for-woocommerce/views/frontend/fields/text.php on line 5
- > 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 a member function pricing_enabled() on null in wp-content/plugins/advanced-product-fields-for-woocommerce/views/frontend/fields/true-false.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/advanced-product-fields-for-woocommerce/views/admin/settings/number.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/advanced-product-fields-for-woocommerce/includes/classes/class-wapf-list-table.php:6
- > PHP Notice
Undefined variable: model in wp-content/plugins/advanced-product-fields-for-woocommerce/views/admin/settings/true-false.php on line 6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/advanced-product-fields-for-woocommerce/views/admin/settings/text.php on line 3
- > PHP Notice
Trying to get property 'id' of non-object in wp-content/plugins/advanced-product-fields-for-woocommerce/views/frontend/field-group.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/advanced-product-fields-for-woocommerce/views/admin/settings/url.php:5
- > 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
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: woocommerce product options, woo product options, woocommerce custom fields, woocommerce product fields, woocommerce product addons
advanced-product-fields-for-woocommerce/advanced-product-fields-for-woocommerce.php 92% from 13 tests
The primary PHP file in "Advanced Product Fields (Product Addons) for WooCommerce" version 1.6.4 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("4.5" instead of "3.6.0")
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
No dangerous file extensions were detected3,836 lines of code in 59 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 54 | 1,113 | 95 | 3,809 |
JavaScript | 2 | 0 | 0 | 20 |
XML | 1 | 0 | 0 | 5 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 21.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 3.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 161 | |
▷ Static methods | 68 | 42.24% |
▷ Public methods | 144 | 89.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 17 | 10.56% |
Functions | 36 | |
▷ Named functions | 4 | 11.11% |
▷ Anonymous functions | 32 | 88.89% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin