90% contact-form-7-city-field-extension

Code Review | Contact Form 7 City Field Extension

WordPress plugin Contact Form 7 City Field Extension scored90%from 54 tests.

About plugin

  • Plugin page: contact-form-7-ci...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Jun 28, 2014
  • Latest release: Jun 7, 2017
  • Number of updates: 14
  • Update frequency: every 76.9 days
  • Top authors: pasqualebucci (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

500+ active /12,851 total downloads

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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.25ms] Passed 4 tests

Server-side resources used by Contact Form 7 City Field Extension
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0643.79 ▲3.58
Dashboard /wp-admin3.36 ▲0.0650.78 ▼12.54
Posts /wp-admin/edit.php3.41 ▲0.0550.32 ▲0.62
Add New Post /wp-admin/post-new.php5.94 ▲0.0590.63 ▼7.29
Media Library /wp-admin/upload.php3.28 ▲0.0537.53 ▲2.21

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Contact Form 7 City Field Extension
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲10414.10 ▼0.3329.68 ▲27.9145.39 ▼2.51
Dashboard /wp-admin2,227 ▲394.85 ▼1.18107.11 ▼10.5146.54 ▼4.19
Posts /wp-admin/edit.php2,110 ▲182.05 ▲0.0243.81 ▼2.9640.99 ▲2.61
Add New Post /wp-admin/post-new.php1,529 ▲1523.31 ▲5.83673.06 ▼30.3756.62 ▼4.02
Media Library /wp-admin/upload.php1,403 ▲154.41 ▲0.29113.37 ▼7.0250.90 ▲2.16

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
The official readme.txt is a good inspiration

contact-form-7-city-field-extension/contact-form-7-city-field-extension.php Passed 13 tests

The entry point to "Contact Form 7 City Field Extension" version 1.3 is a PHP file that has certain tags in its header comment area
114 characters long description:
Provides a text input field for city search, based on Google Place Autocomplete library. Requires Contact Form 7.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin263 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP18443210
CSS15347
JavaScript1126

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin