Benchmarks
Plugin footprint 65% 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: ▲4.52MB] [CPU: ▼276.00ms] Passed 4 tests
This is a short check of server-side resources used by ACF for WooCommerce Product
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.39 ▲4.87 | 83.64 ▲32.04 |
Dashboard /wp-admin | 8.41 ▲5.00 | 62.05 ▲24.38 |
Posts /wp-admin/edit.php | 8.41 ▲4.77 | 62.72 ▲22.25 |
Add New Post /wp-admin/post-new.php | 10.42 ▲3.44 | 127.80 ▼1,173.72 |
Media Library /wp-admin/upload.php | 8.41 ▲5.11 | 50.91 ▲23.08 |
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius | 8.41 | 47.02 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 8.41 | 61.89 |
Server storage [IO: ▲4.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 210 new files
Database: no new tables, 4 new options
New WordPress options |
---|
fs_gdpr |
fs_debug_mode |
fs_active_plugins |
fs_accounts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ACF for WooCommerce Product
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,875 ▲121 | 15.96 ▲0.38 | 6.10 ▲0.16 | 2.97 ▲0.01 |
Dashboard /wp-admin | 2,969 ▲108 | 6.11 ▼0.10 | 117.76 ▼15.03 | 185.52 ▲21.05 |
Posts /wp-admin/edit.php | 2,792 ▲101 | 3.25 ▲0.01 | 66.03 ▲0.20 | 177.09 ▲28.66 |
Add New Post /wp-admin/post-new.php | 1,710 ▼7 | 21.26 ▼0.54 | 431.81 ▼1.33 | 159.55 ▲1.00 |
Media Library /wp-admin/upload.php | 1,799 ▲101 | 5.58 ▲0.04 | 143.59 ▲2.07 | 222.32 ▲34.83 |
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius | 1,479 | 2.55 | 55.92 | 114.70 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 1,658 | 2.78 | 58.15 | 136.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/acf-for-woocommerce-product/freemius/includes/class-freemius.php+8552
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 4 options
- fs_active_plugins
- fs_accounts
- fs_debug_mode
- fs_gdpr
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/acf-for-woocommerce-product/freemius/templates/ajax-loader.php
- 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/acf-for-woocommerce-product/freemius/templates/account/partials/addon.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/acf-for-woocommerce-product/class-tgm-plugin-activation.php:2109
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/acf-for-woocommerce-product/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/acf-for-woocommerce-product/freemius/templates/account/partials/addon.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/acf-for-woocommerce-product/afwp.php:29
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/acf-for-woocommerce-product/freemius/templates/account/partials/addon.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/acf-for-woocommerce-product/freemius/templates/partials/network-activation.php:6
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/acf-for-woocommerce-product/freemius/templates/account/partials/addon.php on line 7
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/acf-for-woocommerce-product/freemius/templates/account/partials/addon.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-for-woocommerce-product/admin-functions.php:5
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: acf, advanced custom fields, field, custom, woocommerce
acf-for-woocommerce-product/afwp.php 85% from 13 tests
This is the main PHP file of "ACF for WooCommerce Product" version 1.8.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("acf-for-woocommerce-product.php" instead of "afwp.php")
- Requires at least: The required version number did not match the one declared in readme.txt ("4.3" instead of "3.8")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin47,358 lines of code in 164 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 110 | 7,754 | 17,842 | 32,384 |
PO File | 10 | 5,550 | 6,667 | 12,010 |
Sass | 28 | 399 | 77 | 2,515 |
Markdown | 1 | 68 | 0 | 214 |
JavaScript | 3 | 34 | 59 | 194 |
JSON | 1 | 0 | 0 | 27 |
CSS | 11 | 0 | 0 | 14 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 2,908)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 84.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,908.00 |
Average method complexity | 4.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 52 | |
▷ Abstract classes | 2 | 3.85% |
▷ Concrete classes | 50 | 96.15% |
▷ Final classes | 0 | 0.00% |
Methods | 1,233 | |
▷ Static methods | 178 | 14.44% |
▷ Public methods | 870 | 70.56% |
▷ Protected methods | 38 | 3.08% |
▷ Private methods | 325 | 26.36% |
Functions | 103 | |
▷ Named functions | 103 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 128 | |
▷ Global constants | 100 | 78.12% |
▷ Class constants | 28 | 21.88% |
▷ Public constants | 28 | 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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |