Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.39ms] Passed 4 tests
Analyzing server-side resources used by Woocommerce Custom Fields For Variation
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 44.75 ▲5.94 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.10 ▼1.32 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 45.90 ▼4.67 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 80.14 ▼19.05 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 33.49 ▼0.52 |
Server storage [IO: ▲1.63MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 62 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Woocommerce Custom Fields For Variation
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.27 ▼1.32 | 1.77 ▲0.03 | 44.08 ▲0.51 |
Dashboard /wp-admin | 2,212 ▲24 | 4.87 ▼0.00 | 107.04 ▲6.90 | 43.64 ▲3.23 |
Posts /wp-admin/edit.php | 2,094 ▲5 | 2.04 ▲0.00 | 35.91 ▼5.36 | 36.82 ▲0.15 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 23.15 ▲0.00 | 565.84 ▼30.55 | 44.45 ▼4.30 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.22 ▼0.01 | 93.70 ▼3.19 | 40.76 ▼4.14 |
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
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/woo-custom-fields-for-variation/public/partials/woo-custom-fields-for-variation-public-display.php
- > /wp-content/plugins/woo-custom-fields-for-variation/admin/partials/woo-custom-fields-for-variation-admin-display.php
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_woocommerce_currency_symbol() in wp-content/plugins/woo-custom-fields-for-variation/public/front_section/header_script.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-custom-fields-for-variation/admin/admin_section/phoen_general_setting.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_title() in wp-content/plugins/woo-custom-fields-for-variation/public/template/custom_textareas.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_title() in wp-content/plugins/woo-custom-fields-for-variation/public/template/custom_fields.php:7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/woo-custom-fields-for-variation/public/template/custom_textareas.php on line 3
- > PHP Notice
Undefined variable: options in wp-content/plugins/woo-custom-fields-for-variation/public/template/custom_fields.php on line 3
- > PHP Notice
Undefined variable: options in wp-content/plugins/woo-custom-fields-for-variation/public/template/custom_textareas.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/woo-custom-fields-for-variation/public/template/custom_fields.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: There are too many tags (14 tag instead of maximum 10)
woo-custom-fields-for-variation/woo-custom-fields-for-variation.php Passed 13 tests
The principal PHP file in "Woocommerce Custom Fields For Variation" v. 2.2.0 is loaded by WordPress automatically on each request
109 characters long description:
This plugin is designed to give your Ecommerce website the space to add customized options for your products.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin23,628 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 12 | 4,383 | 2,686 | 19,853 |
CSS | 9 | 255 | 117 | 2,855 |
PHP | 18 | 466 | 568 | 920 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 2.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 2 | 4.00% |
▷ Public methods | 32 | 64.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 18 | 36.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
16 PNG files occupy 0.67MB with 0.38MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/custom input fields.png | 112.47KB | 33.58KB | ▼ 70.14% |
admin/images/general-settings.png | 46.20KB | 14.56KB | ▼ 68.48% |
admin/images/range type.png | 56.21KB | 18.29KB | ▼ 67.47% |
admin/images/premium-btn.png | 5.72KB | 5.28KB | ▼ 7.69% |
admin/images/option price type.png | 57.37KB | 17.35KB | ▼ 69.76% |