Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▲1.34ms] Passed 4 tests
An overview of server-side resources used by Country Code Selector
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.78 ▲0.93 |
Dashboard /wp-admin | 3.33 ▲0.03 | 47.29 ▲3.09 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 48.14 ▲2.37 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 88.86 ▲5.23 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 34.20 ▼1.02 |
Country Code Selector /wp-admin/options-general.php?page=country-code-selector | 3.33 | 33.41 |
Server storage [IO: ▲0.99MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 38 new files
Database: no new tables, 17 new options
New WordPress options |
---|
widget_recent-comments |
selected_countries |
enable_on_woocommerce |
enable_on_shopp |
initial_country |
widget_recent-posts |
enable_on_gform |
enable_on_cform7 |
db_upgraded |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
Country Code Selector: 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,914 ▲157 | 13.61 ▼0.81 | 8.97 ▲6.91 | 37.08 ▼12.02 |
Dashboard /wp-admin | 2,210 ▲55 | 5.91 ▲0.26 | 100.11 ▲6.18 | 40.44 ▲0.40 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.03 | 39.26 ▲0.85 | 36.93 ▼1.30 |
Add New Post /wp-admin/post-new.php | 1,536 ▲2 | 23.32 ▲0.04 | 661.42 ▲16.82 | 65.10 ▲7.40 |
Media Library /wp-admin/upload.php | 1,383 ▼2 | 4.21 ▼0.03 | 100.00 ▲0.21 | 44.14 ▲0.52 |
Country Code Selector /wp-admin/options-general.php?page=country-code-selector | 3,452 | 2.70 | 50.66 | 60.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 17 options in the database
- enable_on_gform
- widget_recent-comments
- enable_on_cform7
- gform_phone_field_id
- show_selected
- selected_cform7
- widget_recent-posts
- db_upgraded
- selected_countries
- 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
Even though everything seems fine, this is not 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 errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/country-code-selector/admin/partials/country-code-selector-admin-display.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/country-code-selector/public/partials/country-code-selector-public-display.php:22
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (admin.png), #2 (woocommerce.png), #3 (gform.png), #4 (cform7.png)
country-code-selector/country-code-selector.php 85% from 13 tests
The main file in "Country Code Selector" v. 1.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 184 characters long)
- Requires at least: Required version must match the one declared in readme.txt ("6.2" instead of "7.8")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected4,619 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 182 | 472 | 2,223 |
CSS | 3 | 334 | 9 | 1,434 |
PHP | 12 | 205 | 636 | 716 |
JSON | 1 | 0 | 0 | 246 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 4 | 12.12% |
▷ Public methods | 28 | 84.85% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.15% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
11 PNG files occupy 0.52MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
cform7.png | 33.38KB | 9.82KB | ▼ 70.60% |
admin/images/cf7.png | 21.22KB | 7.31KB | ▼ 65.55% |
public/images/flags.png | 69.20KB | 23.42KB | ▼ 66.16% |
gform.png | 47.45KB | 13.65KB | ▼ 71.24% |
admin/images/gravityforms.png | 5.87KB | 6.13KB | 0.00% |