84% cf7-advanced-datepicker

Code Review | CF7 Advanced DatePicker

WordPress plugin CF7 Advanced DatePicker scored84%from 54 tests.

About plugin

  • Plugin page: cf7-advanced-date...
  • Plugin version: v1.0...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.0
  • WordPress version: 6.3.1
  • First release: Jun 29, 2014
  • Latest release: Sep 9, 2014
  • Number of updates: 32
  • Update frequency: every 2.3 days
  • Top authors: theajit (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /8,743 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
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.64ms] Passed 4 tests

Analyzing server-side resources used by CF7 Advanced DatePicker
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0441.20 ▲2.38
Dashboard /wp-admin3.34 ▲0.0452.16 ▼0.71
Posts /wp-admin/edit.php3.39 ▲0.0452.80 ▲1.06
Add New Post /wp-admin/post-new.php5.92 ▲0.0487.96 ▼29.30
Media Library /wp-admin/upload.php3.26 ▲0.0442.78 ▲6.55
CF7 Advanced DatePicker /wp-admin/options-general.php?page=datepicker_settings3.2333.30

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

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

Browser metrics Passed 4 tests

Checking browser requirements for CF7 Advanced DatePicker
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲4914.25 ▼0.121.82 ▲0.0647.98 ▲5.59
Dashboard /wp-admin2,201 ▲215.62 ▲0.0692.90 ▼1.6940.84 ▼5.60
Posts /wp-admin/edit.php2,106 ▲61.99 ▼0.0435.44 ▼0.4531.33 ▼3.71
Add New Post /wp-admin/post-new.php1,531 ▲323.63 ▲0.58686.71 ▲3.5954.83 ▲3.50
Media Library /wp-admin/upload.php1,406 ▲64.14 ▼0.03111.73 ▲3.0646.85 ▼0.23
CF7 Advanced DatePicker /wp-admin/options-general.php?page=datepicker_settings9632.0323.1928.33

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/cf7-advanced-datepicker/cf7-datepicker.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: contact form 7, contact form 7 date picker

cf7-advanced-datepicker/cf7-datepicker.php 85% from 13 tests

The primary PHP file in "CF7 Advanced DatePicker" version v1.0... is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "v1.0...")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cf7-advanced-datepicker.php" instead of "cf7-datepicker.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,274 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS236491,124
PHP1328134
JavaScript13116

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.57
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
13 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%
css/images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
css/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
css/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
css/images/ui-icons_888888_256x240.png4.27KB4.11KB▼ 3.78%