Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.29MB] [CPU: ▼293.31ms] Passed 4 tests
Server-side resources used by Before and After Product Images for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.35 | 59.28 ▲11.44 |
Dashboard /wp-admin | 3.71 ▲0.30 | 34.70 ▲1.05 |
Posts /wp-admin/edit.php | 3.93 ▲0.30 | 38.34 ▲1.00 |
Add New Post /wp-admin/post-new.php | 7.21 ▲0.22 | 97.22 ▼1,172.67 |
Media Library /wp-admin/upload.php | 3.66 ▲0.36 | 25.22 ▼2.63 |
Contact Us /wp-admin/admin.php?page=baapifwc_settings-contact | 3.67 | 23.11 |
Upgrade ➤ /wp-admin/admin.php?page=baapifwc_settings-pricing | 3.98 | 25.62 |
Freemius Debug [v.1.2.4] /wp-admin/admin.php?page=freemius | 3.92 | 25.97 |
Server storage [IO: ▲2.92MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 213 new files
Database: no new tables, 5 new options
New WordPress options |
---|
fs_active_plugins |
fs_api_cache |
fs_debug_mode |
fs_options |
fs_accounts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Before and After Product Images for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,803 ▲81 | 15.94 ▲0.24 | 6.09 ▲0.60 | 2.41 ▲0.18 |
Dashboard /wp-admin | 2,912 ▲51 | 6.15 ▼0.02 | 117.20 ▼18.13 | 157.16 ▼4.63 |
Posts /wp-admin/edit.php | 2,714 ▲57 | 3.25 ▲0.01 | 64.50 ▲1.94 | 140.78 ▲1.29 |
Add New Post /wp-admin/post-new.php | 1,722 ▲55 | 20.80 ▲2.74 | 431.56 ▲3.71 | 163.09 ▲7.89 |
Media Library /wp-admin/upload.php | 1,721 ▲23 | 5.51 ▲0.07 | 137.36 ▲2.50 | 189.27 ▲1.37 |
Contact Us /wp-admin/admin.php?page=baapifwc_settings-contact | 1,225 | 3.87 | 67.40 | 79.24 |
Upgrade ➤ /wp-admin/admin.php?page=baapifwc_settings-pricing | 1,258 | 3.80 | 70.30 | 75.28 |
Freemius Debug [v.1.2.4] /wp-admin/admin.php?page=freemius | 1,410 | 2.53 | 52.94 | 125.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 5 options in the database
- fs_debug_mode
- fs_options
- fs_active_plugins
- fs_api_cache
- fs_accounts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/before-and-after-product-images-for-woocommerce/freemius/templates/ajax-loader.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=baapifwc_settings-contact
- > Network (severe)
https://wp.freemius.com/contact/?page=baapifwc_settings-contact&plugin_id=1992&plugin_public_key=pk_1c285e5e3840235ec164c1e3bb5da&plugin_version=1.0.3&wp_login_url=http%3A%2F%2Fwp.com%2Fwp-login.php&site_url=http%3A%2F%2Fwp.com#http%3A%2F%2Fwp.com%2Fwp-admin%2Fadmin.php%3Fpage%3Dbaapifwc_settings-contact - Failed to load resource: the server responded with a status of 500 ()
- > GET request to /wp-admin/admin.php?page=baapifwc_settings-pricing
- > Network (severe)
https://wp.freemius.com/pricing/?plugin_id=1992&plugin_public_key=pk_1c285e5e3840235ec164c1e3bb5da&plugin_version=1.0.3&home_url=http%3A%2F%2Fwp.com&page=baapifwc_settings-pricing&next=http%3A%2F%2Fwp.com%2Fwp-admin%2Fadmin.php%3Ffs_action%3Dbefore-and-after-product-images-for-woocommerce_sync_license%26page%3Dbaapifwc_settings-account&billing_cycle=annual#http%3A%2F%2Fwp.com%2Fwp-admin%2Fadmin.php%3Fpage%3Dbaapifwc_settings-pricing - Failed to load resource: the server responded with a status of 500 ()
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: product images, before after, before and after, before and after product images for woocommerce, images
before-and-after-product-images-for-woocommerce/before-and-after-product-images-for-woocommerce.php 77% from 13 tests
The main file in "Before and After Product Images for WooCommerce" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
- Domain Path: Please prefix the domain path with a forward slash character ("/languages")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin29,840 lines of code in 159 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 98 | 4,556 | 10,812 | 19,051 |
PO File | 6 | 2,778 | 3,058 | 6,111 |
Sass | 24 | 438 | 113 | 2,637 |
JavaScript | 7 | 208 | 147 | 817 |
CSS | 14 | 156 | 2 | 716 |
Markdown | 3 | 96 | 0 | 292 |
HTML | 2 | 8 | 10 | 129 |
JSON | 2 | 0 | 0 | 51 |
YAML | 2 | 2 | 0 | 28 |
Ruby | 1 | 6 | 12 | 8 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 1,332)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 44.23 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,332.00 |
Average method complexity | 3.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 80.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 47 | |
▷ Abstract classes | 2 | 4.26% |
▷ Concrete classes | 45 | 95.74% |
▷ Final classes | 0 | 0.00% |
Methods | 807 | |
▷ Static methods | 125 | 15.49% |
▷ Public methods | 611 | 75.71% |
▷ Protected methods | 14 | 1.73% |
▷ Private methods | 182 | 22.55% |
Functions | 87 | |
▷ Named functions | 87 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 105 | |
▷ Global constants | 85 | 80.95% |
▷ Class constants | 20 | 19.05% |
▷ Public constants | 20 | 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
6 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/price-bands-for-woocommerce.png | 4.59KB | 2.45KB | ▼ 46.59% |
public/assets/js/twentytwenty/img/after.png | 3.12KB | 0.34KB | ▼ 89.24% |
public/assets/js/twentytwenty/img/before.png | 3.23KB | 0.39KB | ▼ 87.91% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |