Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼145.28ms] Passed 4 tests
Server-side resources used by WooCommerce Product Custom Options Lite
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 32.84 ▲13.80 |
Dashboard /wp-admin | 3.12 ▲0.07 | 36.00 ▼7.49 |
Posts /wp-admin/edit.php | 3.17 ▲0.07 | 42.50 ▲0.71 |
Add New Post /wp-admin/post-new.php | 5.71 ▲0.28 | 87.44 ▼565.88 |
Media Library /wp-admin/upload.php | 3.08 ▲0.07 | 31.64 ▼8.44 |
Server storage [IO: ▲0.86MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 37 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for WooCommerce Product Custom Options Lite
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,686 ▲90 | 15.94 ▲0.51 | 9.55 ▼3.24 | 46.57 ▼9.33 |
Dashboard /wp-admin | 2,980 ▲45 | 5.90 ▼0.04 | 134.65 ▼9.22 | 111.17 ▼10.24 |
Posts /wp-admin/edit.php | 2,746 ▲7 | 2.72 ▼0.00 | 63.06 ▼0.86 | 87.19 ▲2.80 |
Add New Post /wp-admin/post-new.php | 1,505 ▼400 | 18.88 ▼0.30 | 379.22 ▼8.17 | 111.45 ▲4.09 |
Media Library /wp-admin/upload.php | 1,814 ▲4 | 5.01 ▼0.04 | 160.89 ▲15.70 | 116.86 ▼5.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 13× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/woocommerce-custom-options-lite/templates/custom_textareas.php on line 2
- > PHP Notice
Undefined variable: options in wp-content/plugins/woocommerce-custom-options-lite/templates/custom_textareas.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/woocommerce-custom-options-lite/libs/tgm/class-tgm-plugin-activation.php:2109
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/woocommerce-custom-options-lite/templates/custom_textareas.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/woocommerce-custom-options-lite/libs/tgm/class-tgm-plugin-activation.php:2109
- > PHP Notice
Undefined variable: options in wp-content/plugins/woocommerce-custom-options-lite/templates/custom_fields.php on line 4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/woocommerce-custom-options-lite/templates/custom_fields.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/woocommerce-custom-options-lite/libs/tgm/class-tgm-plugin-activation.php:2109
- > PHP Notice
Undefined variable: options in wp-content/plugins/woocommerce-custom-options-lite/templates/custom_textareas.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/woocommerce-custom-options-lite/templates/custom_fields.php on line 4
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 27 tag instead of maximum 10
woocommerce-custom-options-lite/plugin.php 77% from 13 tests
The main file in "WooCommerce Product Custom Options Lite" v. 1.9.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, 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 ("woocommerce-custom-options-lite.php" instead of "plugin.php")
- Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "2.6.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin2,864 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 962 | 1,704 | 2,728 |
JavaScript | 1 | 55 | 8 | 72 |
PO File | 1 | 23 | 0 | 64 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 40.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 4.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 110 | |
▷ Static methods | 5 | 4.55% |
▷ Public methods | 87 | 79.09% |
▷ Protected methods | 23 | 20.91% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
17 PNG files occupy 0.24MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/add-multiple-fields.png | 19.13KB | 4.18KB | ▼ 78.12% |
images/27.png | 41.00KB | 13.20KB | ▼ 67.82% |
images/premium-btn.png | 5.72KB | 5.28KB | ▼ 7.69% |
images/image-frame-even.png | 0.67KB | 0.62KB | ▼ 8.42% |
images/price-of-option.png | 7.33KB | 3.24KB | ▼ 55.82% |