Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.80ms] Passed 4 tests
A check of server-side resources used by Product SKU Generator for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.01 | 34.16 ▼4.96 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.99 ▼6.33 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.02 ▲3.46 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.61 ▲1.10 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.51 ▼0.99 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Product SKU Generator for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲77 | 13.23 ▼1.32 | 1.72 ▼0.13 | 37.66 ▼8.88 |
Dashboard /wp-admin | 2,215 ▲33 | 4.85 ▼1.03 | 106.75 ▲2.18 | 42.69 ▼0.28 |
Posts /wp-admin/edit.php | 2,100 ▲8 | 1.98 ▼0.02 | 40.72 ▼0.84 | 38.79 ▲2.34 |
Add New Post /wp-admin/post-new.php | 1,540 ▲20 | 23.15 ▼0.04 | 589.54 ▼94.61 | 58.28 ▼4.26 |
Media Library /wp-admin/upload.php | 1,400 ▲12 | 4.31 ▲0.09 | 97.62 ▼12.43 | 42.75 ▼5.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: sku generator, product sku, woocommerce, sku
woocommerce-product-sku-generator/woocommerce-product-sku-generator.php 92% from 13 tests
The main file in "Product SKU Generator for WooCommerce" v. 2.5.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Requires at least: The required version number did not match the one declared in readme.txt ("5.6" instead of "3.9.4")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected655 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 179 | 280 | 354 |
SVG | 1 | 0 | 1 | 301 |
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.51 |
Average class complexity | 57.00 |
▷ Minimum class complexity | 57.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 3.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 25 | |
▷ Static methods | 3 | 12.00% |
▷ Public methods | 17 | 68.00% |
▷ Protected methods | 5 | 20.00% |
▷ Private methods | 3 | 12.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.37MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-1544x500.png | 106.40KB | 46.41KB | ▼ 56.38% |
assets/screenshot-4.png | 43.93KB | 13.34KB | ▼ 69.62% |
assets/screenshot-3.png | 44.44KB | 13.67KB | ▼ 69.24% |
assets/banner-772x250.png | 51.80KB | 22.30KB | ▼ 56.95% |
assets/screenshot-5.png | 41.20KB | 10.69KB | ▼ 74.04% |