Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼256.18ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Thumbnail Input Quantities
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 47.39 ▲26.12 |
Dashboard /wp-admin | 3.06 ▲0.01 | 84.52 ▲44.27 |
Posts /wp-admin/edit.php | 3.11 ▲0.01 | 46.19 ▲3.48 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 94.95 ▼1,040.65 |
Media Library /wp-admin/upload.php | 3.00 ▼0.00 | 34.13 ▼13.65 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Thumbnail Input Quantities
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,809 ▲203 | 15.88 ▲0.43 | 14.84 ▲7.11 | 59.49 ▲13.85 |
Dashboard /wp-admin | 2,962 ▲112 | 5.95 ▲0.15 | 164.80 ▲32.06 | 123.99 ▲20.97 |
Posts /wp-admin/edit.php | 2,706 ▼0 | 2.68 ▼0.02 | 80.54 ▲14.97 | 93.58 ▼5.37 |
Add New Post /wp-admin/post-new.php | 1,851 ▲195 | 17.48 ▲1.81 | 366.22 ▼85.33 | 114.09 ▼15.51 |
Media Library /wp-admin/upload.php | 1,772 ▼0 | 4.99 ▼0.03 | 154.73 ▼34.76 | 118.81 ▼14.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
The SRP test was a success
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 94% from 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
These attributes need to be fixed:
- Screenshots: Add an image for screenshot #1 (screenshot-1.png)
woocommerce-thumbnail-input-quantities/woocommerce-thumbnail-input-quantity.php 85% from 13 tests
The entry point to "WooCommerce Thumbnail Input Quantities" version 1.1.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 193 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("woocommerce-thumbnail-input-quantities.php" instead of "woocommerce-thumbnail-input-quantity.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 plugin121 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 42 | 58 | 98 |
JavaScript | 1 | 11 | 6 | 23 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 4.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 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 | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 75.86KB | 31.35KB | ▼ 58.67% |