Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.36ms] Passed 4 tests
An overview of server-side resources used by GeoDataSource Country Region DropDown
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 43.98 ▲2.36 |
Dashboard /wp-admin | 3.31 ▲0.01 | 53.64 ▲1.39 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 50.39 ▼5.37 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 88.78 ▼15.80 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 38.42 ▲3.15 |
GeoDataSource Country Region DropDown /wp-admin/options-general.php?page=geodatasource-country-region-dropdown | 3.20 | 32.61 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
GeoDataSource Country Region DropDown: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.28 ▼0.07 | 2.07 ▲0.26 | 44.47 ▲0.54 |
Dashboard /wp-admin | 2,199 ▲19 | 5.50 ▼0.11 | 89.55 ▼9.25 | 41.54 ▼2.31 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.00 ▲0.01 | 40.97 ▼0.80 | 33.78 ▼1.38 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 18.24 ▼5.35 | 645.29 ▼11.87 | 70.73 ▲12.38 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.22 ▼0.04 | 97.21 ▲3.20 | 42.17 ▼1.66 |
GeoDataSource Country Region DropDown /wp-admin/options-general.php?page=geodatasource-country-region-dropdown | 848 | 2.15 | 28.28 | 31.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, 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 shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 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
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/geodatasource-country-region-dropdown/geodatasource-country-region-dropdown.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: dropdown, country, targeted content, region
geodatasource-country-region-dropdown/geodatasource-country-region-dropdown.php Passed 13 tests
This is the main PHP file of "GeoDataSource Country Region DropDown" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
63 characters long description:
Provides country and region dropdown with shortcodes specified.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin88 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 31 | 9 | 87 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 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 | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin