Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼8.20ms] Passed 4 tests
An overview of server-side resources used by International Phone Number Format
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.90 ▼0.94 |
Dashboard /wp-admin | 3.31 ▼0.04 | 46.18 ▼10.25 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.41 ▲0.51 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 78.84 ▼19.83 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.46 ▼1.79 |
Server storage [IO: ▲0.78MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for International Phone Number Format
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲53 | 14.27 ▼0.07 | 1.73 ▲0.02 | 37.33 ▼6.21 |
Dashboard /wp-admin | 2,195 ▲18 | 5.60 ▲0.07 | 90.10 ▼8.89 | 38.26 ▼6.79 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.95 ▼0.05 | 39.28 ▼2.94 | 38.23 ▼4.05 |
Add New Post /wp-admin/post-new.php | 1,526 ▼10 | 23.62 ▲0.55 | 589.54 ▼19.29 | 47.23 ▼18.62 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.16 ▼0.02 | 99.68 ▲0.38 | 43.15 ▼2.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP Passed 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
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
No browser errors were detected
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
7 plugin tags: wordpress, phone, mask, number, format...
international-phone-number-format/intl-phone-number-format.php 85% from 13 tests
The primary PHP file in "International Phone Number Format" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("international-phone-number-format.php" instead of "intl-phone-number-format.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin8,489 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 121 | 47 | 6,059 |
CSS | 4 | 27 | 0 | 1,375 |
PHP | 17 | 160 | 199 | 924 |
PO File | 1 | 45 | 46 | 131 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 7.17 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 60 | |
▷ Static methods | 7 | 11.67% |
▷ Public methods | 43 | 71.67% |
▷ Protected methods | 17 | 28.33% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 6 | 100.00% |
Constants | 14 | |
▷ Global constants | 14 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.33MB with 0.21MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/flags@2x.png | 170.28KB | 68.04KB | ▼ 60.04% |
assets/img/e164.png | 99.08KB | 36.89KB | ▼ 62.77% |
assets/img/flags.png | 69.20KB | 23.42KB | ▼ 66.16% |