89% date-picker-for-contact-form-7

Code Review | Date Picker For Contact Form 7

WordPress plugin Date Picker For Contact Form 7 scored89%from 54 tests.

About plugin

  • Plugin page: date-picker-for-c...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 15, 2023
  • Latest release: Sep 12, 2023
  • Number of updates: 10
  • Update frequency: every 20.9 days
  • Top authors: gravitymaster97 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /1,072 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼8.18ms] Passed 4 tests

A check of server-side resources used by Date Picker For Contact Form 7
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.74 ▼4.71
Dashboard /wp-admin3.31 ▲0.0145.21 ▼1.42
Posts /wp-admin/edit.php3.36 ▲0.0046.85 ▼2.52
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.69 ▼24.04
Media Library /wp-admin/upload.php3.23 ▲0.0032.57 ▼1.45

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 371 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Date Picker For Contact Form 7: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.81 ▲0.441.79 ▲0.1341.50 ▼0.31
Dashboard /wp-admin2,206 ▲185.91 ▲0.04110.59 ▲8.1041.23 ▼4.73
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0439.07 ▲1.1936.05 ▼0.09
Add New Post /wp-admin/post-new.php1,514 ▼2817.54 ▼0.56680.57 ▲66.9254.89 ▲4.53
Media Library /wp-admin/upload.php1,385 ▼34.21 ▼0.0293.47 ▼0.4342.35 ▼3.34

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes: The official readme.txt is a good inspiration

date-picker-for-contact-form-7/date-picker-for-contact-from-7.php 92% from 13 tests

The main PHP file in "Date Picker For Contact Form 7" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("date-picker-for-contact-form-7.php" instead of "date-picker-for-contact-from-7.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin41,305 lines of code in 58 files:
LanguageFilesBlank linesComment linesLines of code
CSS511,3501,97540,700
PHP57723379
JavaScript2113226

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity6.50
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.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 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
311 PNG files occupy 0.99MB with 0.57MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assents/jquery-ui-themes/themes/le-frog/images/ui-bg_diagonals-small_0_aaaaaa_40x40.png0.31KB0.08KB▼ 73.50%
assents/jquery-ui-themes/themes/vader/images/ui-icons_666666_256x240.png7.00KB4.18KB▼ 40.22%
assents/jquery-ui-themes/themes/excite-bike/images/ui-bg_diagonals-thick_26_2293f7_40x40.png0.50KB0.15KB▼ 69.57%
assents/jquery-ui-themes/themes/mint-choc/images/ui-bg_gloss-wave_25_453326_500x100.png5.82KB1.90KB▼ 67.41%
assents/jquery-ui-themes/themes/base/images/ui-icons_ffffff_256x240.png6.39KB4.18KB▼ 34.52%