Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.02MB] [CPU: ▼319.38ms] Passed 4 tests
This is a short check of server-side resources used by WooCommerce Admin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 65.06 ▲3.71 |
Dashboard /wp-admin | 3.41 ▲0.00 | 35.98 ▼3.79 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 44.82 ▲3.64 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 103.40 ▼1,277.31 |
Media Library /wp-admin/upload.php | 3.29 ▲0.00 | 32.49 ▼0.05 |
Server storage [IO: ▲12.76MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 828 new files
Database: 8 new tables, no new options
New tables |
---|
wp_wc_order_stats |
wp_wc_admin_note_actions |
wp_wc_category_lookup |
wp_wc_order_product_lookup |
wp_wc_customer_lookup |
wp_wc_admin_notes |
wp_wc_order_tax_lookup |
wp_wc_order_coupon_lookup |
Browser metrics Passed 4 tests
An overview of browser requirements for WooCommerce Admin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,789 ▲41 | 16.04 ▲0.20 | 6.73 ▼0.50 | 2.89 ▼0.45 |
Dashboard /wp-admin | 2,918 ▲31 | 6.55 ▲0.01 | 153.84 ▼29.87 | 176.40 ▼21.05 |
Posts /wp-admin/edit.php | 2,691 ▼1 | 3.42 ▼0.02 | 70.39 ▼4.81 | 161.05 ▼9.54 |
Add New Post /wp-admin/post-new.php | 1,635 ▼0 | 21.61 ▲5.43 | 544.99 ▼25.62 | 177.39 ▼1.13 |
Media Library /wp-admin/upload.php | 1,692 ▼8 | 5.73 ▲0.07 | 174.25 ▲4.33 | 224.09 ▼7.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 136× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/woocommerce-admin/vendor/composer/installers/src/Composer/Installers/ItopInstaller.php:4
- > PHP Fatal error
Trait 'Automattic\\WooCommerce\\Internal\\Admin\\CouponsMovedTrait' not found in wp-content/plugins/woocommerce-admin/src-internal/Admin/Marketing.php on line 17
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/woocommerce-admin/vendor/composer/installers/src/Composer/Installers/RedaxoInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/woocommerce-admin/vendor/composer/installers/src/Composer/Installers/KnownInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/woocommerce-admin/vendor/composer/installers/src/Composer/Installers/ReIndexInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/woocommerce-admin/vendor/composer/installers/src/Composer/Installers/SilverStripeInstaller.php:6
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/woocommerce-admin/vendor/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php:6
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installer\\LibraryInstaller' not found in wp-content/plugins/woocommerce-admin/vendor/composer/installers/src/Composer/Installers/Installer.php:14
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\WooCommerce\\Admin\\DataSourcePoller' not found in wp-content/plugins/woocommerce-admin/src/Features/PaymentGatewaySuggestions/PaymentGatewaySuggestionsDataSourcePoller.php:10
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/woocommerce-admin/vendor/composer/installers/src/Composer/Installers/KirbyInstaller.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
woocommerce-admin/woocommerce-admin.php 85% from 13 tests
The main PHP script in "WooCommerce Admin" version 3.3.1 is automatically included on every request by WordPress
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 175 characters long)
- Requires at least: Required version must match the one declared in readme.txt ("5.4.0" instead of "5.6")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin157,022 lines of code in 757 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 132 | 27,922 | 22,923 | 110,694 |
PHP | 519 | 8,764 | 21,631 | 43,797 |
CSS | 78 | 77 | 85 | 1,017 |
Markdown | 5 | 262 | 0 | 785 |
JSON | 3 | 0 | 0 | 385 |
SVG | 17 | 0 | 1 | 221 |
YAML | 3 | 31 | 3 | 123 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 9.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 162.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 54 | |
Interfaces | 8 | |
Traits | 9 | |
Classes | 485 | |
▷ Abstract classes | 6 | 1.24% |
▷ Concrete classes | 479 | 98.76% |
▷ Final classes | 2 | 0.42% |
Methods | 2,343 | |
▷ Static methods | 798 | 34.06% |
▷ Public methods | 1,814 | 77.42% |
▷ Protected methods | 388 | 16.56% |
▷ Private methods | 141 | 6.02% |
Functions | 107 | |
▷ Named functions | 43 | 40.19% |
▷ Anonymous functions | 64 | 59.81% |
Constants | 232 | |
▷ Global constants | 17 | 7.33% |
▷ Class constants | 215 | 92.67% |
▷ Public constants | 215 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
15 compressed PNG files occupy 0.08MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/onboarding/creativemail.png | 1.84KB | 1.95KB | 0.00% |
images/onboarding/mailpoet.png | 1.52KB | 1.48KB | ▼ 2.50% |
images/onboarding/eway.png | 8.77KB | 4.31KB | ▼ 50.82% |
images/admin_notes/dashboard-widget-setup.png | 3.53KB | 3.77KB | 0.00% |
images/onboarding/google-listings-and-ads.png | 1.74KB | 1.57KB | ▼ 9.44% |