Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▼284.24ms] Passed 4 tests
An overview of server-side resources used by Product barcode generator - Automatically generates barcodes for WooCommerce products
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.28 | 52.64 ▼0.06 |
Dashboard /wp-admin | 3.66 ▲0.25 | 34.50 ▲2.41 |
Posts /wp-admin/edit.php | 3.89 ▲0.25 | 37.76 ▲1.67 |
Add New Post /wp-admin/post-new.php | 7.13 ▲0.16 | 99.09 ▼1,139.43 |
Media Library /wp-admin/upload.php | 3.55 ▲0.25 | 24.25 ▲0.87 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 34 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Product barcode generator - Automatically generates barcodes for WooCommerce products: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,823 ▲81 | 16.34 ▲0.35 | 6.45 ▲0.74 | 2.05 ▼0.23 |
Dashboard /wp-admin | 2,928 ▲70 | 6.93 ▲0.76 | 124.01 ▼11.76 | 162.51 ▲0.47 |
Posts /wp-admin/edit.php | 2,729 ▲41 | 3.28 ▲0.04 | 68.37 ▲4.12 | 141.29 ▲5.03 |
Add New Post /wp-admin/post-new.php | 1,697 ▲36 | 18.37 ▲1.53 | 404.23 ▼31.31 | 159.97 ▲3.36 |
Media Library /wp-admin/upload.php | 1,734 ▲33 | 6.13 ▲0.64 | 125.35 ▼16.11 | 179.70 ▼11.72 |
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
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 26× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/product-barcode-generator/includes/class-pbar-metaInfo.php:13
- > PHP Notice
Undefined variable: pbarcode_format in wp-content/plugins/product-barcode-generator/admin/extenstion/preview-extntion.php on line 19
- > PHP Notice
Undefined variable: pbarcode_format in wp-content/plugins/product-barcode-generator/admin/extenstion/preview-extntion.php on line 19
- > PHP Warning
include(PBARGENERATOR_PATH/admin/extenstion/datapbarcodes.php): failed to open stream: No such file or directory in wp-content/plugins/product-barcode-generator/admin/extenstion/preview-extntion.php on line 3
- > PHP Notice
Undefined variable: pbarcode_format in wp-content/plugins/product-barcode-generator/admin/extenstion/preview-extntion.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/product-barcode-generator/admin/extenstion/preview-extntion.php:42
- > PHP Notice
Undefined variable: pbarcode_format in wp-content/plugins/product-barcode-generator/admin/extenstion/preview-extntion.php on line 19
- > PHP Notice
Undefined variable: pbarcode_format in wp-content/plugins/product-barcode-generator/admin/extenstion/preview-extntion.php on line 19
- > PHP Notice
Undefined variable: pbarcode_format in wp-content/plugins/product-barcode-generator/admin/extenstion/preview-extntion.php on line 19
- > PHP Notice
Undefined variable: pbarcode_inline in wp-content/plugins/product-barcode-generator/admin/extenstion/preview-extntion.php on line 42
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Requires at least: The plugin version is formatted incorrectly
product-barcode-generator/product-barcode-generator.php Passed 13 tests
The principal PHP file in "Product barcode generator - Automatically generates barcodes for WooCommerce products" v. 1.2.2 is loaded by WordPress automatically on each request
98 characters long description:
Dynamic barcode Generator Plugin. It is created based on product SKU, product ID, or product title
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
Everything looks great! No dangerous files found in this plugin2,281 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 165 | 5 | 1,121 |
PHP | 14 | 410 | 448 | 1,029 |
JavaScript | 7 | 34 | 24 | 131 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 19.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 114.00 |
Average method complexity | 3.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 2 | 4.00% |
▷ Public methods | 46 | 92.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 8.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.26MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/sdsdsdsds-min.png | 4.13KB | 3.30KB | ▼ 20.09% |
admin/img/download.png | 70.57KB | 69.99KB | ▼ 0.82% |
admin/img/admin.png | 1.58KB | 0.71KB | ▼ 55.08% |
admin/img/print.png | 52.95KB | 52.25KB | ▼ 1.32% |
admin/img/loh.png | 4.34KB | 1.76KB | ▼ 59.36% |