83% select-multiselect-field-contact-form-7

Code Review | Select and Multi-Select Field for Contact Form 7

WordPress plugin Select and Multi-Select Field for Contact Form 7 scored83%from 54 tests.

About plugin

  • Plugin page: select-multiselec...
  • Plugin version: 1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 7, 2019
  • Latest release: Dec 7, 2019
  • Number of updates: 10
  • Update frequency: every 3.1 days
  • Top authors: baldawayash15 (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

3,000+ active /9,530 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.02MB] [CPU: ▼3.09ms] Passed 4 tests

Server-side resources used by Select and Multi-Select Field for Contact Form 7
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.68 ▼2.69
Dashboard /wp-admin3.32 ▲0.0245.79 ▼7.11
Posts /wp-admin/edit.php3.44 ▲0.0849.44 ▼0.79
Add New Post /wp-admin/post-new.php5.90 ▲0.0293.88 ▼1.78
Media Library /wp-admin/upload.php3.25 ▲0.0247.22 ▲11.12

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Select and Multi-Select Field for Contact Form 7
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲10313.29 ▼1.401.89 ▼0.4340.06 ▼8.11
Dashboard /wp-admin2,219 ▲314.86 ▼1.01107.28 ▼8.7244.77 ▲2.89
Posts /wp-admin/edit.php2,102 ▲102.00 ▼0.0539.97 ▲3.9638.95 ▲6.99
Add New Post /wp-admin/post-new.php1,424 ▼9017.97 ▲0.35614.14 ▼75.0146.51 ▼13.60
Media Library /wp-admin/upload.php1,404 ▲194.29 ▲0.05100.87 ▼8.8743.66 ▼3.61

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

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
Everything seems fine, however this is by no means 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
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/select-multiselect-field-contact-form-7/includes/filter-tag.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/select-multiselect-field-contact-form-7/includes/tag.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/select-multiselect-field-contact-form-7/includes/form-tag.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed: The official readme.txt might help

select-multiselect-field-contact-form-7/select-multiselect-cf7.php 85% from 13 tests

"Select and Multi-Select Field for Contact Form 7" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("select-multiselect-field-contact-form-7.php" instead of "select-multiselect-cf7.php")

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
Good job! No executable or dangerous file extensions detected5,216 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript31,1803064,569
CSS2560426
PHP56323221

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.24
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin