84% dropdown-search-option-for-contact-form-7

Code Review | Dropdown Search Option for Contact Form 7

WordPress plugin Dropdown Search Option for Contact Form 7 scored84%from 54 tests.

About plugin

  • Plugin page: dropdown-search-o...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.2.2
  • WordPress version: 6.3.1
  • First release: Aug 30, 2022
  • Latest release: Jul 3, 2023
  • Number of updates: 5
  • Update frequency: every 61.6 days
  • Top authors: howdytheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /799 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.00MB] [CPU: ▼11.06ms] Passed 4 tests

This is a short check of server-side resources used by Dropdown Search Option for Contact Form 7
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.92 ▲2.04
Dashboard /wp-admin3.32 ▼0.0344.75 ▼15.89
Posts /wp-admin/edit.php3.37 ▲0.0141.01 ▼6.41
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.49 ▼20.35
Media Library /wp-admin/upload.php3.24 ▲0.0132.45 ▼1.59

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Dropdown Search Option for Contact Form 7
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲16713.85 ▼0.8813.94 ▲12.0047.11 ▲1.99
Dashboard /wp-admin2,206 ▲184.82 ▼1.0699.73 ▼21.3039.91 ▼7.57
Posts /wp-admin/edit.php2,086 ▼32.03 ▲0.0234.90 ▼2.6131.74 ▼5.61
Add New Post /wp-admin/post-new.php1,514 ▼2117.76 ▼5.36699.79 ▲60.3955.20 ▲3.22
Media Library /wp-admin/upload.php1,388 ▼34.24 ▼0.1795.75 ▼4.3242.96 ▼1.78

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/dropdown-search-option-for-contact-form-7/dropdown-search-option-for-contact-form-7.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention: You can take inspiration from this readme.txt

dropdown-search-option-for-contact-form-7/dropdown-search-option-for-contact-form-7.php Passed 13 tests

"Dropdown Search Option for Contact Form 7" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
73 characters long description:
This plugin Make search option in drop-down menu field in Contact Form 7.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin29 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1151015
JavaScript21313
CSS1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected