Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.30MB] [CPU: ▼294.81ms] Passed 4 tests
An overview of server-side resources used by Advanced Product Labels for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.95 ▲0.83 | 66.93 ▲49.46 |
Dashboard /wp-admin | 3.70 ▲0.30 | 36.23 ▲3.55 |
Posts /wp-admin/edit.php | 3.93 ▲0.29 | 43.29 ▲7.17 |
Add New Post /wp-admin/post-new.php | 7.23 ▲0.26 | 95.64 ▼1,192.84 |
Media Library /wp-admin/upload.php | 3.65 ▲0.36 | 27.54 ▲2.87 |
Server storage [IO: ▲2.79MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 177 new files
Database: 1 new table, 3 new options
New tables |
---|
wp_berocket_termmeta |
New WordPress options |
---|
br_filters_color_database |
berocket_admin_notices_rate_stars |
br-products_label-options |
Browser metrics Passed 4 tests
A check of browser resources used by Advanced Product Labels for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,802 ▲79 | 15.55 ▼0.09 | 5.50 ▼0.26 | 2.24 ▼0.31 |
Dashboard /wp-admin | 2,936 ▲75 | 6.06 ▼0.05 | 125.96 ▼10.17 | 173.73 ▲13.66 |
Posts /wp-admin/edit.php | 2,733 ▲45 | 3.24 ▲0.01 | 64.41 ▼0.51 | 138.12 ▼3.95 |
Add New Post /wp-admin/post-new.php | 1,696 ▲35 | 16.86 ▲0.90 | 404.21 ▼9.37 | 197.03 ▲39.04 |
Media Library /wp-admin/upload.php | 1,737 ▲42 | 5.69 ▲0.16 | 124.86 ▼18.92 | 222.12 ▲31.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie tables detected upon uninstall: 1 table
- wp_berocket_termmeta
- Zombie WordPress options detected upon uninstall: 3 options
- berocket_key_activated_plugins
- br_filters_color_database
- berocket_admin_notices_rate_stars
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/advanced-product-labels-for-woocommerce/includes/theme_compatibility/storefront.php
- 37× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/advanced-product-labels-for-woocommerce/includes/svg/css-9.php:3
- > PHP Fatal error
Uncaught Error: Class 'BeRocket_framework_addon_lib' not found in wp-content/plugins/advanced-product-labels-for-woocommerce/addons/labels_for_variations/labels_for_variations.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-product-labels-for-woocommerce/berocket/libraries/popup.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-product-labels-for-woocommerce/berocket/libraries/tippy.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-product-labels-for-woocommerce/berocket/sale/sale.php:4
- > PHP Fatal error
Uncaught Error: Class 'BeRocket_framework_addon_lib' not found in wp-content/plugins/advanced-product-labels-for-woocommerce/addons/advanced_content/advanced_content.php:2
- > PHP Notice
Undefined variable: title in wp-content/plugins/advanced-product-labels-for-woocommerce/berocket/templates/widget.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-product-labels-for-woocommerce/includes/style_generate.php:4
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/advanced-product-labels-for-woocommerce/berocket/templates/settings_footer.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/advanced-product-labels-for-woocommerce/berocket/libraries/tutorial.php:10
- > 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 issues were found
Optimizations
Plugin configuration 86% 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
Attributes that require attention:
- Tags: Too many tags (44 tag instead of maximum 10); only the first 5 tags are used in your directory listing
advanced-product-labels-for-woocommerce/woocommerce-advanced-products-labels.php 77% from 13 tests
The main file in "Advanced Product Labels for WooCommerce" v. 1.2.3.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Text Domain: Please use dashes and lowercase characters for text domains
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("advanced-product-labels-for-woocommerce.php" instead of "woocommerce-advanced-products-labels.php")
- Domain Path: The domain path is invalid: folder "/languages/" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin24,931 lines of code in 80 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 52 | 640 | 1,324 | 11,388 |
CSS | 16 | 2,684 | 146 | 10,913 |
JavaScript | 8 | 110 | 81 | 2,166 |
PO File | 2 | 194 | 216 | 430 |
XML | 2 | 0 | 0 | 34 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 41.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 240.00 |
Average method complexity | 4.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 98.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 40 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 40 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 453 | |
▷ Static methods | 159 | 35.10% |
▷ Public methods | 451 | 99.56% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 0.44% |
Functions | 33 | |
▷ Named functions | 33 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
76 PNG files occupy 0.38MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/templates/preview/css-11.png | 1.34KB | 0.99KB | ▼ 26.07% |
images/img-placeholder.png | 7.59KB | 2.93KB | ▼ 61.41% |
images/templates/preview/css-10.png | 1.48KB | 1.03KB | ▼ 30.59% |
images/templates/preview/css-23.png | 1.89KB | 1.48KB | ▼ 22.07% |
images/templates/preview/css-21.png | 1.92KB | 1.47KB | ▼ 23.63% |