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.00MB] [CPU: ▼11.23ms] Passed 4 tests
Analyzing server-side resources used by Virtual product checkout field manager for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 34.92 ▼10.10 |
Dashboard /wp-admin | 3.32 ▼0.03 | 44.80 ▼19.38 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 44.52 ▼4.54 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 85.19 ▼10.91 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 31.93 ▼0.04 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Virtual product checkout field manager for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲49 | 14.27 ▼0.30 | 1.63 ▼0.17 | 36.36 ▼6.43 |
Dashboard /wp-admin | 2,204 ▲27 | 5.64 ▲0.03 | 90.32 ▼4.29 | 38.70 ▼7.56 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.95 ▼0.02 | 39.33 ▲0.06 | 36.04 ▼3.15 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 23.26 ▲0.10 | 616.41 ▼79.04 | 50.08 ▼1.44 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.20 ▼0.02 | 93.56 ▼7.93 | 42.71 ▲1.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/virtual-product-checkout-fields-manager/includes/admin/templates/digital-product-checkout-fields.php:4
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: digital product checkout fields, woocommerce digital product, virtual product, woocommerce checkout, remove billing fields...
virtual-product-checkout-fields-manager/checkout-fields-manager.php 85% from 13 tests
The main PHP script in "Virtual product checkout field manager for WooCommerce" version 1.0.1 is automatically included on every request by WordPress
Please take the time to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("virtual-product-checkout-fields-manager.php" instead of "checkout-fields-manager.php")
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
Success! There were no dangerous files found in this plugin504 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 106 | 183 | 287 |
CSS | 2 | 22 | 0 | 148 |
JavaScript | 2 | 2 | 4 | 35 |
JSON | 1 | 0 | 0 | 22 |
XML | 1 | 7 | 3 | 12 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 2.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 1 | 5.88% |
▷ Public methods | 10 | 58.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 41.18% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) assets/images/test.png | 0.00KB | 0.00KB | 0.00% |