89% country-state-city-auto-dropdown

Code Review | Country State City Dropdown CF7

WordPress plugin Country State City Dropdown CF7 scored89%from 54 tests.

About plugin

  • Plugin page: country-state-cit...
  • Plugin version: 2.7.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.0
  • WordPress version: 6.3.1
  • First release: Apr 1, 2020
  • Latest release: Jul 4, 2022
  • Number of updates: 88
  • Update frequency: every 9.4 days
  • Top authors: trustyplugins (100%)

Code review

54 tests

User reviews

27 reviews

Install metrics

6,000+ active /32,573 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.02ms] Passed 4 tests

This is a short check of server-side resources used by Country State City Dropdown CF7
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0332.88 ▼2.64
Dashboard /wp-admin3.33 ▲0.0348.24 ▲4.12
Posts /wp-admin/edit.php3.38 ▲0.0345.31 ▼2.97
Add New Post /wp-admin/post-new.php5.91 ▲0.0380.19 ▼13.65
Media Library /wp-admin/upload.php3.26 ▲0.0334.59 ▼0.82

Server storage [IO: ▲4.44MB] [DB: ▲3.82MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 21 new files
Database: 3 new tables, 8 new options
New tables
wp_state
wp_city
wp_countries
New WordPress options
widget_recent-comments
db_upgraded
tc_auto_plugin_version
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
tc_auto_plugin

Browser metrics Passed 4 tests

A check of browser resources used by Country State City Dropdown CF7
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲3214.24 ▼0.331.62 ▼0.4928.06 ▼15.25
Dashboard /wp-admin2,201 ▲215.61 ▼0.0187.91 ▲2.5241.60 ▲3.76
Posts /wp-admin/edit.php2,112 ▲152.02 ▼0.0137.57 ▲0.7537.60 ▲0.89
Add New Post /wp-admin/post-new.php1,538 ▲1023.51 ▲0.54685.12 ▼9.7356.39 ▼0.40
Media Library /wp-admin/upload.php1,415 ▲154.29 ▲0.08104.64 ▼14.1348.72 ▲0.89

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 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
5 plugin tags: forms, contact form 7, states, country dropdown, cities

country-state-city-auto-dropdown/country-state-city-dropdown-cf7.php 69% from 13 tests

The principal PHP file in "Country State City Dropdown CF7" v. 2.7.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 190 characters long)
  • Git Repository: There should be no Git repositories present in your plugin
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("country-state-city-auto-dropdown.php" instead of "country-state-city-dropdown-cf7.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin147,883 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP1210671147,651
JavaScript448142
PO File1202950
CSS10040

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions31
▷ Named functions31100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin