90% dco-address-field-for-contact-form-7

Code Review | DCO Address Field for Contact Form 7

WordPress plugin DCO Address Field for Contact Form 7 scored90%from 54 tests.

About plugin

  • Plugin page: dco-address-field...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9
  • WordPress version: 6.3.1
  • First release: Oct 10, 2017
  • Latest release: Apr 5, 2018
  • Number of updates: 9
  • Update frequency: every 19.7 days
  • Top authors: denisco (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,595 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
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼4.44ms] Passed 4 tests

An overview of server-side resources used by DCO Address Field for Contact Form 7
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0840.67 ▲2.20
Dashboard /wp-admin3.40 ▲0.0548.66 ▼15.47
Posts /wp-admin/edit.php3.45 ▲0.0952.55 ▲1.31
Add New Post /wp-admin/post-new.php5.98 ▲0.0997.17 ▼5.79
Media Library /wp-admin/upload.php3.32 ▲0.0938.43 ▲4.21
DCO Address Field for Contact Form 7 /wp-admin/options-general.php?page=dco-address-field-for-contact-form-73.2834.46

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by DCO Address Field for Contact Form 7
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.24 ▼1.522.13 ▲0.1744.51 ▲4.64
Dashboard /wp-admin2,225 ▲194.82 ▼0.32110.45 ▲5.6937.28 ▼5.60
Posts /wp-admin/edit.php2,104 ▲42.03 ▼0.0238.37 ▲2.0935.56 ▼2.78
Add New Post /wp-admin/post-new.php1,557 ▲1218.61 ▼4.55610.22 ▼59.1258.32 ▼2.00
Media Library /wp-admin/upload.php1,404 ▲44.19 ▼0.0096.59 ▼3.0740.24 ▼4.55
DCO Address Field for Contact Form 7 /wp-admin/options-general.php?page=dco-address-field-for-contact-form-78572.1824.4329.07

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: suggest, cf7, address field, address suggestion contact form 7, suggestion...

dco-address-field-for-contact-form-7/dco-address-field-for-contact-form-7.php 92% from 13 tests

The main file in "DCO Address Field for Contact Form 7" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected361 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3969321
JavaScript16040

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin