Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.23MB] [CPU: ▼140.95ms] Passed 4 tests
Analyzing server-side resources used by SKU Label Changer For WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.05 ▲0.22 | 31.11 ▲7.06 |
Dashboard /wp-admin | 3.34 ▲0.28 | 37.71 ▲0.81 |
Posts /wp-admin/edit.php | 3.39 ▲0.28 | 48.05 ▲4.38 |
Add New Post /wp-admin/post-new.php | 5.64 ▲0.20 | 81.12 ▼571.28 |
Media Library /wp-admin/upload.php | 3.22 ▲0.22 | 27.29 ▲2.31 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
SKU Label Changer For WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,764 ▲163 | 15.24 ▲0.08 | 5.45 ▲0.01 | 80.75 ▼2.79 |
Dashboard /wp-admin | 3,005 ▲109 | 6.18 ▲0.01 | 133.91 ▲0.10 | 181.40 ▼1.54 |
Posts /wp-admin/edit.php | 2,812 ▲75 | 3.37 ▲0.14 | 63.31 ▼1.72 | 142.30 ▲1.95 |
Add New Post /wp-admin/post-new.php | 3,861 ▼63 | 19.36 ▼0.01 | 462.37 ▼62.45 | 159.60 ▼2.57 |
Media Library /wp-admin/upload.php | 1,824 ▲75 | 5.54 ▲0.02 | 144.78 ▼5.62 | 186.60 ▲0.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function Appsero\\plugin_basename() in wp-content/plugins/woo-sku-label-changer/vendor/appsero/client/src/Client.php:153
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-sku-label-changer/vendor/appsero/client/src/Client.php on line 152
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: mpn, upc, woocommerce, sku, sku to isbn...
woo-sku-label-changer/main.php 69% from 13 tests
The main file in "SKU Label Changer For WooCommerce" v. 2.2 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: Required version must be the same as the one declared in readme.txt ("3.0.1" instead of "2.2")
- Description: Please don't use more than 140 characters for the plugin description (currently 148 characters long)
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("woo-sku-label-changer.php" instead of "main.php")
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
Success! There were no dangerous files found in this plugin2,198 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 462 | 753 | 1,819 |
Markdown | 1 | 65 | 0 | 179 |
JavaScript | 2 | 26 | 17 | 128 |
JSON | 3 | 0 | 0 | 72 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 31.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 2.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 110 | |
▷ Static methods | 4 | 3.64% |
▷ Public methods | 75 | 68.18% |
▷ Protected methods | 6 | 5.45% |
▷ Private methods | 29 | 26.36% |
Functions | 9 | |
▷ Named functions | 8 | 88.89% |
▷ Anonymous functions | 1 | 11.11% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.65MB with 0.34MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 59.01KB | 29.38KB | ▼ 50.21% |
assets/banner-772x250.png | 19.45KB | 8.89KB | ▼ 54.30% |
assets/screenshot-2.png | 257.26KB | 118.60KB | ▼ 53.90% |
assets/icon-256x256.png | 1.66KB | 0.77KB | ▼ 53.38% |
assets/screenshot-3.png | 326.97KB | 162.07KB | ▼ 50.43% |