Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.28MB] [CPU: ▼2.70ms] Passed 4 tests
Analyzing server-side resources used by My Country States For WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.75 ▲1.28 | 39.98 ▲0.31 |
Dashboard /wp-admin | 4.59 ▲1.29 | 56.84 ▲1.22 |
Posts /wp-admin/edit.php | 4.64 ▲1.28 | 50.78 ▼4.14 |
Add New Post /wp-admin/post-new.php | 7.17 ▲1.28 | 92.76 ▼8.18 |
Media Library /wp-admin/upload.php | 4.51 ▲1.28 | 40.94 ▲5.58 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for My Country States For WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 13.59 ▼0.79 | 1.65 ▼0.03 | 39.21 ▲0.68 |
Dashboard /wp-admin | 2,222 ▲34 | 5.86 ▲0.77 | 110.75 ▲6.88 | 40.98 ▼0.33 |
Posts /wp-admin/edit.php | 2,104 ▲36 | 2.03 ▼0.00 | 38.37 ▲0.92 | 33.50 ▼1.58 |
Add New Post /wp-admin/post-new.php | 1,549 ▲28 | 23.17 ▼0.02 | 689.35 ▲9.74 | 53.68 ▼0.99 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.22 ▲0.09 | 101.51 ▼7.66 | 42.35 ▼3.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% 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
These attributes need to be fixed:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4 in my-country-states-for-woocommerce/assets to your readme.txt
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
my-country-states-for-woocommerce/my-country-states-for-woocommerce.php Passed 13 tests
Analyzing the main PHP file in "My Country States For WooCommerce" version 1.0.0
104 characters long description:
Add the states/provinces/districts/regions of missing countries on checkout billing and shipping fields.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin4,598 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 643 | 1,899 | 4,555 |
Markdown | 1 | 21 | 0 | 43 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.04 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 200 | |
▷ Static methods | 184 | 92.00% |
▷ Public methods | 196 | 98.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 2.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.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
PNG images were not found in this plugin