Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▲1.19ms] Passed 4 tests
Server-side resources used by All Countries Counties For WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.19 ▼6.29 |
Dashboard /wp-admin | 3.31 ▲0.01 | 54.11 ▲5.11 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 49.75 ▲6.29 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 97.31 ▲7.11 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.92 ▼0.37 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
All Countries Counties For WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.16 ▼1.52 | 1.52 ▼0.37 | 42.45 ▼9.59 |
Dashboard /wp-admin | 2,212 ▲24 | 5.88 ▲0.84 | 107.24 ▼1.94 | 39.14 ▼6.37 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.15 ▲0.12 | 39.65 ▲2.77 | 35.66 ▼3.82 |
Add New Post /wp-admin/post-new.php | 1,548 ▲6 | 18.14 ▼0.01 | 604.85 ▼9.53 | 56.94 ▲1.75 |
Media Library /wp-admin/upload.php | 1,397 ▲12 | 4.24 ▼0.00 | 96.90 ▼4.76 | 47.78 ▲5.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please take a closer look at the following
- 42× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/all-countries-counties-for-wc/local-governments/NG/KW.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/all-countries-counties-for-wc/local-governments/NG/ED.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/all-countries-counties-for-wc/local-governments/NG/KE.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/all-countries-counties-for-wc/local-governments/NG/NI.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/all-countries-counties-for-wc/local-governments/NG/KO.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/all-countries-counties-for-wc/local-governments/NG/ON.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/all-countries-counties-for-wc/states/GB.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/all-countries-counties-for-wc/local-governments/NG/OG.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/all-countries-counties-for-wc/local-governments/NG/LA.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/all-countries-counties-for-wc/local-governments/NG/KN.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: e-commerce, woocommerce-nigerian-states, woocommerce-counties, woocommerce-nigerian-lga, woocommerce-kenya-pronvinces...
all-countries-counties-for-wc/all-countries-counties-for-wc.php Passed 13 tests
"All Countries Counties For WooCommerce" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
91 characters long description:
A Wordpress WooCommerce Plugin that add counties/provinces/states for WooCommerce Countries
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
Everything looks great! No dangerous files found in this plugin1,679 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 43 | 73 | 346 | 1,529 |
Markdown | 1 | 36 | 0 | 79 |
JavaScript | 1 | 11 | 25 | 71 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin