Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼7.21ms] Passed 4 tests
Analyzing server-side resources used by Product Attachment for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.51 ▲0.03 |
Dashboard /wp-admin | 3.31 ▼0.03 | 46.29 ▼15.78 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 45.57 ▲1.41 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 78.30 ▼14.15 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.44 ▲1.06 |
Server storage [IO: ▲10.18MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 282 new files
Database: no new tables, 22 new options
New WordPress options |
---|
theysaidso_admin_options |
wcpoa_admin_order_tab_name |
wcpoa_att_download_btn |
fs_debug_mode |
widget_recent-comments |
wcpoa_att_in_my_acc |
can_compress_scripts |
wcpoa_att_btn_in_order_list |
wcpoa_product_download_type |
wcpoa_att_in_thankyou |
... |
Browser metrics Passed 4 tests
Product Attachment for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.39 ▼0.98 | 4.42 ▲2.63 | 42.78 ▼1.94 |
Dashboard /wp-admin | 2,203 ▲18 | 5.80 ▼0.10 | 100.70 ▼5.17 | 40.80 ▲0.97 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▲0.03 | 33.98 ▼1.04 | 32.92 ▼3.41 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 23.33 ▲5.74 | 657.83 ▼25.64 | 63.13 ▲8.78 |
Media Library /wp-admin/upload.php | 1,382 ▼9 | 4.23 ▲0.05 | 96.34 ▼5.78 | 42.54 ▼3.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 22 options in the database
- wcpoa_att_btn_in_order_list
- db_upgraded
- fs_debug_mode
- widget_theysaidso_widget
- wcpoa_att_download_btn
- wcpoa_product_download_type
- wcpoa_product_tab_name
- fs_active_plugins
- widget_recent-comments
- wcpoa_att_btn_position
- ...
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots lack descriptions #10, #2, #4, #6, #8 in woo-product-attachment/assets to your readme.txt
woo-product-attachment/woocommerce-product-attachment.php 77% from 13 tests
This is the main PHP file of "Product Attachment for WooCommerce" version 2.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-product-attachment.php" instead of "woocommerce-product-attachment.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 193 characters long)
Code Analysis 95% from 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
Success! There were no dangerous files found in this plugin48,567 lines of code in 177 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 137 | 8,672 | 18,248 | 41,410 |
PO File | 5 | 1,735 | 4,533 | 4,577 |
CSS | 23 | 77 | 103 | 1,392 |
JavaScript | 9 | 87 | 122 | 1,165 |
XML | 1 | 3 | 0 | 16 |
SVG | 2 | 0 | 0 | 7 |
PHP code 0% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,088)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 104)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 93.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,088.00 |
Average method complexity | 4.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 104.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 54 | |
▷ Abstract classes | 2 | 3.70% |
▷ Concrete classes | 52 | 96.30% |
▷ Final classes | 0 | 0.00% |
Methods | 1,341 | |
▷ Static methods | 200 | 14.91% |
▷ Public methods | 945 | 70.47% |
▷ Protected methods | 17 | 1.27% |
▷ Private methods | 379 | 28.26% |
Functions | 113 | |
▷ Named functions | 111 | 98.23% |
▷ Anonymous functions | 2 | 1.77% |
Constants | 151 | |
▷ Global constants | 104 | 68.87% |
▷ Class constants | 47 | 31.13% |
▷ Public constants | 47 | 100.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
45 PNG files occupy 4.79MB with 2.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/doc.png | 1.80KB | 0.81KB | ▼ 54.70% |
admin/images/pro-features-img/feature-box-four-img.png | 173.99KB | 65.05KB | ▼ 62.61% |
public/images/csv.png | 3.54KB | 1.91KB | ▼ 46.01% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
admin/images/attachment-default-icons/attachment_icon_4.png | 1.21KB | 1.42KB | 0.00% |