78% aio-time-clock-lite

Code Review | All in One Time Clock Lite - Tracking Employee Time Has Never Been Easier

WordPress plugin All in One Time Clock Lite - Tracking Employee Time Has Never Been Easier scored78%from 54 tests.

About plugin

  • Plugin page: aio-time-clock-lite
  • Plugin version: 1.3.323
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Jun 7, 2018
  • Latest release: Nov 12, 2023
  • Number of updates: 135
  • Update frequency: every 14.7 days
  • Top authors: codebangers (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

600+ active /25,471 total downloads

Benchmarks

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.12MB] [CPU: ▲10.02ms] Passed 4 tests

A check of server-side resources used by All in One Time Clock Lite - Tracking Employee Time Has Never Been Easier
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1055.77 ▲10.52
Dashboard /wp-admin3.43 ▲0.1363.96 ▲14.95
Posts /wp-admin/edit.php3.55 ▲0.1961.92 ▲10.72
Add New Post /wp-admin/post-new.php6.04 ▲0.15102.15 ▲4.79
Media Library /wp-admin/upload.php3.36 ▲0.1349.39 ▲14.04
Settings /wp-admin/admin.php?page=aio-tc-lite3.4651.40
Reports /wp-admin/admin.php?page=aio-reports-sub3.3649.17
Shifts /wp-admin/admin.php?page=aio-shifts-sub3.3042.74
Departments /wp-admin/edit-tags.php?taxonomy=department3.4449.24
Employees /wp-admin/admin.php?page=aio-employees-sub3.3849.14
Real Time Monitoring /wp-admin/admin.php?page=aio-monitoring-sub3.3849.01
Departments /wp-admin/admin.php?page=aio-department-sub3.3045.60

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 100 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_aio_time_clock_lite_widgets
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for All in One Time Clock Lite - Tracking Employee Time Has Never Been Easier
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,945 ▲18313.90 ▼0.459.80 ▲8.1441.53 ▼2.55
Dashboard /wp-admin2,260 ▲865.71 ▲0.0985.11 ▼14.5638.67 ▼6.77
Posts /wp-admin/edit.php2,168 ▲712.22 ▲0.2837.83 ▲1.7434.75 ▼4.63
Add New Post /wp-admin/post-new.php1,581 ▲5423.26 ▲0.01680.20 ▼31.3335.45 ▼19.36
Media Library /wp-admin/upload.php1,462 ▲624.30 ▲0.11100.15 ▼11.3343.84 ▼2.01
Settings /wp-admin/admin.php?page=aio-tc-lite3,2361.7527.5440.67
Reports /wp-admin/admin.php?page=aio-reports-sub1,3952.0333.5230.10
Shifts /wp-admin/admin.php?page=aio-shifts-sub1,8432.8237.5239.01
Departments /wp-admin/edit-tags.php?taxonomy=department1,3142.2528.4231.39
Employees /wp-admin/admin.php?page=aio-employees-sub9411.7527.0031.94
Real Time Monitoring /wp-admin/admin.php?page=aio-monitoring-sub9281.7125.5430.08
Departments /wp-admin/admin.php?page=aio-department-sub2,0082.6035.2737.42

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • widget_aio_time_clock_lite_widgets
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=aio-department-sub
    • > Warning in wp-includes/pluggable.php+1438
    Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)

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
The following issues need your attention
  • 15× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/aio-time-clock-lite/aio-settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/aio-time-clock-lite/aio-monitoring.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_x() in wp-content/plugins/aio-time-clock-lite/aio-report-wizard.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/aio-time-clock-lite/aio-employee-profile.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_x() in wp-content/plugins/aio-time-clock-lite/aio-get-pro.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_custom() in wp-content/plugins/aio-time-clock-lite/aio-time-clock-box-content.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/aio-time-clock-lite/aio-reports.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/aio-time-clock-lite/aio-employees.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/aio-time-clock-lite/aio-time-clock-lite-widgets.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/aio-time-clock-lite/templates/time-clock-style1.php:5

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, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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 your attention:
  • Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
Please take inspiration from this readme.txt

aio-time-clock-lite/aio-time-clock-lite.php 92% from 13 tests

Analyzing the main PHP file in "All in One Time Clock Lite - Tracking Employee Time Has Never Been Easier" version 1.3.323
Please take the time to fix the following:
  • Plugin Name: Please shorten the plugin name (currently 73 characters long instead of max. 70)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected7,575 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
PO File71,2911,5262,768
PHP17178462,190
CSS5293661,682
JavaScript43740935

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity43.33
▷ Minimum class complexity1.00
▷ Maximum class complexity120.00
Average method complexity2.55
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods82
▷ Static methods11.22%
▷ Public methods82100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
46 PNG files occupy 1.09MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/pro/4-reports.png50.24KB26.22KB▼ 47.80%
images/sort_asc.png0.16KB0.25KB0.00%
images/graph-sample.png9.52KB5.02KB▼ 47.33%
images/pro/11-extendable.png58.65KB29.35KB▼ 49.96%
images/sort_both.png0.20KB0.29KB0.00%