Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.78MB] [CPU: ▲6.04ms] 75% from 4 tests
Server-side resources used by Quote Requests for WooCommerce
It is recommended to improve the following
- CPU: The total CPU usage must kept under 500.00ms (currently 1,821.34ms on /wp-admin/admin.php?page=quote-requests-for-woocommerce)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.25 ▲1.78 | 53.52 ▲8.51 |
Dashboard /wp-admin | 5.10 ▲1.80 | 61.46 ▲2.95 |
Posts /wp-admin/edit.php | 5.15 ▲1.79 | 59.31 ▲12.41 |
Add New Post /wp-admin/post-new.php | 7.62 ▲1.73 | 94.32 ▲0.29 |
Media Library /wp-admin/upload.php | 5.02 ▲1.79 | 59.53 ▲20.68 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 5.36 | 42.56 |
Quote Requests for WooCommerce /wp-admin/admin.php?page=quote-requests-for-woocommerce | 5.39 | 1,821.34 |
Server storage [IO: ▲5.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 843 new files
Database: no new tables, 11 new options
New WordPress options |
---|
theysaidso_admin_options |
quote_requests_for_woocommerce_original_version |
fs_accounts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
fs_active_plugins |
widget_recent-posts |
fs_debug_mode |
... |
Browser metrics Passed 4 tests
Quote Requests for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲36 | 14.38 ▼0.03 | 1.62 ▼0.54 | 33.07 ▼11.34 |
Dashboard /wp-admin | 2,223 ▲49 | 5.54 ▼0.08 | 86.58 ▼9.01 | 43.07 ▲0.44 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 2.11 ▲0.07 | 35.83 ▼1.85 | 36.60 ▲2.22 |
Add New Post /wp-admin/post-new.php | 1,542 ▲16 | 23.24 ▲0.07 | 665.37 ▲7.64 | 61.17 ▲8.18 |
Media Library /wp-admin/upload.php | 1,428 ▲34 | 4.12 ▼0.04 | 116.68 ▲14.83 | 56.50 ▲10.15 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,060 | 1.70 | 23.52 | 30.47 |
Quote Requests for WooCommerce /wp-admin/admin.php?page=quote-requests-for-woocommerce | 987 | 2.01 | 25.22 | 59.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/quote-requests-for-woocommerce/vendor/freemius/wordpress-sdk/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 11 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- fs_gdpr
- can_compress_scripts
- quote_requests_for_woocommerce_original_version
- fs_debug_mode
- widget_recent-comments
- fs_accounts
- fs_active_plugins
- db_upgraded
- ...
Smoke tests 75% 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)
Good news, no errors were detected
SRP 50% 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
The following issues need your attention
- 58× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'DWS_QRWC_Deps\\DI\\Definition\\Resolver\\DefinitionResolver' not found in wp-content/plugins/quote-requests-for-woocommerce/dependencies/dependency-injection/php-di/php-di/src/Definition/Resolver/ObjectCreator.php:23
- > PHP Fatal error
Uncaught Error: Interface 'DWS_QRWC_Deps\\DI\\Definition\\Definition' not found in wp-content/plugins/quote-requests-for-woocommerce/dependencies/dependency-injection/php-di/php-di/src/Definition/ArrayDefinition.php:12
- > PHP Fatal error
Uncaught Error: Interface 'DWS_QRWC_Deps\\Invoker\\ParameterResolver\\ParameterResolver' not found in wp-content/plugins/quote-requests-for-woocommerce/dependencies/dependency-injection/php-di/invoker/src/ParameterResolver/AssociativeArrayResolver.php:15
- > PHP Fatal error
Uncaught Error: Interface 'DWS_QRWC_Deps\\Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/quote-requests-for-woocommerce/dependencies/dependency-injection/php-di/php-di/src/Definition/Exception/InvalidDefinition.php:13
- > PHP Fatal error
Uncaught Error: Interface 'DWS_QRWC_Deps\\Psr\\Container\\ContainerInterface' not found in wp-content/plugins/quote-requests-for-woocommerce/dependencies/dependency-injection/php-di/php-di/src/Container.php:37
- > PHP Fatal error
Uncaught Error: Interface 'DWS_QRWC_Deps\\DI\\Definition\\Resolver\\DefinitionResolver' not found in wp-content/plugins/quote-requests-for-woocommerce/dependencies/dependency-injection/php-di/php-di/src/Definition/Resolver/EnvironmentVariableResolver.php:14
- > PHP Fatal error
Uncaught Error: Interface 'DWS_QRWC_Deps\\DI\\Definition\\Helper\\DefinitionHelper' not found in wp-content/plugins/quote-requests-for-woocommerce/dependencies/dependency-injection/php-di/php-di/src/Definition/Helper/FactoryDefinitionHelper.php:14
- > PHP Fatal error
Uncaught Error: Interface 'DWS_QRWC_Deps\\DI\\Factory\\RequestedEntry' not found in wp-content/plugins/quote-requests-for-woocommerce/dependencies/dependency-injection/php-di/php-di/src/Definition/Definition.php:14
- > PHP Fatal error
Uncaught Error: Interface 'DWS_QRWC_Deps\\DI\\Definition\\Source\\DefinitionSource' not found in wp-content/plugins/quote-requests-for-woocommerce/dependencies/dependency-injection/php-di/php-di/src/Definition/Source/AnnotationBasedAutowiring.php:32
- > PHP Fatal error
Uncaught Error: Interface 'DWS_QRWC_Deps\\Invoker\\ParameterResolver\\ParameterResolver' not found in wp-content/plugins/quote-requests-for-woocommerce/dependencies/dependency-injection/php-di/php-di/src/Invoker/FactoryParameterResolver.php:19
- > 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 Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: proposals, bids, estimates, requests, woocommerce...
quote-requests-for-woocommerce/quote-requests-for-woocommerce.php Passed 13 tests
The principal PHP file in "Quote Requests for WooCommerce" v. 1.0.4 is loaded by WordPress automatically on each request
125 characters long description:
A WooCommerce extension for allowing customers to submit quote requests to get customized prices before placing their orders.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected53,368 lines of code in 644 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 603 | 9,832 | 37,399 | 51,605 |
PO File | 1 | 443 | 589 | 976 |
JavaScript | 13 | 45 | 72 | 298 |
CSS | 16 | 2 | 121 | 160 |
Sass | 2 | 21 | 0 | 141 |
TypeScript | 6 | 24 | 52 | 93 |
JSON | 1 | 0 | 0 | 48 |
SVG | 1 | 1 | 0 | 30 |
Markdown | 1 | 4 | 0 | 17 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
It is recommended to fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 2,911)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 14.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,911.00 |
Average method complexity | 3.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 110 | |
Interfaces | 81 | |
Traits | 98 | |
Classes | 293 | |
▷ Abstract classes | 41 | 13.99% |
▷ Concrete classes | 252 | 86.01% |
▷ Final classes | 23 | 9.13% |
Methods | 2,818 | |
▷ Static methods | 329 | 11.67% |
▷ Public methods | 2,235 | 79.31% |
▷ Protected methods | 200 | 7.10% |
▷ Private methods | 383 | 13.59% |
Functions | 323 | |
▷ Named functions | 235 | 72.76% |
▷ Anonymous functions | 88 | 27.24% |
Constants | 224 | |
▷ Global constants | 160 | 71.43% |
▷ Class constants | 64 | 28.57% |
▷ Public constants | 62 | 96.88% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/freemius/wordpress-sdk/assets/img/quote-requests-for-woocommerce.png | 11.48KB | 4.65KB | ▼ 59.48% |
vendor/freemius/wordpress-sdk/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
vendor/freemius/wordpress-sdk/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |