79% dynamic-dates

Code Review | Dynamic Dates

WordPress plugin Dynamic Dates scored 79% from 54 tests.

About plugin

  • Plugin page: dynamic-dates
  • Plugin version: 2.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.2
  • WordPress version: 6.3.1
  • First release: May 3, 2011
  • Latest release: May 9, 2015
  • Number of updates: 91
  • Update frequency: every 16.1 days
  • Top authors: jasonhendriks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 6,937 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.03MB] [CPU: ▲0.82ms] Passed 4 tests

Analyzing server-side resources used by Dynamic Dates
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0347.59 ▲5.47
Dashboard /wp-admin3.33 ▲0.0352.23 ▲6.13
Posts /wp-admin/edit.php3.45 ▲0.0946.01 ▼2.46
Add New Post /wp-admin/post-new.php5.91 ▲0.0389.96 ▼4.54
Media Library /wp-admin/upload.php3.26 ▲0.0340.72 ▲4.80
Dynamic Dates /wp-admin/options-general.php?page=dynamic-dates3.2032.19

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Dynamic Dates
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲1513.28 ▼0.021.84 ▲0.0550.01 ▲10.24
Dashboard /wp-admin2,210 ▲45.80 ▼0.0897.15 ▼9.0939.20 ▼10.74
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0241.96 ▲2.6438.24 ▲2.75
Add New Post /wp-admin/post-new.php1,536 ▲2223.16 ▲5.60673.68 ▼75.9658.04 ▼8.40
Media Library /wp-admin/upload.php1,392 ▲74.23 ▼0.06102.91 ▼1.7646.84 ▼0.14
Dynamic Dates /wp-admin/options-general.php?page=dynamic-dates9492.0329.1850.74

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

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=dynamic-dates
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=dynamic-dates
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 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
Please fix the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/dynamic-dates/Core.php:47
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/dynamic-dates/Core.php:47

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: dynamic, times, dates, formatting, calculator...

dynamic-dates/dynamic-dates.php Passed 13 tests

"Dynamic Dates" version 2.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
82 characters long description:
A WordPress plugin that calculates relative dates dynamically in your post or page

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
No dangerous file extensions were detected563 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP630139550
XML10011
INI1002

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity7.00
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity1.95
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods44
▷ Static methods12.27%
▷ Public methods3477.27%
▷ Protected methods00.00%
▷ Private methods1022.73%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants00.00%
▷ Class constants15100.00%
▷ Public constants15100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin