Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/simple-barcode-generator/barcode.php+21
Methods with the same name as their class will not be constructors in a future version of PHP; barcode has a deprecated constructor
Server metrics [RAM: ▼1.94MB] [CPU: ▼61.22ms] Passed 4 tests
This is a short check of server-side resources used by Simple BarCode generator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 4.42 ▼42.66 |
Dashboard /wp-admin | 2.08 ▼1.27 | 5.65 ▼60.44 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 7.17 ▼41.76 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 5.47 ▼100.03 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 6.20 ▼34.84 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_widget-barcode |
can_compress_scripts |
Browser metrics Passed 4 tests
Simple BarCode generator: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲45 | 14.29 ▼0.01 | 1.74 ▼0.06 | 42.04 ▼0.74 |
Dashboard /wp-admin | 2,195 ▲15 | 5.64 ▲0.00 | 84.81 ▼10.81 | 39.71 ▼0.89 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.17 ▲0.15 | 37.29 ▲0.52 | 33.75 ▼2.41 |
Add New Post /wp-admin/post-new.php | 1,554 ▲22 | 18.25 ▼4.91 | 620.99 ▼76.45 | 55.65 ▲1.20 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.16 ▼0.06 | 119.35 ▲22.05 | 53.83 ▲8.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/simple-barcode-generator/barcode.php+21
Methods with the same name as their class will not be constructors in a future version of PHP; barcode has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- widget_widget-barcode
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-barcode-generator/barcode.php:10
- > 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 on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please add an image for screenshot #1 (screenshot-barcode.png)
simple-barcode-generator/barcode.php 92% from 13 tests
The main PHP script in "Simple BarCode generator" version 1.0 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-barcode-generator.php" instead of "barcode.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin68 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 6 | 7 | 65 |
JavaScript | 1 | 0 | 0 | 3 |
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.00 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ISBN.png | 70.11KB | 25.27KB | ▼ 63.95% |
images/screenshot-barcode.png | 37.66KB | 10.40KB | ▼ 72.38% |