Benchmarks
Plugin footprint 65% from 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: ▲1.91MB] [CPU: ▲12.92ms] Passed 4 tests
This is a short check of server-side resources used by Advanced Product Labels for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.49 ▲2.03 | 54.07 ▲5.89 |
Dashboard /wp-admin | 5.23 ▲1.93 | 71.63 ▲16.88 |
Posts /wp-admin/edit.php | 5.28 ▲1.92 | 68.04 ▲21.67 |
Add New Post /wp-admin/post-new.php | 7.75 ▲1.86 | 102.44 ▲7.25 |
Media Library /wp-admin/upload.php | 5.15 ▲1.93 | 59.66 ▲28.83 |
Server storage [IO: ▲2.73MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 192 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_berocket_termmeta |
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
br_filters_color_database |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
br-products_label-options |
widget_recent-comments |
berocket_admin_notices_rate_stars |
Browser metrics Passed 4 tests
An overview of browser requirements for Advanced Product Labels for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲46 | 14.24 ▼0.38 | 0.97 ▼0.76 | 44.27 ▼0.56 |
Dashboard /wp-admin | 2,228 ▲48 | 5.70 ▲0.05 | 87.60 ▼4.67 | 80.01 ▲37.76 |
Posts /wp-admin/edit.php | 2,142 ▲42 | 2.06 ▲0.03 | 37.13 ▼0.42 | 35.60 ▲1.03 |
Add New Post /wp-admin/post-new.php | 1,582 ▲56 | 23.12 ▼0.40 | 767.09 ▲131.07 | 62.13 ▲12.34 |
Media Library /wp-admin/upload.php | 1,436 ▲36 | 4.26 ▼0.00 | 100.09 ▼2.85 | 82.83 ▲39.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- wp_berocket_termmeta
- Zombie WordPress options were found after uninstall: 9 options
- berocket_admin_notices_rate_stars
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- berocket_key_activated_plugins
- br_filters_color_database
- widget_recent-posts
Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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 take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/advanced-product-labels-for-woocommerce/includes/theme_compatibility/storefront.php
- 41× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > 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/compatibility/product_preview.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: Class 'BeRocket_framework_addon_lib' not found in wp-content/plugins/advanced-product-labels-for-woocommerce/addons/ajax_load/ajax_load.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-product-labels-for-woocommerce/berocket/includes/admin_notices.php:797
- > PHP Fatal error
Uncaught Error: Class 'BeRocket_framework_addon_lib' not found in wp-content/plugins/advanced-product-labels-for-woocommerce/addons/gradients/gradients.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/advanced-product-labels-for-woocommerce/berocket/includes/updater.php:5
- > PHP Fatal error
Uncaught Error: Class 'BeRocket_framework_addon_lib' not found in wp-content/plugins/advanced-product-labels-for-woocommerce/addons/timers/timers.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: Class 'BeRocket_plugin_variations' not found in wp-content/plugins/advanced-product-labels-for-woocommerce/includes/better_position.php:3
- > PHP Notice
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 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (44 tag instead of maximum 10)
advanced-product-labels-for-woocommerce/woocommerce-advanced-products-labels.php 77% from 13 tests
The primary PHP file in "Advanced Product Labels for WooCommerce" version 1.2.5.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Domain Path: The domain path points to a folder that does not exist ("/languages/")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("advanced-product-labels-for-woocommerce.php" instead of "woocommerce-advanced-products-labels.php")
Code Analysis Passed 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
There were no executable files found in this plugin25,712 lines of code in 94 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 57 | 655 | 1,266 | 11,931 |
CSS | 18 | 2,685 | 146 | 10,947 |
JavaScript | 14 | 114 | 84 | 2,291 |
PO File | 2 | 194 | 216 | 430 |
JSX | 1 | 6 | 1 | 79 |
XML | 2 | 0 | 0 | 34 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 40.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 240.00 |
Average method complexity | 4.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 98.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 44 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 44 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 481 | |
▷ Static methods | 165 | 34.30% |
▷ Public methods | 479 | 99.58% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 0.42% |
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
PNG files should be compressed to save space and minimize bandwidth usage
77 PNG files occupy 0.38MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/templates/preview/css-23.png | 1.89KB | 1.48KB | ▼ 22.07% |
images/templates/preview/css-6.png | 1.65KB | 1.15KB | ▼ 30.37% |
images/templates/preview/css-28.png | 2.21KB | 1.68KB | ▼ 23.99% |
images/preview.png | 2.94KB | 2.36KB | ▼ 19.69% |
berocket/libraries/addons/default.png | 3.87KB | 2.63KB | ▼ 31.94% |