Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.63ms] Passed 4 tests
Server-side resources used by WooCommerce Load Group Attributes Product
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 34.87 ▼2.24 |
Dashboard /wp-admin | 3.34 ▲0.04 | 44.57 ▼6.62 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.18 ▼1.09 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 93.27 ▼4.15 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.58 ▼1.50 |
Server storage [IO: ▲0.88MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for WooCommerce Load Group Attributes Product
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲74 | 13.65 ▼1.14 | 1.66 ▼0.23 | 38.28 ▼11.91 |
Dashboard /wp-admin | 2,215 ▲30 | 4.84 ▼1.05 | 105.10 ▼2.99 | 44.15 ▼2.77 |
Posts /wp-admin/edit.php | 2,098 ▲6 | 2.00 ▼0.04 | 40.45 ▼0.36 | 36.49 ▲1.64 |
Add New Post /wp-admin/post-new.php | 1,390 ▼124 | 18.85 ▲1.34 | 528.11 ▼125.98 | 60.93 ▲2.41 |
Media Library /wp-admin/upload.php | 1,400 ▲12 | 4.28 ▲0.10 | 100.48 ▼3.82 | 44.87 ▼2.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
Almost there! Just fix the following items
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/woo-load-group-attributes-product/views/html-product-data-attributes.php:9
- > PHP Notice
Undefined variable: post_content in wp-content/plugins/woo-load-group-attributes-product/views/html-ajax-load-attributes.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/woo-load-group-attributes-product/views/html-ajax-load-attributes.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/woo-load-group-attributes-product/views/html-modal-load-attributes.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/woo-load-group-attributes-product/views/html-df-select-product.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% 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
6 plugin tags: iran, woocommerce-attributes, product-attributes, woocommerce, admin...
woo-load-group-attributes-product/woocommerce-load-group-attributes-product.php 85% from 13 tests
The primary PHP file in "WooCommerce Load Group Attributes Product" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-load-group-attributes-product.php" instead of "woocommerce-load-group-attributes-product.php")
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
Good job! No executable or dangerous file extensions detected906 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 190 | 245 | 669 |
JavaScript | 1 | 54 | 0 | 117 |
PO File | 1 | 74 | 154 | 104 |
CSS | 1 | 4 | 0 | 16 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 2 | 10.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.82MB with 0.51MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 124.07KB | 53.84KB | ▼ 56.61% |
screenshot-5.png | 75.94KB | 24.55KB | ▼ 67.68% |
screenshot-1.png | 262.00KB | 94.44KB | ▼ 63.96% |
screenshot-6.png | 170.86KB | 61.80KB | ▼ 63.83% |
screenshot-3.png | 124.93KB | 50.00KB | ▼ 59.98% |