Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼4.50ms] Passed 4 tests
An overview of server-side resources used by Address validation for WooCommerce by Validar
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 42.12 ▼3.17 |
Dashboard /wp-admin | 3.40 ▲0.10 | 53.27 ▲3.22 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 50.13 ▼2.43 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 89.06 ▼15.63 |
Media Library /wp-admin/upload.php | 3.32 ▲0.10 | 39.95 ▲5.67 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Address validation for WooCommerce by Validar: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲37 | 14.23 ▼0.11 | 2.00 ▲0.39 | 43.47 ▲0.89 |
Dashboard /wp-admin | 2,201 ▲24 | 5.58 ▼0.02 | 88.90 ▲0.12 | 43.03 ▲0.74 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 2.01 ▼0.01 | 34.38 ▼8.04 | 37.23 ▼0.35 |
Add New Post /wp-admin/post-new.php | 1,546 ▲20 | 18.41 ▼4.81 | 625.35 ▼16.12 | 60.68 ▲1.27 |
Media Library /wp-admin/upload.php | 1,412 ▲9 | 4.24 ▲0.05 | 99.34 ▼7.61 | 43.53 ▼0.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'ValidarBasePlatform' not found in wp-content/plugins/validar-for-woocommerce/platforms/class-woocommerce.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/validar-for-woocommerce/validar.php:450
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: shipping address, address validation, shipping, woocommerce
validar-for-woocommerce/validar.php 85% from 13 tests
The main file in "Address validation for WooCommerce by Validar" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("validar-for-woocommerce.php" instead of "validar.php")
- 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
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 plugin674 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 138 | 99 | 573 |
PO File | 1 | 15 | 17 | 59 |
CSS | 1 | 2 | 0 | 24 |
JavaScript | 1 | 2 | 4 | 18 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 13.25 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 1.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 20 | 37.04% |
▷ Public methods | 51 | 94.44% |
▷ Protected methods | 1 | 1.85% |
▷ Private methods | 2 | 3.70% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/validar.png | 5.07KB | 0.63KB | ▼ 87.63% |