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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.84ms] Passed 4 tests
Analyzing server-side resources used by Phone Validator for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.41 ▼1.09 |
Dashboard /wp-admin | 3.33 ▼0.01 | 48.97 ▼5.92 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 47.33 ▲0.55 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 94.04 ▼16.88 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.97 ▲1.13 |
Server storage [IO: ▲0.69MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Phone Validator for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.72 ▲0.58 | 1.82 ▼0.19 | 40.52 ▼1.35 |
Dashboard /wp-admin | 2,203 ▲32 | 5.52 ▼0.04 | 85.38 ▼2.93 | 40.95 ▼11.30 |
Posts /wp-admin/edit.php | 2,108 ▲5 | 2.03 ▲0.01 | 40.90 ▲0.46 | 36.52 ▲2.25 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 22.77 ▼0.39 | 655.35 ▲46.03 | 56.90 ▼11.46 |
Media Library /wp-admin/upload.php | 1,402 ▲5 | 4.20 ▼0.03 | 96.99 ▼0.26 | 41.62 ▼1.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 2× 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-validator/public/class-woocommerce-account.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-phone-validator/public/class-woocommerce-checkout.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Woocommerce billing phone field includes a flag), #2 (Error shown to user when an invalid phone number is submitted on checkout), #3 (Error shown to user when an invalid phone number is submitted on the billing address edit page)
woo-phone-validator/wc-pv.php 85% from 13 tests
This is the main PHP file of "Phone Validator for WooCommerce" version 1.3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("4.9" instead of "5.0")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-phone-validator.php" instead of "wc-pv.php")
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
There were no executable files found in this plugin1,691 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 8 | 7 | 936 |
JavaScript | 5 | 29 | 85 | 493 |
PHP | 7 | 57 | 210 | 262 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 28 | |
▷ Static methods | 4 | 14.29% |
▷ Public methods | 25 | 89.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 10.71% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 12 | |
▷ Global constants | 12 | 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
5 PNG files occupy 0.31MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/vendor/img/flags.png | 69.20KB | 23.42KB | ▼ 66.16% |
assets/vendor/img/flags@2x.png | 170.28KB | 68.04KB | ▼ 60.04% |
assets/images/screenshot-1.PNG | 38.66KB | 17.76KB | ▼ 54.07% |
assets/images/screenshot-3.png | 25.08KB | 11.72KB | ▼ 53.27% |
assets/images/screenshot-2.PNG | 12.12KB | 5.91KB | ▼ 51.22% |