Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼147.01ms] Passed 4 tests
An overview of server-side resources used by Woo Phone Number Validator
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.12 | 33.72 ▲13.97 |
Dashboard /wp-admin | 3.06 ▲0.00 | 43.20 ▼1.03 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 45.08 ▼2.04 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 90.57 ▼580.89 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 32.23 ▼4.07 |
Server storage [IO: ▲0.62MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Woo Phone Number Validator
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 16.04 ▲0.37 | 8.98 ▲0.18 | 49.48 ▲1.91 |
Dashboard /wp-admin | 2,970 ▲36 | 5.97 ▼0.04 | 137.34 ▼10.40 | 106.03 ▼2.63 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.83 ▲0.11 | 66.06 ▼4.68 | 96.79 ▲0.74 |
Add New Post /wp-admin/post-new.php | 1,498 ▼174 | 18.80 ▼0.05 | 349.43 ▼25.51 | 112.68 ▼0.67 |
Media Library /wp-admin/upload.php | 1,810 ▼0 | 5.05 ▲0.02 | 143.36 ▼22.06 | 120.32 ▼4.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-phone-number-validator/libs/loadscript.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 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: woocommerce billing field, woocommerce, woocommerce checkout field, phone validators
woo-phone-number-validator/woo-phone-number-validator.php Passed 13 tests
The main file in "Woo Phone Number Validator" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
128 characters long description:
Validates the phone number field on checkout page of WooCommerce. Just install and activate the plugin, no settings is required.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,583 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 20 | 319 | 1,506 |
PHP | 2 | 13 | 8 | 40 |
CSS | 2 | 10 | 1 | 37 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
2 PNG files occupy 0.23MB with 0.15MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/flags@2x.png | 170.28KB | 68.04KB | ▼ 60.04% |
img/flags.png | 69.20KB | 23.42KB | ▼ 66.16% |