Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼292.52ms] Passed 4 tests
Analyzing server-side resources used by Custom Products for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.19 | 56.48 ▲4.96 |
Dashboard /wp-admin | 3.52 ▲0.12 | 33.59 ▲0.60 |
Posts /wp-admin/edit.php | 3.76 ▲0.12 | 37.81 ▲2.42 |
Add New Post /wp-admin/post-new.php | 7.03 ▲0.03 | 98.77 ▼1,161.33 |
Media Library /wp-admin/upload.php | 3.41 ▲0.11 | 25.38 ▼11.75 |
Server storage [IO: ▲0.87MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 74 new files
Database: no new tables, 2 new options
New WordPress options |
---|
woocp_settings |
woocp_version |
Browser metrics Passed 4 tests
Custom Products for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,797 ▲55 | 15.65 ▼0.39 | 5.78 ▲0.16 | 2.33 ▲0.19 |
Dashboard /wp-admin | 2,905 ▲44 | 6.15 ▲0.01 | 120.99 ▼8.78 | 158.69 ▲2.09 |
Posts /wp-admin/edit.php | 2,702 ▲14 | 3.23 ▼0.01 | 60.31 ▼2.14 | 139.01 ▼3.78 |
Add New Post /wp-admin/post-new.php | 1,717 ▼35 | 21.27 ▲0.43 | 427.07 ▼23.98 | 146.62 ▼6.40 |
Media Library /wp-admin/upload.php | 1,708 ▲10 | 5.48 ▼0.04 | 144.58 ▲6.36 | 184.67 ▲1.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 2 options in the database
- woocp_version
- woocp_settings
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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 10× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/custom-products-for-woocommerce/trunk/templates/customizer_content.php
- > /wp-content/plugins/custom-products-for-woocommerce/trunk/templates/customizer_image.php
- > /wp-content/plugins/custom-products-for-woocommerce/trunk/templates/customizer.php
- > /wp-content/plugins/custom-products-for-woocommerce/templates/product_component.php
- > /wp-content/plugins/custom-products-for-woocommerce/trunk/templates/product_component.php
- > /wp-content/plugins/custom-products-for-woocommerce/templates/customizer_content.php
- > /wp-content/plugins/custom-products-for-woocommerce/templates/customizer.php
- > /wp-content/plugins/custom-products-for-woocommerce/templates/product_component_attribute.php
- > /wp-content/plugins/custom-products-for-woocommerce/trunk/templates/product_component_attribute.php
- > /wp-content/plugins/custom-products-for-woocommerce/templates/customizer_image.php
- 8× 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/custom-products-for-woocommerce/templates/add_to_cart_button.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/custom-products-for-woocommerce/trunk/templates/add_to_cart_button.php:19
- > PHP Fatal error
Uncaught Error: Class 'WOOCP' not found in wp-content/plugins/custom-products-for-woocommerce/admin/class-woocp-components.php:12
- > PHP Fatal error
Uncaught Error: Class 'WOOCP' not found in wp-content/plugins/custom-products-for-woocommerce/admin/class-woocp-admin.php:13
- > PHP Fatal error
Uncaught Error: Class 'WOOCP' not found in wp-content/plugins/custom-products-for-woocommerce/trunk/admin/class-woocp-components.php:12
- > PHP Fatal error
Uncaught Error: Class 'WOOCP' not found in wp-content/plugins/custom-products-for-woocommerce/public/class-woocp-public.php:15
- > PHP Fatal error
Uncaught Error: Class 'WOOCP' not found in wp-content/plugins/custom-products-for-woocommerce/trunk/public/class-woocp-public.php:15
- > PHP Fatal error
Uncaught Error: Class 'WOOCP' not found in wp-content/plugins/custom-products-for-woocommerce/trunk/admin/class-woocp-admin.php:13
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: woocommerce, product, sales, sell, ecommerce...
custom-products-for-woocommerce/custom-products-for-woocommerce.php 92% from 13 tests
The primary PHP file in "Custom Products for WooCommerce" version 1.2.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Requires at least: Required version must match the one declared in readme.txt ("4.7.0" instead of "3.0.0")
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 plugin3,962 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 350 | 947 | 1,807 |
CSS | 4 | 179 | 23 | 978 |
JavaScript | 4 | 102 | 41 | 811 |
PO File | 1 | 114 | 124 | 366 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 41.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 149.00 |
Average method complexity | 4.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 186 | |
▷ Static methods | 10 | 5.38% |
▷ Public methods | 176 | 94.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 5.38% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
6 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
trunk/public/css/images/ui-icons_222222_256x240.png | 6.76KB | 4.17KB | ▼ 38.24% |
public/img/placeholder.png | 24.75KB | 10.16KB | ▼ 58.94% |
trunk/public/img/noedit.png | 18.67KB | 2.50KB | ▼ 86.63% |
trunk/public/img/placeholder.png | 24.75KB | 10.16KB | ▼ 58.94% |
public/img/noedit.png | 18.67KB | 2.50KB | ▼ 86.63% |