Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.17MB] [CPU: ▼6.11ms] Passed 4 tests
This is a short check of server-side resources used by TP Woocommerce Product Gallery
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.18 | 44.76 ▲3.46 |
Dashboard /wp-admin | 3.47 ▲0.17 | 46.98 ▼5.09 |
Posts /wp-admin/edit.php | 3.59 ▲0.22 | 47.79 ▼3.71 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 87.50 ▼17.67 |
Media Library /wp-admin/upload.php | 3.40 ▲0.16 | 35.47 ▲2.04 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 55 new files
Database: no new tables, 34 new options
New WordPress options |
---|
tpwpg_centerPadding |
tpwpg_lightbox_hideBarsDelay |
tpwpg_thumbnail |
tpwpg_dots |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
tpwpg_arrow_background |
tpwpg_lightbox_mode |
tpwpg_icons_color |
... |
Browser metrics Passed 4 tests
A check of browser resources used by TP Woocommerce Product Gallery
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,947 ▲186 | 13.54 ▼1.07 | 12.14 ▲10.42 | 41.78 ▼1.27 |
Dashboard /wp-admin | 2,218 ▲41 | 5.63 ▲0.00 | 94.00 ▼9.60 | 39.51 ▼5.76 |
Posts /wp-admin/edit.php | 2,123 ▲23 | 2.07 ▲0.04 | 37.45 ▼1.26 | 30.56 ▼7.27 |
Add New Post /wp-admin/post-new.php | 1,547 ▲21 | 23.92 ▲0.77 | 650.42 ▼23.84 | 54.49 ▲3.16 |
Media Library /wp-admin/upload.php | 1,420 ▲17 | 4.22 ▲0.01 | 103.15 ▲1.21 | 45.02 ▲4.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 34 options
- tpwpg_infinite
- tpwpg_lightbox_speed
- tpwpg_centerPadding
- tpwpg_speed
- tpwpg_vertical
- tpwpg_icons_background
- tpwpg_dots
- tpwpg_arrows
- theysaidso_admin_options
- tpwpg_focusOnSelect
- ...
Smoke tests 75% from 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/tp-woocommerce-product-gallery/public/partials/woocommerce-product-gallery-public-display.php
- > /wp-content/plugins/tp-woocommerce-product-gallery/admin/partials/woocommerce-product-gallery-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: product gallery slider, woocommerce product image slider, woocommerce product gallery carousel, woocommerce product gallery slider
tp-woocommerce-product-gallery/tp-woocommerce-product-gallery.php 92% from 13 tests
This is the main PHP file of "TP Woocommerce Product Gallery" version 1.1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.5" instead of "3.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin4,599 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 856 | 126 | 2,136 |
CSS | 8 | 98 | 56 | 1,274 |
PHP | 13 | 403 | 627 | 1,092 |
SVG | 4 | 1 | 0 | 97 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 12 | 27.27% |
▷ Public methods | 39 | 88.64% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 11.36% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/youtube-play.png | 5.06KB | 2.37KB | ▼ 53.04% |
admin/images/tp.png | 1.24KB | 0.26KB | ▼ 79.08% |
public/images/icon.png | 0.56KB | 0.30KB | ▼ 45.98% |
public/images/vimeo-play.png | 5.30KB | 1.56KB | ▼ 70.65% |
admin/images/jquery.minicolors.png | 67.02KB | 34.31KB | ▼ 48.80% |