Benchmarks
Plugin footprint 64% 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: ▲6.28MB] [CPU: ▲39.34ms] 50% from 4 tests
Analyzing server-side resources used by Linked Orders for WooCommerce
The following require your attention
- CPU: Try to keep total CPU usage under 500.00ms (currently 1,956.75ms on /wp-admin/admin.php?page=linked-orders-for-woocommerce)
- Extra RAM: The extra memory usage must be under 5MB (currently 6.28MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.75 ▲6.29 | 81.67 ▲39.50 |
Dashboard /wp-admin | 9.60 ▲6.25 | 95.71 ▲39.92 |
Posts /wp-admin/edit.php | 9.72 ▲6.36 | 88.81 ▲44.29 |
Add New Post /wp-admin/post-new.php | 12.18 ▲6.30 | 139.49 ▲33.65 |
Media Library /wp-admin/upload.php | 9.53 ▲6.30 | 87.37 ▲52.24 |
Linked Orders for WooCommerce /wp-admin/admin.php?page=linked-orders-for-woocommerce | 9.78 | 1,956.75 |
Freemius Debug [v.2.4.4] /wp-admin/admin.php?page=freemius | 9.75 | 86.00 |
Server storage [IO: ▲4.58MB] [DB: ▲0.08MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 724 new files
Database: no new tables, 11 new options
New WordPress options |
---|
fs_accounts |
fs_active_plugins |
can_compress_scripts |
fs_gdpr |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
linked_orders_for_woocommerce_original_version |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Linked Orders for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲61 | 14.28 ▼0.28 | 1.53 ▲0.03 | 27.65 ▼15.77 |
Dashboard /wp-admin | 2,220 ▲43 | 5.50 ▼0.17 | 87.45 ▼0.73 | 39.46 ▲1.77 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 2.11 ▲0.13 | 37.46 ▼0.71 | 33.27 ▼6.95 |
Add New Post /wp-admin/post-new.php | 1,542 ▲16 | 20.80 ▼2.77 | 605.63 ▼9.95 | 59.75 ▼18.24 |
Media Library /wp-admin/upload.php | 1,425 ▲25 | 4.17 ▼0.04 | 100.00 ▼2.40 | 46.24 ▼0.89 |
Linked Orders for WooCommerce /wp-admin/admin.php?page=linked-orders-for-woocommerce | 1,023 | 2.19 | 29.49 | 50.87 |
Freemius Debug [v.2.4.4] /wp-admin/admin.php?page=freemius | 1,057 | 1.65 | 27.67 | 31.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/linked-orders-for-woocommerce/vendor/freemius/wordpress-sdk/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 11 options in the database
- theysaidso_admin_options
- linked_orders_for_woocommerce_original_version
- widget_recent-posts
- fs_gdpr
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- fs_accounts
- fs_debug_mode
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Please fix the following
- 59× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'DWS_LOWC_Deps\\Invoker\\ParameterResolver\\ParameterResolver' not found in wp-content/plugins/linked-orders-for-woocommerce/dependencies/dependency-injection/php-di/invoker/src/ParameterResolver/ResolverChain.php:12
- > PHP Fatal error
Uncaught Error: Interface 'DWS_LOWC_Deps\\Invoker\\ParameterResolver\\ParameterResolver' not found in wp-content/plugins/linked-orders-for-woocommerce/dependencies/dependency-injection/php-di/invoker/src/ParameterResolver/NumericArrayResolver.php:17
- > PHP Fatal error
Uncaught Error: Interface 'DWS_LOWC_Deps\\DI\\Definition\\Definition' not found in wp-content/plugins/linked-orders-for-woocommerce/dependencies/dependency-injection/php-di/php-di/src/Definition/FactoryDefinition.php:11
- > PHP Fatal error
Uncaught Error: Interface 'DWS_LOWC_Deps\\DI\\Definition\\Definition' not found in wp-content/plugins/linked-orders-for-woocommerce/dependencies/dependency-injection/php-di/php-di/src/Definition/ValueDefinition.php:12
- > PHP Fatal error
Uncaught Error: Class 'DWS_LOWC_Deps\\Invoker\\Exception\\InvocationException' not found in wp-content/plugins/linked-orders-for-woocommerce/dependencies/dependency-injection/php-di/invoker/src/Exception/NotCallableException.php:9
- > PHP Fatal error
Uncaught Error: Interface 'DWS_LOWC_Deps\\DI\\Definition\\Definition' not found in wp-content/plugins/linked-orders-for-woocommerce/dependencies/dependency-injection/php-di/php-di/src/Definition/StringDefinition.php:15
- > PHP Fatal error
Uncaught Error: Interface 'DWS_LOWC_Deps\\Invoker\\ParameterResolver\\ParameterResolver' not found in wp-content/plugins/linked-orders-for-woocommerce/dependencies/dependency-injection/php-di/invoker/src/ParameterResolver/TypeHintResolver.php:13
- > PHP Fatal error
Uncaught Error: Class 'DWS_LOWC_Deps\\DI\\Definition\\Exception\\InvalidDefinition' not found in wp-content/plugins/linked-orders-for-woocommerce/dependencies/dependency-injection/php-di/php-di/src/Definition/Exception/InvalidAnnotation.php:11
- > PHP Fatal error
Uncaught Error: Interface 'DWS_LOWC_Deps\\Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/linked-orders-for-woocommerce/dependencies/dependency-injection/php-di/php-di/src/DependencyException.php:10
- > PHP Fatal error
Uncaught Error: Interface 'DWS_LOWC_Deps\\DI\\Definition\\Helper\\DefinitionHelper' not found in wp-content/plugins/linked-orders-for-woocommerce/dependencies/dependency-injection/php-di/php-di/src/Definition/Helper/FactoryDefinitionHelper.php:14
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: linked orders, woocommerce
linked-orders-for-woocommerce/linked-orders-for-woocommerce.php Passed 13 tests
The entry point to "Linked Orders for WooCommerce" version 1.2.2 is a PHP file that has certain tags in its header comment area
90 characters long description:
A WooCommerce extension for creating orders that are logically connected to existing ones.
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
Success! There were no dangerous files found in this plugin47,533 lines of code in 561 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 536 | 8,832 | 33,810 | 46,850 |
PO File | 2 | 136 | 238 | 346 |
JavaScript | 5 | 35 | 61 | 201 |
JSON | 1 | 0 | 0 | 48 |
SVG | 1 | 1 | 0 | 30 |
CSS | 13 | 1 | 2 | 24 |
Markdown | 1 | 4 | 0 | 17 |
Sass | 1 | 0 | 0 | 11 |
TypeScript | 1 | 1 | 0 | 6 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 2,911)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 15.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,911.00 |
Average method complexity | 3.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 102 | |
Interfaces | 81 | |
Traits | 98 | |
Classes | 256 | |
▷ Abstract classes | 38 | 14.84% |
▷ Concrete classes | 218 | 85.16% |
▷ Final classes | 21 | 9.63% |
Methods | 2,590 | |
▷ Static methods | 326 | 12.59% |
▷ Public methods | 2,040 | 78.76% |
▷ Protected methods | 168 | 6.49% |
▷ Private methods | 382 | 14.75% |
Functions | 232 | |
▷ Named functions | 178 | 76.72% |
▷ Anonymous functions | 54 | 23.28% |
Constants | 222 | |
▷ Global constants | 159 | 71.62% |
▷ Class constants | 63 | 28.38% |
▷ Public constants | 61 | 96.83% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
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/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
vendor/freemius/wordpress-sdk/assets/img/linked-orders-for-woocommerce.png | 11.90KB | 4.37KB | ▼ 63.27% |
vendor/freemius/wordpress-sdk/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |