Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼148.38ms] Passed 4 tests
An overview of server-side resources used by SWE Country Code Field GF Add-On
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 32.44 ▲10.48 |
Dashboard /wp-admin | 3.06 ▲0.01 | 42.52 ▼8.75 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 44.52 ▲0.13 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 88.29 ▼585.03 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 32.83 ▲0.13 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by SWE Country Code Field GF Add-On
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.82 ▲0.30 | 8.49 ▼1.36 | 49.05 ▼2.95 |
Dashboard /wp-admin | 2,970 ▲37 | 5.89 ▼0.08 | 135.61 ▼6.66 | 114.08 ▼3.20 |
Posts /wp-admin/edit.php | 2,736 ▼0 | 2.69 ▼0.00 | 63.37 ▼1.51 | 91.99 ▼2.75 |
Add New Post /wp-admin/post-new.php | 1,872 ▲281 | 19.13 ▲0.38 | 371.28 ▲3.74 | 100.94 ▼16.77 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.04 ▲0.02 | 160.58 ▲12.97 | 114.11 ▼4.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
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
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
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'GFForms' not found in wp-content/plugins/swe-country-code-field-gf-add-on/class-swegfcountycodeaddon.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/swe-country-code-field-gf-add-on/swe-country-code-gfaddon.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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
4 plugin tags: phone code, gf addons for ph with country code, phone code with country flag, phone number with international country code
swe-country-code-field-gf-add-on/swe-country-code-gfaddon.php 85% from 13 tests
The primary PHP file in "SWE Country Code Field GF Add-On" version 2.1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("swe-country-code-field-gf-add-on.php" instead of "swe-country-code-gfaddon.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,805 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 2 | 98 | 1,393 |
CSS | 1 | 1 | 1 | 260 |
PHP | 3 | 53 | 91 | 152 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 5.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 2 | 14.29% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/flags16.png | 61.80KB | 19.90KB | ▼ 67.79% |