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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.28ms] Passed 4 tests
Server-side resources used by Forms: 3rdparty Phone Numbers
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.13 ▲0.67 | 47.86 ▲3.71 |
Dashboard /wp-admin | 3.33 ▲0.03 | 47.80 ▼0.14 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.23 ▼7.65 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 88.92 ▼10.37 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.34 ▲1.04 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Forms: 3rdparty Phone Numbers
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.70 ▼0.85 | 1.70 ▼0.16 | 46.31 ▼2.16 |
Dashboard /wp-admin | 2,209 ▲18 | 5.90 ▲0.01 | 95.18 ▼2.47 | 36.57 ▼8.38 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.06 ▲0.08 | 39.31 ▼2.65 | 34.14 ▼1.97 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.36 ▲0.70 | 661.67 ▲74.58 | 59.50 ▲7.89 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.15 ▼0.08 | 93.29 ▼4.89 | 40.64 ▼2.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 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 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
Please fix the following
- 44× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Locale' not found in wp-content/plugins/forms-3rdparty-phone-numbers/vendor/giggsey/libphonenumber-for-php/src/libphonenumber/geocoding/Locale.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/forms-3rdparty-phone-numbers/vendor/giggsey/libphonenumber-for-php/Tests/libphonenumber/Tests/core/ShortNumberInfoTest.php:13
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/forms-3rdparty-phone-numbers/vendor/giggsey/libphonenumber-for-php/Tests/libphonenumber/Tests/carrier/PhoneNumberToCarrierMapperTest.php:9
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/forms-3rdparty-phone-numbers/vendor/giggsey/libphonenumber-for-php/Tests/libphonenumber/Tests/Issues/UKNumbersTest.php:10
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/forms-3rdparty-phone-numbers/vendor/giggsey/libphonenumber-for-php/build/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/forms-3rdparty-phone-numbers/vendor/giggsey/libphonenumber-for-php/build/build.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/forms-3rdparty-phone-numbers/f3i-phonenumber.php:36
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/forms-3rdparty-phone-numbers/vendor/giggsey/libphonenumber-for-php/Tests/libphonenumber/Tests/Issues/Issue23Test.php:9
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/forms-3rdparty-phone-numbers/vendor/giggsey/libphonenumber-for-php/Tests/libphonenumber/Tests/buildtools/BuildMetadataFromXmlTest.php:15
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/forms-3rdparty-phone-numbers/vendor/giggsey/libphonenumber-for-php/Tests/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/forms-3rdparty-phone-numbers/vendor/giggsey/libphonenumber-for-php/Tests/bootstrap.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Console\\Command\\Command' not found in wp-content/plugins/forms-3rdparty-phone-numbers/vendor/giggsey/libphonenumber-for-php/build/libphonenumber/buildtools/Commands/GeneratePhonePrefixDataCommand.php:11
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: phone number, international number, parsing, api, contact form...
forms-3rdparty-phone-numbers/f3i-phonenumber.php 92% from 13 tests
This is the main PHP file of "Forms: 3rdparty Phone Numbers" version 0.4.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("forms-3rdparty-phone-numbers.php" instead of "f3i-phonenumber.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin559,489 lines of code in 2,448 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2,429 | 4,926 | 13,766 | 558,432 |
Markdown | 7 | 256 | 0 | 506 |
Ant | 2 | 48 | 0 | 240 |
JSON | 4 | 0 | 0 | 210 |
YAML | 3 | 16 | 0 | 57 |
XML | 2 | 7 | 1 | 39 |
diff | 1 | 0 | 8 | 5 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 12.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 335.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 75 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 75 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 778 | |
▷ Static methods | 64 | 8.23% |
▷ Public methods | 682 | 87.66% |
▷ Protected methods | 61 | 7.84% |
▷ Private methods | 35 | 4.50% |
Functions | 5 | |
▷ Named functions | 1 | 20.00% |
▷ Anonymous functions | 4 | 80.00% |
Constants | 180 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 180 | 100.00% |
▷ Public constants | 180 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin