Office Hours Security & Risk Analysis

wordpress.org/plugins/office-hours

Work Schedule - Time Table.

10 active installs v1.1.1 PHP + WP 3.1+ Updated Feb 19, 2013
office-hoursopenning-hourstimetime-tablewidget
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Office Hours Safe to Use in 2026?

Generally Safe

Score 85/100

Office Hours has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 13yr ago
Risk Assessment

The "office-hours" plugin version 1.1.1 presents a mixed security profile. On the positive side, the plugin has no recorded vulnerabilities (CVEs) and demonstrates good practices by exclusively using prepared statements for its single SQL query. Furthermore, the attack surface is minimal, with only one shortcode and no AJAX handlers, REST API routes, or cron events that are exposed without authentication or permission checks.

However, there are significant concerns within the static analysis. The presence of the `create_function` dangerous function is a critical red flag, as it can lead to serious security vulnerabilities if not handled with extreme care, potentially allowing for arbitrary code execution. Additionally, the output escaping rate is alarmingly low at 15%, indicating a high risk of Cross-Site Scripting (XSS) vulnerabilities. The complete absence of nonce checks and capability checks on the few entry points further exacerbates these risks, making it easier for unauthenticated or unauthorized users to trigger potentially vulnerable code paths.

The lack of historical vulnerabilities might suggest a low profile or perhaps that past issues have been minor or not publicly disclosed. However, relying on this trend without addressing the immediate code-level risks would be imprudent. The plugin's strengths lie in its limited attack surface and safe SQL handling, but the severe weaknesses in output escaping and the use of dangerous functions necessitate immediate attention to prevent potential security breaches.

Key Concerns

  • Dangerous function create_function used
  • Low output escaping rate (15%)
  • Missing nonce checks
  • Missing capability checks
Vulnerabilities
None known

Office Hours Security Vulnerabilities

No known vulnerabilities — this is a good sign.
Code Analysis
Analyzed Mar 16, 2026

Office Hours Code Analysis

Dangerous Functions
2
Raw SQL Queries
0
1 prepared
Unescaped Output
106
18 escaped
Nonce Checks
0
Capability Checks
0
File Operations
0
External Requests
0
Bundled Libraries
0

Dangerous Functions Found

create_functionadd_action( 'widgets_init', create_function('', 'return register_widget("OpeningHours_Schedule");') office-hours.php:26
create_functionadd_action( 'widgets_init', create_function('', 'return register_widget("OpeningHours_Today");') );office-hours.php:28

SQL Query Safety

100% prepared1 total queries

Output Escaping

15% escaped124 total outputs
Attack Surface

Office Hours Attack Surface

Entry Points1
Unprotected0

Shortcodes 1

[OpeningHours_schedule] office-hours.php:29
WordPress Hooks 6
actionadmin_menuoffice-hours.php:22
actionadmin_initoffice-hours.php:24
actionwidgets_initoffice-hours.php:26
actionwidgets_initoffice-hours.php:28
actionadmin_footeroffice-hours.php:30
actionadmin_enqueue_scriptsoffice-hours.php:31
Maintenance & Trust

Office Hours Maintenance & Trust

Maintenance Signals

WordPress version tested3.5.2
Last updatedFeb 19, 2013
PHP min version
Downloads3K

Community Trust

Rating80/100
Number of ratings2
Active installs10
Developer Profile

Office Hours Developer Profile

JohnnyPea

8 plugins · 140 total installs

85
trust score
Avg Security Score
87/100
Avg Patch Time
30 days
View full developer profile
Detection Fingerprints

How We Detect Office Hours

Patterns used to identify this plugin on WordPress sites during automated security audits and web crawling.

Asset Fingerprints

Asset Paths
/wp-content/plugins/office-hours/css/opening-hours.css/wp-content/plugins/office-hours/js/opening-hours.js
Version Parameters
office-hours/css/opening-hours.css?ver=office-hours/js/opening-hours.js?ver=

HTML / DOM Fingerprints

CSS Classes
opening_hours_wrap
HTML Comments
<!-- Office Hours Settings --><!-- END Office Hours Settings -->
Data Attributes
data-day
JS Globals
office_hours_vars
Shortcode Output
<ul><li>Pon:<li>Uto:<li>Str:<li>Štv:
FAQ

Frequently Asked Questions about Office Hours