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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.44MB] [CPU: ▼6.05ms] Passed 4 tests
Analyzing server-side resources used by Flexible Product Fields (WooCommerce Product Addons) - WooCommerce Product Page Editor
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.92 ▲0.45 | 41.61 ▼1.13 |
Dashboard /wp-admin | 3.75 ▲0.44 | 51.68 ▲1.15 |
Posts /wp-admin/edit.php | 3.80 ▲0.44 | 49.39 ▼3.51 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.44 | 88.01 ▼20.70 |
Media Library /wp-admin/upload.php | 3.67 ▲0.44 | 36.41 ▲2.61 |
Server storage [IO: ▲2.31MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 515 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
plugin_activation_flexible-product-fields/flexible-product-fields.php |
Browser metrics Passed 4 tests
An overview of browser requirements for Flexible Product Fields (WooCommerce Product Addons) - WooCommerce Product Page Editor
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲46 | 14.29 ▼0.05 | 1.55 ▼0.21 | 38.41 ▼5.41 |
Dashboard /wp-admin | 2,195 ▲15 | 5.49 ▼0.16 | 86.69 ▼4.78 | 37.58 ▼0.39 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 1.95 ▲0.01 | 40.35 ▲0.39 | 34.01 ▲0.53 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.43 ▲0.42 | 671.90 ▼2.78 | 54.57 ▲2.70 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.23 ▲0.02 | 97.33 ▼7.13 | 41.87 ▼4.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- plugin_activation_flexible-product-fields/flexible-product-fields.php
- widget_theysaidso_widget
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 everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/flexible-product-fields/templates/totals/display.php
- 287× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'VendorFPF\\Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/flexible-product-fields/vendor_prefixed/monolog/monolog/src/Monolog/Processor/IntrospectionProcessor.php:30
- > PHP Fatal error
Uncaught Error: Class 'WPDesk\\FPF\\Free\\Field\\Type\\TypeAbstract' not found in wp-content/plugins/flexible-product-fields/src/Field/Type/DateType.php:10
- > PHP Fatal error
Uncaught Error: Class 'VendorFPF\\WPDesk\\Composer\\Codeception\\Commands\\RunCodeceptionTests' not found in wp-content/plugins/flexible-product-fields/vendor_prefixed/wpdesk/wp-codeception/src/WPDesk/Composer/Commands/RunLocalCodeceptionTestsWithCoverage.php:15
- > PHP Fatal error
Uncaught Error: Class 'WPDesk\\FPF\\Free\\Settings\\Option\\OptionAbstract' not found in wp-content/plugins/flexible-product-fields/src/Settings/Option/PricingAdvOption.php:10
- > PHP Fatal error
Uncaught Error: Class 'WPDesk\\FPF\\Free\\Settings\\Tab\\TabAbstract' not found in wp-content/plugins/flexible-product-fields/src/Settings/Tab/AdvancedTab.php:8
- > PHP Fatal error
Uncaught Error: Class 'WPDesk\\FPF\\Free\\Settings\\Option\\OptionAbstract' not found in wp-content/plugins/flexible-product-fields/src/Settings/Option/SelectedMaxOption.php:10
- > PHP Fatal error
Uncaught Error: Class 'WPDesk\\FPF\\Free\\Settings\\Option\\OptionAbstract' not found in wp-content/plugins/flexible-product-fields/src/Settings/Option/ValueStepOption.php:10
- > PHP Fatal error
Uncaught Error: Interface 'VendorFPF\\Monolog\\Handler\\FingersCrossed\\ActivationStrategyInterface' not found in wp-content/plugins/flexible-product-fields/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php:24
- > PHP Fatal error
Uncaught Error: Class 'VendorFPF\\Monolog\\Formatter\\JsonFormatter' not found in wp-content/plugins/flexible-product-fields/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/GoogleCloudLoggingFormatter.php:24
- > PHP Fatal error
Uncaught Error: Class 'WPDesk\\FPF\\Free\\Settings\\Tab\\TabAbstract' not found in wp-content/plugins/flexible-product-fields/src/Settings/Tab/GeneralTab.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: woocommerce custom fields, woocommerce product addons, woocommerce product options, woocommerce customize product, woocommerce custom product
flexible-product-fields/flexible-product-fields.php 92% from 13 tests
The entry point to "Flexible Product Fields (WooCommerce Product Addons) - WooCommerce Product Page Editor" version 2.3.14 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 must match the one declared in readme.txt ("5.7" instead of "5.8")
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 plugin23,147 lines of code in 500 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 455 | 2,450 | 13,154 | 21,481 |
JSON | 17 | 0 | 0 | 880 |
JavaScript | 13 | 43 | 5 | 418 |
CSS | 9 | 38 | 5 | 220 |
Markdown | 4 | 15 | 0 | 65 |
SVG | 1 | 0 | 0 | 58 |
PO File | 1 | 3 | 3 | 25 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 2.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 53.00 |
Code structure | ||
---|---|---|
Namespaces | 56 | |
Interfaces | 45 | |
Traits | 12 | |
Classes | 343 | |
▷ Abstract classes | 16 | 4.66% |
▷ Concrete classes | 327 | 95.34% |
▷ Final classes | 6 | 1.83% |
Methods | 2,037 | |
▷ Static methods | 86 | 4.22% |
▷ Public methods | 1,667 | 81.84% |
▷ Protected methods | 192 | 9.43% |
▷ Private methods | 178 | 8.74% |
Functions | 81 | |
▷ Named functions | 34 | 41.98% |
▷ Anonymous functions | 47 | 58.02% |
Constants | 249 | |
▷ Global constants | 3 | 1.20% |
▷ Class constants | 246 | 98.80% |
▷ Public constants | 219 | 89.02% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.12MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/flexible-wishlist.png | 12.35KB | 5.49KB | ▼ 55.55% |
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/flexibleshipping.com.png | 5.63KB | 3.68KB | ▼ 34.58% |
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/logo.png | 2.36KB | 2.43KB | 0.00% |
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/wpdesk.pl.png | 2.36KB | 2.43KB | 0.00% |
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/octolize.com.png | 88.91KB | 39.07KB | ▼ 56.06% |