Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲1.54MB] [CPU: ▲22.14ms] Passed 4 tests
An overview of server-side resources used by Barcode Generator for WooCommerce - Show barcodes on products, orders, invoices and other pages
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.74 ▲1.28 | 57.04 ▲15.25 |
Dashboard /wp-admin | 4.94 ▲1.60 | 77.97 ▲16.04 |
Posts /wp-admin/edit.php | 4.94 ▲1.59 | 73.27 ▲16.18 |
Add New Post /wp-admin/post-new.php | 9.21 ▲3.32 | 151.57 ▲44.64 |
Media Library /wp-admin/upload.php | 4.94 ▲1.71 | 76.48 ▲41.10 |
Settings /wp-admin/admin.php?page=wpbcu-digital-settings | 4.94 | 63.54 |
Barcode-Generator Page /wp-admin/admin.php?page=wpbcu-digital-generator-print | 4.94 | 57.99 |
Support /wp-admin/admin.php?page=wpbcu-digital-generator-support | 4.94 | 59.67 |
Server storage [IO: ▲4.78MB] [DB: ▲0.02MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 317 new files
Database: 9 new tables, 7 new options
New tables |
---|
wp_barcode_gen2_shortcodes |
wp_barcode_gen2_templates |
wp_barcode_gen2_codes |
wp_barcode_gen2_dimension |
wp_barcode_gen2_template_to_user |
wp_barcode_gen2_files |
wp_barcode_gen2_user_settings |
wp_barcode_gen2_fields_matching |
wp_barcode_gen2_codes_files |
New WordPress options |
---|
widget_theysaidso_widget |
active-digital-barcodes-version |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Barcode Generator for WooCommerce - Show barcodes on products, orders, invoices and other pages
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,868 ▲122 | 13.78 ▼0.40 | 1.90 ▲0.07 | 41.73 ▲0.02 |
Dashboard /wp-admin | 2,262 ▲59 | 5.03 ▲0.15 | 104.07 ▲2.34 | 71.62 ▲27.90 |
Posts /wp-admin/edit.php | 2,153 ▲50 | 2.49 ▲0.44 | 33.77 ▼10.57 | 29.30 ▼7.64 |
Add New Post /wp-admin/post-new.php | 6,488 ▲4,955 | 29.58 ▲6.08 | 1,026.47 ▲346.21 | 42.31 ▼29.02 |
Media Library /wp-admin/upload.php | 1,447 ▲47 | 4.33 ▲0.12 | 121.54 ▲12.34 | 74.34 ▲28.49 |
Settings /wp-admin/admin.php?page=wpbcu-digital-settings | 3,362 | 7.39 | 227.49 | 38.30 |
Barcode-Generator Page /wp-admin/admin.php?page=wpbcu-digital-generator-print | 830 | 1.83 | 25.48 | 17.18 |
Support /wp-admin/admin.php?page=wpbcu-digital-generator-support | 830 | 1.84 | 25.07 | 22.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure failed, leaving 9 tables in the database
- wp_barcode_gen2_template_to_user
- wp_barcode_gen2_codes
- wp_barcode_gen2_codes_files
- wp_barcode_gen2_templates
- wp_barcode_gen2_user_settings
- wp_barcode_gen2_dimension
- wp_barcode_gen2_shortcodes
- wp_barcode_gen2_fields_matching
- wp_barcode_gen2_files
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_theysaidso_widget
- active-digital-barcodes-version
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 25% 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 | 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 fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/embedding-barcodes-into-product-pages-and-orders/templates/products/variable-barcode-popup.php
- > /wp-content/plugins/embedding-barcodes-into-product-pages-and-orders/templates/frontend/app.php
- 140× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Com\\Tecnick\\Barcode\\Type\\Linear' not found in wp-content/plugins/embedding-barcodes-into-product-pages-and-orders/lib/tecnickcom/tc-lib-barcode/src/Type/Linear/StandardTwoOfFiveCheck.php:7
- > PHP Fatal error
Uncaught Error: Class 'Com\\Tecnick\\Barcode\\Type\\Square\\QrCode\\Mask' not found in wp-content/plugins/embedding-barcodes-into-product-pages-and-orders/lib/tecnickcom/tc-lib-barcode/src/Type/Square/QrCode/Init.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function do_shortcode() in wp-content/plugins/embedding-barcodes-into-product-pages-and-orders/templates/orders/preview.php:5
- > PHP Fatal error
Uncaught Error: Class 'Com\\Tecnick\\Barcode\\Type\\Linear\\CodeThreeNineExtCheck' not found in wp-content/plugins/embedding-barcodes-into-product-pages-and-orders/lib/tecnickcom/tc-lib-barcode/src/Type/Linear/CodeThreeNineExt.php:7
- > PHP Fatal error
Uncaught Error: Class 'Salla\\ZATCA\\Tag' not found in wp-content/plugins/embedding-barcodes-into-product-pages-and-orders/lib/salla/zatca/src/Tags/InvoiceDate.php:7
- > PHP Fatal error
Uncaught Error: Class 'Com\\Tecnick\\Barcode\\Type\\Square' not found in wp-content/plugins/embedding-barcodes-into-product-pages-and-orders/lib/tecnickcom/tc-lib-barcode/src/Type/Square/Datamatrix.php:9
- > PHP Fatal error
Uncaught Error: Class 'SVG\odes\\SVGNodeContainer' not found in wp-content/plugins/embedding-barcodes-into-product-pages-and-orders/lib/meyfa/php-svg/src/Nodes/Shapes/SVGPolygonalShape.php:7
- > PHP Fatal error
Uncaught Error: Class 'SVG\odes\\SVGNodeContainer' not found in wp-content/plugins/embedding-barcodes-into-product-pages-and-orders/lib/meyfa/php-svg/src/Nodes/Embedded/SVGImage.php:10
- > PHP Fatal error
Uncaught Error: Class 'SVG\odes\\SVGNodeContainer' not found in wp-content/plugins/embedding-barcodes-into-product-pages-and-orders/lib/meyfa/php-svg/src/Nodes/Structures/SVGStyle.php:8
- > PHP Fatal error
Uncaught Error: Class 'Com\\Tecnick\\Barcode\\Type\\Linear' not found in wp-content/plugins/embedding-barcodes-into-product-pages-and-orders/lib/tecnickcom/tc-lib-barcode/src/Type/Linear/CodeThreeNineExtCheck.php:7
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=wpbcu-digital-settings
- > Console-api (severe) in unknown
console-api 73:12050 TypeError: t.find is not a functionat Object. (:1:401740)at ai (:1:112703)at o.created (:1:376699)at rt (:74:11687)at Fn (:74:29249)at e._init (:74:34602)at new o (:74:35862)at sn (:74:21799)at init (:74:20665)at m (:74:44578)
- > GET request to /wp-admin/admin.php?page=wpbcu-digital-settings
- > Console-api (severe) in unknown
console-api 0:438989 "Cannot read properties of undefined (reading 'indexOf')"
- > GET request to /wp-admin/admin.php?page=wpbcu-digital-settings
- > Network (severe)
d-barcodes/WyJkZW1vIiwiMDEyMzQ1NjciLCIkNzk5Ljk5IiwiMTkwMTk4NDU3MzI1IiwiQ29tcHV0ZXJzICYgRWxlY3Ryb25pY3MiLDEsIkMxMjgiLDIyMCw2NSwiZHVtbXkiLCIiXQ==.png2 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=wpbcu-digital-settings
- > Network (severe)
d-barcodes/WyJkZW1vIiwiQXBwbGUgaVBob25lIFggNjRHYiIsIiQ3OTkuOTkiLCIxOTAxOTg0NTczMjUiLCJDb21wdXRlcnMgJiBFbGVjdHJvbmljcyIsMSwiQzEyOCIsIjIyMCIsIjY1IiwiZHVtbXkiLCIwIl0=.png2 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=wpbcu-digital-settings
- > Network (severe)
d-barcodes/WyJkZW1vIiwiTGluZSAxIiwiTGluZSAyIiwiTGluZSAzIiwiTGluZSA0IixudWxsLCJRUkNPREUiLCIwIiwiMCIsImR1bW15IiwiIl0=.png2 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=wpbcu-digital-settings
- > Network (severe)
d-barcodes/WyJkZW1vIiwiTGluZSAxIChza3UpIiwiTGluZSAyIChwcmljZSkiLCJMaW5lIDMgKHNrdSkiLCJMaW5lIDQgKHdjIGNhdGVnb3J5KSIsMSwiQzEyOCIsIjAiLCIwIiwiZHVtbXkiLCIiXQ==.png2 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=wpbcu-digital-settings
- > Network (severe)
https://www.ukrsolution.com/support-version-checker?p_id=ef54e760210d8937045c33643b91eded&cms_version=0&ext_version=2.0.1&f=ZUchDCYQQizVBaqErpAemcepRhpmWy&&callback=jQuery370007025206140768625_1697202408733&_=1697202408734 - Failed to load resource: the server responded with a status of 400 ()
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: There are too many tags (16 tag instead of maximum 10)
embedding-barcodes-into-product-pages-and-orders/barcode_generator.php 69% from 13 tests
The main file in "Barcode Generator for WooCommerce - Show barcodes on products, orders, invoices and other pages" v. 2.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("embedding-barcodes-into-product-pages-and-orders.php" instead of "barcode_generator.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.0.1" instead of "4.0.0")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Plugin Name: Please don't use more than 70 characters for the plugin name (currently 73 characters long)
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
Success! There were no dangerous files found in this plugin40,893 lines of code in 282 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 240 | 4,181 | 15 | 27,218 |
JavaScript | 20 | 1,403 | 240 | 11,086 |
PO File | 1 | 295 | 320 | 845 |
HTML | 10 | 126 | 1 | 749 |
CSS | 5 | 56 | 0 | 412 |
SVG | 3 | 0 | 0 | 284 |
JSON | 2 | 0 | 0 | 191 |
Markdown | 1 | 55 | 0 | 108 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 17.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 543.00 |
Average method complexity | 3.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 62.00 |
Code structure | ||
---|---|---|
Namespaces | 44 | |
Interfaces | 4 | |
Traits | 1 | |
Classes | 202 | |
▷ Abstract classes | 31 | 15.35% |
▷ Concrete classes | 171 | 84.65% |
▷ Final classes | 12 | 7.02% |
Methods | 1,230 | |
▷ Static methods | 97 | 7.89% |
▷ Public methods | 691 | 56.18% |
▷ Protected methods | 353 | 28.70% |
▷ Private methods | 186 | 15.12% |
Functions | 41 | |
▷ Named functions | 17 | 41.46% |
▷ Anonymous functions | 24 | 58.54% |
Constants | 96 | |
▷ Global constants | 6 | 6.25% |
▷ Class constants | 90 | 93.75% |
▷ Public constants | 84 | 93.33% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/no-gallery-image.png | 2.52KB | 1.14KB | ▼ 54.72% |
assets/img/wooshop-logo.png | 6.06KB | 2.68KB | ▼ 55.76% |
assets/chosen/css/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
assets/img/icon-roll.png | 3.62KB | 2.15KB | ▼ 40.67% |
assets/img/icon-letter.png | 2.37KB | 1.08KB | ▼ 54.64% |