Benchmarks
Plugin footprint Passed 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.17MB] [CPU: ▼144.28ms] Passed 4 tests
Server-side resources used by Advanced Store Control for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.06 | 32.21 ▲2.17 |
Dashboard /wp-admin | 3.31 ▲0.25 | 36.96 ▼5.56 |
Posts /wp-admin/edit.php | 3.36 ▲0.25 | 37.24 ▲2.70 |
Add New Post /wp-admin/post-new.php | 5.61 ▲0.17 | 77.94 ▼576.43 |
Media Library /wp-admin/upload.php | 3.19 ▲0.19 | 28.34 ▲4.18 |
Suppliers /wp-admin/admin.php?page=asc_suppliers | 3.16 | 23.04 |
Dashboard /wp-admin/admin.php?page=asc_dashboard | 3.19 | 27.10 |
Server storage [IO: ▲0.19MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 43 new files
Database: 6 new tables, no new options
New tables |
---|
wp_asc_attributes |
wp_asc_categories |
wp_asc_suppliers |
wp_asc_products |
wp_asc_log |
wp_asc_currencies |
Browser metrics Passed 4 tests
An overview of browser requirements for Advanced Store Control for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,705 ▲104 | 15.68 ▲0.05 | 5.50 ▲0.02 | 74.74 ▼6.40 |
Dashboard /wp-admin | 2,968 ▲72 | 6.04 ▼0.03 | 117.19 ▼16.64 | 168.71 ▼6.21 |
Posts /wp-admin/edit.php | 2,783 ▲40 | 3.25 ▲0.01 | 61.88 ▼4.19 | 135.69 ▼8.52 |
Add New Post /wp-admin/post-new.php | 2,523 ▼1,220 | 16.30 ▼2.76 | 402.85 ▼41.43 | 160.99 ▼2.99 |
Media Library /wp-admin/upload.php | 1,792 ▲40 | 5.61 ▲0.08 | 138.15 ▼2.33 | 183.96 ▼2.26 |
Suppliers /wp-admin/admin.php?page=asc_suppliers | 1,073 | 2.41 | 53.45 | 101.64 |
Dashboard /wp-admin/admin.php?page=asc_dashboard | 1,121 | 2.56 | 53.64 | 132.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=asc_suppliers
- > Warning in wp-admin/includes/plugin.php+299
opendir(wp-content/plugins/woocommerce): failed to open dir: No such file or directory
SRP 50% 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
Please take a closer look at the following
- 18× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/advanced-store-control-for-woocommerce/views/report.php on line 6
- > PHP Fatal error
Trait 'ASC\\Traits\\Model' not found in wp-content/plugins/advanced-store-control-for-woocommerce/models/tables.php on line 13
- > PHP Warning
set_exception_handler() expects the argument (ASC\\Controllers\\Controller_Log::exception) to be a valid callback in wp-content/plugins/advanced-store-control-for-woocommerce/functions.php on line 15
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/advanced-store-control-for-woocommerce/views/suppliers.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function ASC\\View\\wp_create_nonce() in wp-content/plugins/advanced-store-control-for-woocommerce/views/dashboard.php:8
- > PHP Fatal error
Trait 'ASC\\Traits\\Model' not found in wp-content/plugins/advanced-store-control-for-woocommerce/models/products.php on line 15
- > PHP Fatal error
Trait 'ASC\\Traits\\Model' not found in wp-content/plugins/advanced-store-control-for-woocommerce/models/suppliers.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function ASC\\View\\wp_create_nonce() in wp-content/plugins/advanced-store-control-for-woocommerce/views/supplier.php:10
- > PHP Fatal error
Trait 'ASC\\Traits\\Model' not found in wp-content/plugins/advanced-store-control-for-woocommerce/models/log.php on line 12
- > PHP Fatal error
Trait 'ASC\\Traits\\Model' not found in wp-content/plugins/advanced-store-control-for-woocommerce/models/categories.php on line 12
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: A description for screenshot #2 is required in advanced-store-control-for-woocommerce/assets to your readme.txt
advanced-store-control-for-woocommerce/advanced-store-control.php 92% from 13 tests
This is the main PHP file of "Advanced Store Control for WooCommerce" version 1.0.2, 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: It is recommended to name the main PHP file as the plugin slug ("advanced-store-control-for-woocommerce.php" instead of "advanced-store-control.php")
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
There were no executable files found in this plugin3,591 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 37 | 1,242 | 1,164 | 3,112 |
PO File | 1 | 147 | 188 | 373 |
JavaScript | 1 | 23 | 0 | 87 |
CSS | 1 | 5 | 0 | 19 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 16.87 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 83.00 |
Average method complexity | 4.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 2 | |
Classes | 29 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 29 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 142 | |
▷ Static methods | 3 | 2.11% |
▷ Public methods | 122 | 85.92% |
▷ Protected methods | 7 | 4.93% |
▷ Private methods | 13 | 9.15% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 12 | 85.71% |
▷ Class constants | 2 | 14.29% |
▷ Public constants | 2 | 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
PNG images were not found in this plugin