Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.54MB] [CPU: ▼1.74ms] 75% from 4 tests
An overview of server-side resources used by Smart phone field for Gravity Forms
Please have a look at the following items
- CPU: Try to keep total CPU usage under 500.00ms (currently 2,024.16ms on /wp-admin/options-general.php?page=smart-phone-field-for-gravity-forms-pro)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.59 | 49.13 ▼2.47 |
Dashboard /wp-admin | 3.90 ▲0.59 | 58.74 ▲3.18 |
Posts /wp-admin/edit.php | 3.95 ▲0.59 | 58.59 ▲8.90 |
Add New Post /wp-admin/post-new.php | 6.44 ▲0.55 | 97.92 ▼8.49 |
Media Library /wp-admin/upload.php | 3.66 ▲0.43 | 41.78 ▲0.83 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 3.99 | 44.32 |
Smart Phone Field /wp-admin/options-general.php?page=smart-phone-field-for-gravity-forms-pro | 3.90 | 2,024.16 |
Server storage [IO: ▲3.67MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 206 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
fs_active_plugins |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
fs_debug_mode |
widget_theysaidso_widget |
db_upgraded |
fs_accounts |
Browser metrics Passed 4 tests
A check of browser resources used by Smart phone field for Gravity Forms
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲36 | 13.56 ▲0.33 | 1.52 ▼0.48 | 34.15 ▼10.24 |
Dashboard /wp-admin | 2,242 ▲33 | 5.87 ▲1.01 | 108.49 ▼0.34 | 41.62 ▼10.30 |
Posts /wp-admin/edit.php | 2,125 ▲36 | 2.05 ▲0.05 | 40.54 ▲0.25 | 39.69 ▲4.96 |
Add New Post /wp-admin/post-new.php | 1,536 ▲16 | 17.64 ▼5.72 | 635.57 ▲4.12 | 52.05 ▼4.38 |
Media Library /wp-admin/upload.php | 1,424 ▲33 | 4.27 ▲0.04 | 97.07 ▼7.62 | 42.84 ▼5.40 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,074 | 1.85 | 26.69 | 29.64 |
Smart Phone Field /wp-admin/options-general.php?page=smart-phone-field-for-gravity-forms-pro | 989 | 2.02 | 28.09 | 62.75 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/smart-phone-field-for-gravity-forms/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 9 options in the database
- can_compress_scripts
- widget_recent-comments
- fs_active_plugins
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- fs_accounts
- fs_debug_mode
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: phone validation, smart phone field, gravityforms, international telephone field, international phone input...
smart-phone-field-for-gravity-forms/gravityforms-smart-phone-field.php 85% from 13 tests
Analyzing the main PHP file in "Smart phone field for Gravity Forms" version 2.1
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("smart-phone-field-for-gravity-forms.php" instead of "gravityforms-smart-phone-field.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin35,320 lines of code in 151 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 121 | 8,065 | 17,214 | 33,714 |
JavaScript | 8 | 74 | 106 | 847 |
PO File | 3 | 76 | 76 | 281 |
CSS | 16 | 48 | 0 | 262 |
Markdown | 1 | 68 | 0 | 214 |
SVG | 2 | 0 | 0 | 2 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
These items need your attention
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 86.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 52 | |
▷ Abstract classes | 2 | 3.85% |
▷ Concrete classes | 50 | 96.15% |
▷ Final classes | 0 | 0.00% |
Methods | 1,271 | |
▷ Static methods | 198 | 15.58% |
▷ Public methods | 882 | 69.39% |
▷ Protected methods | 17 | 1.34% |
▷ Private methods | 372 | 29.27% |
Functions | 107 | |
▷ Named functions | 107 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 150 | |
▷ Global constants | 103 | 68.67% |
▷ Class constants | 47 | 31.33% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.27MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
backend/img/restrict-dates.png | 2.59KB | 1.28KB | ▼ 50.47% |
freemius/assets/img/smart-phone-field-for-gravity-forms-pro.png | 3.02KB | 1.50KB | ▼ 50.19% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
frontend/img/flags.png | 69.20KB | 23.42KB | ▼ 66.16% |
frontend/img/invalid.png | 0.44KB | 0.32KB | ▼ 25.56% |