Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼138.15ms] Passed 4 tests
Server-side resources used by Barcode Man for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.03 | 30.15 ▼0.70 |
Dashboard /wp-admin | 3.08 ▲0.03 | 43.64 ▼1.31 |
Posts /wp-admin/edit.php | 3.13 ▲0.03 | 41.69 ▼1.50 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 92.19 ▼548.84 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 31.37 ▼0.94 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Barcode Man for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,717 ▲121 | 16.01 ▲0.11 | 10.42 ▲0.07 | 52.15 ▼0.89 |
Dashboard /wp-admin | 2,975 ▲44 | 5.93 ▲0.01 | 132.93 ▼13.01 | 129.39 ▲16.30 |
Posts /wp-admin/edit.php | 2,752 ▲13 | 2.60 ▼0.12 | 65.07 ▲4.36 | 92.07 ▲2.96 |
Add New Post /wp-admin/post-new.php | 1,692 ▲192 | 18.69 ▲0.10 | 387.58 ▲13.39 | 109.01 ▲1.22 |
Media Library /wp-admin/upload.php | 1,763 ▼44 | 4.98 ▼0.08 | 123.98 ▼20.80 | 137.49 ▲12.28 |
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 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/barcodeman-for-woocommerce/includes/templates/footer.php
- > /wp-content/plugins/barcodeman-for-woocommerce/includes/templates/header.php
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/barcodeman-for-woocommerce/includes/templates/support.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/barcodeman-for-woocommerce/includes/templates/connect.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/barcodeman-for-woocommerce/barcode-man-for-woocommerce.php:18
- > PHP Notice
Undefined variable: tabs in wp-content/plugins/barcodeman-for-woocommerce/includes/templates/header.php on line 8
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/barcodeman-for-woocommerce/includes/templates/header.php on line 8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: address label, barcode, retail, product label, dymo...
barcodeman-for-woocommerce/barcode-man-for-woocommerce.php 77% from 13 tests
The primary PHP file in "Barcode Man for WooCommerce" version 1.0.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.3" instead of "3.0.0")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("barcodeman-for-woocommerce.php" instead of "barcode-man-for-woocommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected285 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 23 | 0 | 143 |
PHP | 7 | 64 | 41 | 142 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 2.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 6 | 40.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 6 | 54.55% |
▷ Class constants | 5 | 45.45% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.20MB with 0.13MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/connect.png | 193.90KB | 51.94KB | ▼ 73.21% |
assets/images/barcodeman-menu-icon.png | 6.79KB | 2.86KB | ▼ 57.82% |
assets/images/barcodeman-logo-footer.png | 6.92KB | 3.16KB | ▼ 54.41% |