Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼0.79ms] Passed 4 tests
This is a short check of server-side resources used by X-Extensions for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 41.68 ▲0.80 |
Dashboard /wp-admin | 3.42 ▲0.12 | 45.61 ▼9.79 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 49.68 ▲2.49 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 94.81 ▲7.33 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 35.75 ▲3.36 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 51 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
vendor_type |
wp_user_role_selector |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
wp_xewc_is_used |
xewc_show_description |
Browser metrics Passed 4 tests
Checking browser requirements for X-Extensions for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,853 ▲118 | 13.20 ▼1.09 | 1.65 ▼0.09 | 43.16 ▼0.88 |
Dashboard /wp-admin | 2,262 ▲74 | 4.90 ▼0.19 | 99.15 ▼14.61 | 79.62 ▲32.59 |
Posts /wp-admin/edit.php | 2,148 ▲59 | 2.00 ▼0.01 | 38.43 ▲2.32 | 35.61 ▲0.25 |
Add New Post /wp-admin/post-new.php | 1,565 ▲30 | 23.26 ▼0.04 | 739.30 ▲55.28 | 48.39 ▼3.86 |
Media Library /wp-admin/upload.php | 1,444 ▲65 | 4.30 ▲0.13 | 97.68 ▼3.84 | 71.77 ▲27.77 |
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
- Zombie WordPress options were found after uninstall: 10 options
- widget_theysaidso_widget
- wp_user_role_selector
- vendor_type
- wp_xewc_is_used
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- xewc_show_description
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/x-extensions-for-woocommerce/extensions/product-search/pages/shortcode.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/x-extensions-for-woocommerce/settings/view/Addons.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/x-extensions-for-woocommerce/extensions/product-listing/pages/shortcode.php:7
- > PHP Fatal error
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 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: There are too many tags (22 tag instead of maximum 10)
x-extensions-for-woocommerce/x-extensions.php 85% from 13 tests
"X-Extensions for WooCommerce" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("x-extensions-for-woocommerce.php" instead of "x-extensions.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin2,323 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 296 | 419 | 1,742 |
Sass | 2 | 6 | 1 | 229 |
JavaScript | 7 | 41 | 51 | 204 |
CSS | 3 | 11 | 5 | 148 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 15.92 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 3.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 55.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 1 | 7.69% |
Methods | 93 | |
▷ Static methods | 8 | 8.60% |
▷ Public methods | 93 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 19 | |
▷ Global constants | 19 | 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
4 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
extensions/quickview/assets/images/thumbnail.png | 2.55KB | 1.56KB | ▼ 38.99% |
extensions/product-search/assets/images/thumbnail.png | 3.95KB | 2.16KB | ▼ 45.34% |
assets/images/woocommerce-icon.png | 7.05KB | 3.41KB | ▼ 51.68% |
extensions/product-listing/assets/images/thumbnail.png | 0.79KB | 0.60KB | ▼ 23.49% |