10% time-clock

Code Review | Time Clock - A WordPress Employee & Volunteer Time Clock Plugin

WordPress plugin Time Clock - A WordPress Employee & Volunteer Time Clock Plugin scored10%from 54 tests.

About plugin

  • Plugin page: time-clock
  • Plugin version: 1.2.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Apr 17, 2018
  • Latest release: Jun 7, 2023
  • Number of updates: 26
  • Update frequency: every 72.2 days
  • Top authors: scottpaterson (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

600+ active /9,483 total downloads

Benchmarks

Plugin footprint 57% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/time-clock/includes/functions.php+59
    Undefined index: default

Server metrics [RAM: ▲0.35MB] [CPU: ▼8.76ms] 75% from 4 tests

A check of server-side resources used by Time Clock - A WordPress Employee & Volunteer Time Clock Plugin
It is recommended to improve the following
  • CPU: You should keep total CPU usage under 500.00ms (currently 834.57ms on /wp-admin/admin.php?page=etimeclockwp_extensions_page)
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2441.71 ▲3.58
Dashboard /wp-admin3.70 ▲0.3552.36 ▼12.21
Posts /wp-admin/edit.php3.82 ▲0.4650.43 ▲6.64
Add New Post /wp-admin/post-new.php6.30 ▲0.4182.77 ▼25.56
Media Library /wp-admin/upload.php3.63 ▲0.3936.39 ▼0.86
Activity /wp-admin/edit.php?post_type=etimeclockwp_clock3.6739.81
Users /wp-admin/edit.php?post_type=etimeclockwp_users3.6737.42
Plugins /wp-admin/admin.php?page=etimeclockwp_extensions_page5.87834.57
Settings /wp-admin/admin.php?page=etimeclockwp_settings_page3.6034.51

Server storage [IO: ▲0.38MB] [DB: ▲0.28MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 9 new options
New WordPress options
etimeclockwp_settings
widget_theysaidso_widget
db_upgraded
can_compress_scripts
etimeclockwp_install_date
widget_recent-comments
etimeclockwp_firstrun
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Time Clock - A WordPress Employee & Volunteer Time Clock Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,124 ▲37814.57 ▲0.1911.20 ▲9.4143.58 ▼0.85
Dashboard /wp-admin2,392 ▲2015.41 ▼0.48110.73 ▲10.5387.89 ▲45.33
Posts /wp-admin/edit.php2,270 ▲1812.57 ▲0.5540.80 ▲4.1539.89 ▲4.81
Add New Post /wp-admin/post-new.php1,701 ▲16823.39 ▲0.03694.03 ▲105.1443.47 ▼12.93
Media Library /wp-admin/upload.php1,591 ▲2034.69 ▲0.50101.14 ▼1.6882.25 ▲39.21
Activity /wp-admin/edit.php?post_type=etimeclockwp_clock1,2472.4639.0732.45
Users /wp-admin/edit.php?post_type=etimeclockwp_users1,2182.5336.9033.90
Plugins /wp-admin/admin.php?page=etimeclockwp_extensions_page1,3072.2230.0749.63
Settings /wp-admin/admin.php?page=etimeclockwp_settings_page1,8223.1759.6738.15

Uninstaller [IO: ▲0.00MB] [DB: ▲0.28MB] 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 detected upon uninstall: 8 options
    • theysaidso_admin_options
    • etimeclockwp_settings
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • etimeclockwp_install_date

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: timeclock, volunteer, employee, clock, time

time-clock/timeclock.php 85% from 13 tests

"Time Clock - A WordPress Employee & Volunteer Time Clock Plugin" version 1.2.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("time-clock.php" instead of "timeclock.php")

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 plugin8,038 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript81,0316585,610
PHP168642821,991
CSS3986437

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions68
▷ Named functions68100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin