Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.52ms] Passed 4 tests
This is a short check of server-side resources used by Product Image Watermark for Woo
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.74 ▼5.00 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.24 ▼5.70 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.37 ▼1.92 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 94.63 ▲5.39 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.63 ▲2.55 |
Product Image Watermark for Woo /wp-admin/admin.php?page=product-image-watermark-for-woo | 3.00 | 29.39 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 3.00 | 19.36 |
Server storage [IO: ▲4.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 193 new files
Database: no new tables, 10 new options
New WordPress options |
---|
fs_gdpr |
fs_debug_mode |
widget_recent-comments |
can_compress_scripts |
fs_active_plugins |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
fs_accounts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Product Image Watermark for Woo
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.28 ▼0.95 | 1.80 ▲0.06 | 43.60 ▼1.23 |
Dashboard /wp-admin | 2,206 ▲15 | 5.89 ▲1.03 | 100.01 ▼4.13 | 42.00 ▼3.41 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.05 ▲0.04 | 39.45 ▲3.51 | 38.12 ▲4.74 |
Add New Post /wp-admin/post-new.php | 1,533 ▼3 | 23.08 ▼0.05 | 636.01 ▼201.12 | 50.50 ▼8.09 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.27 ▲0.06 | 102.05 ▼16.56 | 44.85 ▼5.88 |
Product Image Watermark for Woo /wp-admin/admin.php?page=product-image-watermark-for-woo | 28 | 0.44 | 0.10 | 3.56 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 28 | 0.44 | 0.09 | 3.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 10 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- fs_active_plugins
- db_upgraded
- fs_debug_mode
- widget_recent-comments
- fs_gdpr
- theysaidso_admin_options
- fs_accounts
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 Passed 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
Congratulations! This plugin passed the SRP test
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=product-image-watermark-for-woo
- > Network (severe)
wp-admin/admin.php?page=product-image-watermark-for-woo - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=freemius
- > Network (severe)
wp-admin/admin.php?page=freemius - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Tags: You are using too many tags: 34 tag instead of maximum 10
- Screenshots: Screenshot #1 (General settings) image missing
product-image-watermark-for-woo/product-image-watermark-for-woo.php 77% from 13 tests
The principal PHP file in "Product Image Watermark for Woo" v. 1.0.4 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Domain Path: The domain path must begin with a forward slash character ("/languages")
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin47,002 lines of code in 147 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 116 | 7,722 | 16,499 | 31,088 |
PO File | 12 | 6,960 | 8,455 | 15,240 |
JavaScript | 5 | 107 | 76 | 401 |
Markdown | 1 | 68 | 0 | 214 |
CSS | 12 | 4 | 0 | 32 |
JSON | 1 | 0 | 0 | 27 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please tend to the following items
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 82.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,910.00 |
Average method complexity | 4.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 51 | |
▷ Abstract classes | 2 | 3.92% |
▷ Concrete classes | 49 | 96.08% |
▷ Final classes | 0 | 0.00% |
Methods | 1,165 | |
▷ Static methods | 173 | 14.85% |
▷ Public methods | 825 | 70.82% |
▷ Protected methods | 15 | 1.29% |
▷ Private methods | 325 | 27.90% |
Functions | 102 | |
▷ Named functions | 102 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 132 | |
▷ Global constants | 107 | 81.06% |
▷ Class constants | 25 | 18.94% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
includes/images/preview.png | 34.46KB | 8.53KB | ▼ 75.24% |
freemius/assets/img/product-image-watermark-for-woo.png | 9.16KB | 5.26KB | ▼ 42.58% |