Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼138.93ms] Passed 4 tests
This is a short check of server-side resources used by City Dropdown For Woocommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.03 | 34.42 ▼1.42 |
Dashboard /wp-admin | 3.10 ▲0.04 | 46.37 ▼0.05 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 41.91 ▼3.64 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 89.88 ▼550.59 |
Media Library /wp-admin/upload.php | 3.04 ▲0.03 | 33.64 ▲3.12 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by City Dropdown For Woocommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲108 | 16.02 ▼0.13 | 10.74 ▲0.40 | 45.53 ▼5.84 |
Dashboard /wp-admin | 2,973 ▲42 | 5.90 ▼0.16 | 144.33 ▼15.33 | 114.58 ▲0.31 |
Posts /wp-admin/edit.php | 2,739 ▲3 | 2.71 ▲0.01 | 62.83 ▼2.38 | 88.07 ▼5.62 |
Add New Post /wp-admin/post-new.php | 1,615 ▼57 | 21.94 ▲3.15 | 281.81 ▼85.82 | 107.18 ▼5.05 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.06 ▲0.04 | 145.08 ▼9.28 | 119.69 ▲2.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/city-dropdown-for-woocommerce/city-dropdown.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Please a description for screenshot #1 in city-dropdown-for-woocommerce/assets to your readme.txt
- License uri: Invalid URI ("")
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
city-dropdown-for-woocommerce/city-dropdown.php 85% from 13 tests
The main PHP file in "City Dropdown For Woocommerce" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("city-dropdown-for-woocommerce.php" instead of "city-dropdown.php")
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
There were no executable files found in this plugin14,241 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 56 | 102 | 14,100 |
JavaScript | 1 | 32 | 7 | 141 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 35.00 |
▷ Minimum class complexity | 35.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 3.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 14.29% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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