Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼144.38ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Extra Variation Images
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.01 | 38.48 ▼1.16 |
Dashboard /wp-admin | 3.07 ▲0.01 | 43.83 ▼2.21 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 48.10 ▼2.18 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 98.79 ▼571.98 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 36.20 ▼0.38 |
Server storage [IO: ▲1.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Extra Variation Images
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,712 ▲116 | 16.19 ▲0.58 | 8.90 ▼1.57 | 52.39 ▼0.03 |
Dashboard /wp-admin | 2,979 ▲45 | 5.94 ▼0.22 | 148.16 ▼5.56 | 125.30 ▲12.67 |
Posts /wp-admin/edit.php | 2,748 ▲9 | 2.69 ▲0.01 | 83.75 ▲10.85 | 103.02 ▲5.77 |
Add New Post /wp-admin/post-new.php | 1,689 ▲6 | 18.34 ▼0.40 | 415.04 ▲27.26 | 117.92 ▼0.71 |
Media Library /wp-admin/upload.php | 1,816 ▲9 | 5.00 ▼0.01 | 157.52 ▼11.59 | 128.57 ▼0.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully
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
Even though everything seems fine, this is not 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (screenshot1.png), #2 (screenshot2.png), #3 (screenshot3.png)
woo-extra-variation-images/woocommerce-extra-variation-images.php 92% from 13 tests
"WooCommerce Extra Variation Images" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("woo-extra-variation-images.php" instead of "woocommerce-extra-variation-images.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected442 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 92 | 125 | 310 |
JavaScript | 2 | 6 | 4 | 70 |
CSS | 2 | 3 | 0 | 62 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 7.25 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 2 | 14.29% |
▷ Public methods | 14 | 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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 1.10MB with 0.63MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 221.01KB | 75.43KB | ▼ 65.87% |
images/screenshot3.png | 192.07KB | 59.90KB | ▼ 68.81% |
images/screenshot1.png | 221.01KB | 75.43KB | ▼ 65.87% |
screenshot-2.png | 149.75KB | 84.77KB | ▼ 43.39% |
images/screenshot2.png | 149.75KB | 84.77KB | ▼ 43.39% |