Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.45MB] [CPU: ▼8.37ms] Passed 4 tests
An overview of server-side resources used by Flexible Quantity - Measurement Price Calculator for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.92 ▲0.46 | 43.44 ▼2.05 |
Dashboard /wp-admin | 3.76 ▲0.46 | 48.93 ▲0.65 |
Posts /wp-admin/edit.php | 3.81 ▲0.45 | 52.15 ▼12.04 |
Add New Post /wp-admin/post-new.php | 6.34 ▲0.45 | 84.59 ▼18.87 |
Media Library /wp-admin/upload.php | 3.68 ▲0.45 | 37.12 ▼0.51 |
Server storage [IO: ▲2.24MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 443 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
plugin_activation_flexible-quantity-measurement-price-calculator-for-woocommerce/flexible-quantity-measurement-price-calculator-for-woocommerce.php |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
wpdesk_requirements_plugins_data |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Flexible Quantity - Measurement Price Calculator for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲31 | 14.25 ▲0.01 | 1.64 ▼0.21 | 43.98 ▲0.03 |
Dashboard /wp-admin | 2,198 ▲18 | 5.51 ▼0.12 | 86.59 ▼8.50 | 38.38 ▼5.19 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.94 ▼0.02 | 36.19 ▼4.15 | 34.83 ▼3.42 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.25 ▲0.14 | 693.63 ▲5.33 | 61.02 ▲4.93 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.20 ▼0.03 | 97.77 ▼7.61 | 41.74 ▼1.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- plugin_activation_flexible-quantity-measurement-price-calculator-for-woocommerce/flexible-quantity-measurement-price-calculator-for-woocommerce.php
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/flexible-quantity-measurement-price-calculator-for-woocommerce/vendor_prefixed/wpdesk/wp-wpdesk-marketing/src/Boxes/Views/row_open.php
- > /wp-content/plugins/flexible-quantity-measurement-price-calculator-for-woocommerce/vendor_prefixed/wpdesk/wp-wpdesk-marketing/src/Boxes/Views/row_close.php
- > /wp-content/plugins/flexible-quantity-measurement-price-calculator-for-woocommerce/vendor_prefixed/wpdesk/wp-wpdesk-marketing/src/Boxes/Views/all.php
- 243× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/flexible-quantity-measurement-price-calculator-for-woocommerce/vendor_prefixed/wpdesk/flexible-quantity-core/src/Admin/writepanels/panel-part/dimensions-decimals.php:10
- > PHP Fatal error
Uncaught Error: Class 'WDFQVendorFree\\Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/flexible-quantity-measurement-price-calculator-for-woocommerce/vendor_prefixed/wpdesk/wp-logs/src/WC/WooCommerceHandler.php:10
- > PHP Fatal error
Uncaught Error: Class 'WDFQVendorFree\\Monolog\\Handler\\SocketHandler' not found in wp-content/plugins/flexible-quantity-measurement-price-calculator-for-woocommerce/vendor_prefixed/monolog/monolog/src/Monolog/Handler/LogEntriesHandler.php:18
- > PHP Notice
Undefined variable: params in wp-content/plugins/flexible-quantity-measurement-price-calculator-for-woocommerce/vendor_prefixed/wpdesk/wp-wpdesk-marketing/src/Boxes/Views/all.php on line 29
- > PHP Fatal error
Uncaught Error: Interface 'WDFQVendorFree\\WPDesk\\Plugin\\Flow\\Initialization\\InitializationFactory' not found in wp-content/plugins/flexible-quantity-measurement-price-calculator-for-woocommerce/vendor_prefixed/wpdesk/wp-plugin-flow-common/src/Initialization/Simple/SimpleFactory.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function woocommerce_wp_checkbox() in wp-content/plugins/flexible-quantity-measurement-price-calculator-for-woocommerce/vendor_prefixed/wpdesk/flexible-quantity-core/src/Admin/writepanels/measurements/volume-lxwxh.php:10
- > PHP Fatal error
Uncaught Error: Class 'WDFQVendorFree\\Monolog\\Handler\\MailHandler' not found in wp-content/plugins/flexible-quantity-measurement-price-calculator-for-woocommerce/vendor_prefixed/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php:22
- > PHP Fatal error
Uncaught Error: Class 'WDFQVendorFree\\Monolog\\Handler\\BufferHandler' not found in wp-content/plugins/flexible-quantity-measurement-price-calculator-for-woocommerce/vendor_prefixed/monolog/monolog/src/Monolog/Handler/DeduplicationHandler.php:40
- > PHP Notice
Undefined variable: params in wp-content/plugins/flexible-quantity-measurement-price-calculator-for-woocommerce/vendor_prefixed/wpdesk/wp-wpdesk-marketing/src/Boxes/Views/all.php on line 17
- > PHP Fatal error
Uncaught Error: Interface 'WDFQVendorFree\\WPDesk\\Persistence\\PersistentContainer' not found in wp-content/plugins/flexible-quantity-measurement-price-calculator-for-woocommerce/vendor_prefixed/wpdesk/flexible-quantity-core/src/WooCommerce/Persistence/WooCommerceProductContainer.php:15
- > 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
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: measurement price, product quantity, price calculator, quantity increment, unit of measure
flexible-quantity-measurement-price-calculator-for-woocommerce/flexible-quantity-measurement-price-calculator-for-woocommerce.php 85% from 13 tests
This is the main PHP file of "Flexible Quantity - Measurement Price Calculator for WooCommerce" version 1.0.22, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("5.0" instead of "5.2")
- Description: Keep the plugin description shorter than 140 characters (currently 143 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected29,357 lines of code in 428 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 380 | 1,096 | 15,133 | 22,899 |
JavaScript | 12 | 1,443 | 2,158 | 4,607 |
JSON | 20 | 0 | 0 | 1,044 |
CSS | 14 | 113 | 63 | 782 |
Markdown | 2 | 5 | 0 | 25 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 9.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 149.00 |
Average method complexity | 2.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 62 | |
Interfaces | 42 | |
Traits | 13 | |
Classes | 275 | |
▷ Abstract classes | 14 | 5.09% |
▷ Concrete classes | 261 | 94.91% |
▷ Final classes | 21 | 8.05% |
Methods | 1,845 | |
▷ Static methods | 241 | 13.06% |
▷ Public methods | 1,440 | 78.05% |
▷ Protected methods | 201 | 10.89% |
▷ Private methods | 204 | 11.06% |
Functions | 89 | |
▷ Named functions | 38 | 42.70% |
▷ Anonymous functions | 51 | 57.30% |
Constants | 185 | |
▷ Global constants | 5 | 2.70% |
▷ Class constants | 180 | 97.30% |
▷ Public constants | 152 | 84.44% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.11MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/wpdesk.pl.png | 2.36KB | 2.43KB | 0.00% |
vendor_prefixed/wpdesk/flexible-quantity-core/assets/images/product-data-icon.png | 0.41KB | 0.83KB | 0.00% |
vendor_prefixed/wpdesk/wp-wpdesk-marketing/assets/owl-slider/owl.video.play.png | 4.86KB | 2.74KB | ▼ 43.61% |
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/octolize.com.png | 88.91KB | 39.07KB | ▼ 56.06% |
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/logo.png | 2.36KB | 2.43KB | 0.00% |