84% current-date-free

Code Review | Current Date Free

WordPress plugin Current Date Free scored84%from 54 tests.

About plugin

  • Plugin page: current-date-free
  • Plugin version: 2.0
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.6
  • WordPress version: 6.3.1
  • First release: Mar 13, 2020
  • Latest release: Jan 30, 2021
  • Number of updates: 15
  • Update frequency: every 22.9 days
  • Top authors: ddeleeuw (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /593 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼9.25ms] Passed 4 tests

This is a short check of server-side resources used by Current Date Free
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.47 ▼0.67
Dashboard /wp-admin3.32 ▲0.0243.78 ▼7.44
Posts /wp-admin/edit.php3.38 ▲0.0248.48 ▼4.18
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.56 ▼24.72
Media Library /wp-admin/upload.php3.25 ▲0.0239.47 ▲1.49
Current Date /wp-admin/options-general.php?page=lwcd-current-date-free3.2126.93

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Current Date Free
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.27 ▼0.111.89 ▼0.3539.94 ▼4.05
Dashboard /wp-admin2,196 ▲165.57 ▼0.0896.32 ▲5.3942.43 ▼2.28
Posts /wp-admin/edit.php2,104 ▲42.02 ▼0.0140.01 ▲1.7336.58 ▼0.31
Add New Post /wp-admin/post-new.php1,557 ▲2118.35 ▼4.83619.02 ▼58.9460.28 ▲0.59
Media Library /wp-admin/upload.php1,404 ▲14.29 ▲0.03102.35 ▲4.0541.65 ▼4.83
Current Date /wp-admin/options-general.php?page=lwcd-current-date-free1,1152.1425.2135.66

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

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
Even though no errors were found, 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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/current-date-free/lw-current-date.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side


Plugin configuration 96% from 29 tests

readme.txt Passed 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
8 plugin tags: copyright, shortcode, current year shortcode, current year, time...

current-date-free/lw-current-date.php 92% from 13 tests

The main PHP file in "Current Date Free" ver. 2.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("current-date-free.php" instead of "lw-current-date.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin132 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview 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.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 functions9100.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
No PNG files were detected