Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method HP_Barcode::activate_hp_barcode_qr_lettersize() should not be called statically
Server metrics [RAM: ▲0.00MB] [CPU: ▼10.37ms] Passed 4 tests
Server-side resources used by Barcode Letter-Size
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.53 ▼1.31 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.38 ▼2.97 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 53.32 ▼0.30 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.23 ▼24.52 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.81 ▼12.68 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 13 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_woo_bar1 |
wp_woo_bar2 |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Barcode Letter-Size
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.28 ▼0.47 | 2.07 ▼0.02 | 41.29 ▼3.10 |
Dashboard /wp-admin | 2,195 ▲15 | 5.59 ▼0.10 | 88.21 ▼4.36 | 38.50 ▼6.38 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.04 ▲0.03 | 38.95 ▼4.24 | 37.23 ▼0.83 |
Add New Post /wp-admin/post-new.php | 1,545 ▼0 | 22.75 ▼0.42 | 650.59 ▲36.60 | 47.31 ▼5.90 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.20 ▼0.01 | 96.92 ▼14.99 | 43.27 ▼5.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method HP_Barcode::uninstall_hp_barcode_qr_lettersize() should not be called statically
- The uninstall procedure failed, leaving 2 tables in the database
- wp_woo_bar1
- wp_woo_bar2
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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 need to be fixed:
- Donate link: Invalid URI found ("N/A")
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4 in barcode-lettersize/assets to your readme.txt
barcode-lettersize/hp-barcode-qr-lettersize.php 92% from 13 tests
"Barcode Letter-Size" version 1.3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("barcode-lettersize.php" instead of "hp-barcode-qr-lettersize.php")
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
Success! There were no dangerous files found in this plugin4,118 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 179 | 175 | 3,464 |
JavaScript | 4 | 190 | 222 | 632 |
CSS | 1 | 19 | 1 | 22 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 279.50 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 543.00 |
Average method complexity | 7.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 80 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 16.25% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 67 | 83.75% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icon.png | 20.10KB | 0.50KB | ▼ 97.49% |