Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.17MB] [CPU: ▼7.13ms] Passed 4 tests
Analyzing server-side resources used by International Telephone Input With Flags And Dial Codes
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 34.28 ▼3.76 |
Dashboard /wp-admin | 3.48 ▲0.14 | 46.43 ▼11.49 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 43.45 ▼2.06 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.20 | 84.43 ▼11.20 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 33.53 ▲2.12 |
Intl Telephone Input /wp-admin/options-general.php?page=international-telephone-input-with-flags-and-dial-codes | 3.38 | 30.89 |
Server storage [IO: ▲6.56MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 99 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
wpitfdc_basic_settings |
db_upgraded |
Browser metrics Passed 4 tests
International Telephone Input With Flags And Dial Codes: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲63 | 13.23 ▼1.12 | 1.79 ▲0.18 | 37.72 ▼4.73 |
Dashboard /wp-admin | 2,208 ▲31 | 5.79 ▲0.23 | 84.74 ▼7.07 | 35.87 ▼3.50 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 2.26 ▲0.28 | 35.95 ▲2.16 | 32.83 ▼3.43 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 23.93 ▲0.83 | 672.02 ▼1.37 | 55.42 ▼13.94 |
Media Library /wp-admin/upload.php | 1,413 ▲10 | 4.47 ▲0.25 | 96.50 ▼5.49 | 42.52 ▼2.71 |
Intl Telephone Input /wp-admin/options-general.php?page=international-telephone-input-with-flags-and-dial-codes | 4,177 | 2.38 | 50.22 | 55.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- wpitfdc_basic_settings
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 36× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Model\\AbstractModel' not found in wp-content/plugins/international-telephone-input-with-flags-and-dial-codes/includes/vendor/geoip2/geoip2/src/Model/ConnectionType.php:19
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Model\\AbstractModel' not found in wp-content/plugins/international-telephone-input-with-flags-and-dial-codes/includes/vendor/geoip2/geoip2/src/Model/Country.php:30
- > PHP Fatal error
Uncaught Error: Class 'MaxMind\\Exception\\InvalidRequestException' not found in wp-content/plugins/international-telephone-input-with-flags-and-dial-codes/includes/vendor/maxmind/web-service-common/src/Exception/IpAddressNotFoundException.php:5
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Record\\AbstractRecord' not found in wp-content/plugins/international-telephone-input-with-flags-and-dial-codes/includes/vendor/geoip2/geoip2/src/Record/Traits.php:105
- > PHP Warning
require(wp-content/plugins/international-telephone-input-with-flags-and-dial-codes/includes/vendor/geoip2/geoip2/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/international-telephone-input-with-flags-and-dial-codes/includes/vendor/geoip2/geoip2/examples/benchmark.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'MaxMind\\Exception\\WebServiceException' not found in wp-content/plugins/international-telephone-input-with-flags-and-dial-codes/includes/vendor/maxmind/web-service-common/src/Exception/InvalidInputException.php:10
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Record\\Country' not found in wp-content/plugins/international-telephone-input-with-flags-and-dial-codes/includes/vendor/geoip2/geoip2/src/Record/RepresentedCountry.php:16
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Exception\\GeoIp2Exception' not found in wp-content/plugins/international-telephone-input-with-flags-and-dial-codes/includes/vendor/geoip2/geoip2/src/Exception/AddressNotFoundException.php:8
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Model\\Country' not found in wp-content/plugins/international-telephone-input-with-flags-and-dial-codes/includes/vendor/geoip2/geoip2/src/Model/City.php:30
- > PHP Fatal error
Uncaught Error: Class 'MaxMind\\Exception\\InvalidRequestException' not found in wp-content/plugins/international-telephone-input-with-flags-and-dial-codes/includes/vendor/maxmind/web-service-common/src/Exception/AuthenticationException.php:8
- > 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 93% from 29 tests
readme.txt Passed 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
5 plugin tags: form-input, form, input, country-flag, dial-codes
international-telephone-input-with-flags-and-dial-codes/index.php 85% from 13 tests
The main PHP file in "International Telephone Input With Flags And Dial Codes" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("international-telephone-input-with-flags-and-dial-codes.php" instead of "index.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 148 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin7,002 lines of code in 87 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 63 | 739 | 1,728 | 3,048 |
JavaScript | 4 | 2 | 291 | 1,097 |
CSS | 3 | 6 | 0 | 924 |
Markdown | 7 | 370 | 0 | 875 |
C | 1 | 97 | 18 | 589 |
JSON | 6 | 0 | 0 | 389 |
Bourne Shell | 1 | 20 | 0 | 40 |
m4 | 1 | 8 | 0 | 32 |
C/C++ Header | 1 | 4 | 12 | 8 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 7.41 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 2.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 52 | |
▷ Abstract classes | 3 | 5.77% |
▷ Concrete classes | 49 | 94.23% |
▷ Final classes | 0 | 0.00% |
Methods | 186 | |
▷ Static methods | 13 | 6.99% |
▷ Public methods | 139 | 74.73% |
▷ Protected methods | 1 | 0.54% |
▷ Private methods | 46 | 24.73% |
Functions | 7 | |
▷ Named functions | 2 | 28.57% |
▷ Anonymous functions | 5 | 71.43% |
Constants | 21 | |
▷ Global constants | 3 | 14.29% |
▷ Class constants | 18 | 85.71% |
▷ Public constants | 18 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
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 |
assets/vendor/img/flags@2x.png | 170.28KB | 68.04KB | ▼ 60.04% |
assets/vendor/img/flags.png | 69.20KB | 23.42KB | ▼ 66.16% |