83% datetime-picker

Code Review | Easy Date and Time Picker

WordPress plugin Easy Date and Time Picker scored83%from 54 tests.

About plugin

  • Plugin page: datetime-picker
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.9.5
  • WordPress version: 6.3.1
  • First release: May 2, 2018
  • Latest release: May 3, 2018
  • Number of updates: 12
  • Update frequency: every 0.1 days
  • Top authors: trendbydesigns (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,092 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼0.88ms] Passed 4 tests

A check of server-side resources used by Easy Date and Time Picker
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.19 ▲1.05
Dashboard /wp-admin3.31 ▲0.0152.70 ▼4.60
Posts /wp-admin/edit.php3.36 ▲0.0150.08 ▼0.95
Add New Post /wp-admin/post-new.php5.89 ▲0.01102.49 ▲5.75
Media Library /wp-admin/upload.php3.24 ▲0.0138.43 ▲0.98

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Easy Date and Time Picker
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲15114.33 ▼0.0226.46 ▲24.8942.70 ▲0.44
Dashboard /wp-admin2,199 ▲185.65 ▼0.0794.41 ▼11.3438.13 ▼4.77
Posts /wp-admin/edit.php2,104 ▲222.03 ▼0.0136.80 ▼1.8537.16 ▲1.83
Add New Post /wp-admin/post-new.php1,530 ▼123.53 ▲0.36701.45 ▼40.2554.70 ▼10.74
Media Library /wp-admin/upload.php1,401 ▲14.20 ▲0.02102.61 ▼0.1845.43 ▼2.58

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • 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
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/datetime-picker/Datetime-Picker.php:26

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 on the user side


Plugin configuration 79% from 29 tests

readme.txt 81% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add descriptions for these screenshots #0, #0 in datetime-picker/assets to your readme.txt
  • Screenshots: Add an image for screenshot #1 (screenshots.png)
  • Stable tag: No string
The official readme.txt is a good inspiration

datetime-picker/Datetime-Picker.php 77% from 13 tests

The main PHP file in "Easy Date and Time Picker" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 213 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("datetime-picker.php" instead of "Datetime-Picker.php")
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin836 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icon.png1.28KB0.45KB▼ 64.40%