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.00MB] [CPU: ▼9.26ms] Passed 4 tests
This is a short check of server-side resources used by Country and State Selection Addon for Gravity Forms
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.84 ▼2.30 |
Dashboard /wp-admin | 3.31 ▼0.03 | 49.57 ▼16.57 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 59.35 ▲4.58 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 88.06 ▼22.60 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 42.38 ▲4.45 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Country and State Selection Addon for Gravity Forms
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.30 ▼1.07 | 1.97 ▲0.14 | 40.20 ▼2.86 |
Dashboard /wp-admin | 2,206 ▲21 | 5.90 ▲1.03 | 100.71 ▼3.20 | 39.23 ▼0.73 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.05 ▲0.00 | 44.11 ▲2.55 | 43.84 ▲7.08 |
Add New Post /wp-admin/post-new.php | 1,533 ▼11 | 23.19 ▲4.63 | 694.63 ▲64.69 | 59.32 ▲7.87 |
Media Library /wp-admin/upload.php | 1,385 ▼0 | 4.21 ▼0.04 | 97.52 ▼4.52 | 47.35 ▲2.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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 items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'GFForms' not found in wp-content/plugins/gforms-addon-for-country-and-state-selection/class-gf-cws-fields.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gforms-addon-for-country-and-state-selection/includes/functions.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Requires php: Invalid version format
gforms-addon-for-country-and-state-selection/index.php 77% from 13 tests
The main PHP file in "Country and State Selection Addon for Gravity Forms" ver. 1.0 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: It is recommended to name the main PHP file as the plugin slug ("gforms-addon-for-country-and-state-selection.php" instead of "index.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 395 characters long)
- Domain Path: The domain path is invalid: folder "/languages" does not exist
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
Good job! No executable or dangerous file extensions detected711 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 112 | 131 | 661 |
JavaScript | 1 | 0 | 3 | 27 |
CSS | 1 | 4 | 0 | 23 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 3.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 2 | 5.88% |
▷ Public methods | 34 | 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 | 8 | |
▷ Global constants | 8 | 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
There were not PNG files found in your plugin