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
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼144.19ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Images Product Tab
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.01 | 42.06 ▼1.37 |
Dashboard /wp-admin | 3.07 ▲0.01 | 52.09 ▲1.88 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 49.95 ▲0.05 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 93.28 ▼577.31 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 38.02 ▲2.90 |
Server storage [IO: ▲0.54MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 49 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce Images Product Tab
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲131 | 15.98 ▲0.00 | 10.40 ▲0.43 | 48.62 ▲1.47 |
Dashboard /wp-admin | 2,970 ▲39 | 5.87 ▼0.12 | 177.51 ▲18.87 | 108.19 ▼3.31 |
Posts /wp-admin/edit.php | 2,736 ▼3 | 2.72 ▲0.00 | 67.61 ▼11.26 | 91.53 ▲1.61 |
Add New Post /wp-admin/post-new.php | 1,683 ▲68 | 18.63 ▼2.88 | 402.86 ▲91.91 | 119.50 ▲6.20 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.04 ▲0.00 | 168.02 ▲8.27 | 113.89 ▼6.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/woo-images-product-tab/views/premium.php:112
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: Screenshot #1 (Add a new tab to the product page to display all the product images.) image missing
woo-images-product-tab/woocommerce-images-product-tab.php 85% from 13 tests
The main PHP script in "WooCommerce Images Product Tab" version 3.0.5 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 ("woo-images-product-tab.php" instead of "woocommerce-images-product-tab.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,657 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 507 | 540 | 1,443 |
PO File | 3 | 46 | 98 | 150 |
Markdown | 1 | 33 | 0 | 40 |
CSS | 2 | 2 | 8 | 13 |
JavaScript | 3 | 8 | 0 | 11 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 28.57 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 3.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 67 | |
▷ Static methods | 4 | 5.97% |
▷ Public methods | 62 | 92.54% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 7.46% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.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
PNG files should be compressed to save space and minimize bandwidth usage
19 PNG files occupy 0.40MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/upgrade.png | 2.72KB | 1.86KB | ▼ 31.68% |
assets/images/screenshot-1.png | 71.00KB | 26.38KB | ▼ 62.85% |
assets/images/05-icon.png | 1.66KB | 0.89KB | ▼ 46.18% |
assets/images/05-bg.png | 5.63KB | 2.74KB | ▼ 51.28% |
assets/images/04-bg.png | 6.93KB | 3.78KB | ▼ 45.46% |