73% clockify-lite

Code Review | Clockinator Lite

WordPress plugin Clockinator Lite scored 73% from 54 tests.

About plugin

  • Plugin page: clockify-lite
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Mar 3, 2021
  • Latest release: Apr 23, 2023
  • Number of updates: 38
  • Update frequency: every 20.6 days
  • Top authors: beastthemes (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 3,799 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.17MB] [CPU: ▲0.52ms] Passed 4 tests

An overview of server-side resources used by Clockinator Lite
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0736.64 ▼10.03
Dashboard /wp-admin3.51 ▲0.2162.17 ▲13.79
Posts /wp-admin/edit.php3.56 ▲0.2160.34 ▲6.83
Add New Post /wp-admin/post-new.php6.09 ▲0.2195.34 ▼8.51
Media Library /wp-admin/upload.php3.44 ▲0.2150.97 ▲17.31
Go Pro /wp-admin/admin.php?page=clockify-lite-help3.5053.44
Dashboard /wp-admin/admin.php?page=clockify-lite-panel3.5356.24
Targets /wp-admin/admin.php?page=clockify-lite-target3.5050.39
Departments /wp-admin/admin.php?page=clockify-lite-department3.5150.77
Holidays /wp-admin/admin.php?page=clockify-lite-holidays3.5247.99
Settings /wp-admin/admin.php?page=clockify-lite-settings4.8952.57
Leaves /wp-admin/admin.php?page=clockify-lite-leaves3.5147.86
Events /wp-admin/admin.php?page=clockify-lite-events3.5151.01
Our Products /wp-admin/admin.php?page=clockify-lite-products3.4746.93
Shifts /wp-admin/admin.php?page=clockify-lite-shift3.5450.64

Server storage [IO: ▲9.27MB] [DB: ▲0.02MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 1,733 new files
Database: 10 new tables, 12 new options
New tables
wp_btcl_requests
wp_btcl_reports
wp_btcl_shifts
wp_btcl_departments
wp_btcl_targets
wp_btcl_holidays
wp_btcl_events
wp_btcl_leaves
wp_btcl_notices
wp_btcl_employees
New WordPress options
btcl_settings
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
btcl_sms_templates
clockify_dashboard
db_upgraded
widget_recent-posts
btcl_string_translation
...

Browser metrics Passed 4 tests

An overview of browser requirements for Clockinator Lite
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,038 ▲29215.12 ▲0.8117.01 ▲15.1532.65 ▼10.01
Dashboard /wp-admin2,311 ▲1235.89 ▲0.94102.74 ▲0.2242.77 ▼3.76
Posts /wp-admin/edit.php2,191 ▲1022.18 ▲0.1538.10 ▼2.9835.14 ▼1.52
Add New Post /wp-admin/post-new.php1,611 ▲9822.97 ▲5.47638.33 ▲44.0251.07 ▲4.62
Media Library /wp-admin/upload.php1,493 ▲1024.19 ▲0.01103.33 ▼2.2755.33 ▲11.26
Go Pro /wp-admin/admin.php?page=clockify-lite-help2,0204.1658.32114.75
Dashboard /wp-admin/admin.php?page=clockify-lite-panel2,1984.7068.3187.83
Targets /wp-admin/admin.php?page=clockify-lite-target1,9254.2450.6081.15
Departments /wp-admin/admin.php?page=clockify-lite-department2,4635.4179.3169.60
Holidays /wp-admin/admin.php?page=clockify-lite-holidays2,3644.9467.1988.15
Settings /wp-admin/admin.php?page=clockify-lite-settings5,3864.4155.8183.40
Leaves /wp-admin/admin.php?page=clockify-lite-leaves2,1804.8562.6071.74
Events /wp-admin/admin.php?page=clockify-lite-events2,1544.3061.6675.74
Our Products /wp-admin/admin.php?page=clockify-lite-products1,9504.1350.8177.66
Shifts /wp-admin/admin.php?page=clockify-lite-shift2,2384.5158.1772.25

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie tables detected upon uninstall: 10 tables
    • wp_btcl_reports
    • wp_btcl_holidays
    • wp_btcl_departments
    • wp_btcl_employees
    • wp_btcl_shifts
    • wp_btcl_events
    • wp_btcl_requests
    • wp_btcl_targets
    • wp_btcl_leaves
    • wp_btcl_notices
  • Zombie WordPress options were found after uninstall: 12 options
    • clockify_dashboard
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • btcl_sms_templates
    • widget_recent-posts
    • db_upgraded
    • btcl_settings
    • btcl_email_templates
    • btcl_string_translation
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 29× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_sql() in wp-content/plugins/clockify-lite/public/inc/views/clock-profile.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/clockify-lite/admin/inc/settings/clock-general-settings.php:2
    • > PHP Fatal error
      require_once(): Failed opening required 'BTCLite_PLUGIN_DIR_PATH/admin/inc/views/nav/nav.php' (include_path='.:/usr/share/php') in wp-content/plugins/clockify-lite/admin/inc/controllers/clock-help-panel.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'BTCLite_Helper' not found in wp-content/plugins/clockify-lite/public/inc/views/clock-reports.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/clockify-lite/admin/inc/views/nav/nav.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/clockify-lite/public/inc/templates/dashboard-template.php:2
    • > PHP Warning
      Use of undefined constant BTCLite_PLUGIN_DIR_PATH - assumed 'BTCLite_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/clockify-lite/admin/inc/controllers/clock-help-panel.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/clockify-lite/public/inc/views/targets/target.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/clockify-lite/uninstall.php:3
    • > PHP Fatal error
      require_once(): Failed opening required 'BTCLite_PLUGIN_DIR_PATH/admin/inc/views/nav/nav.php' (include_path='.:/usr/share/php') in wp-content/plugins/clockify-lite/admin/inc/controllers/clock-products-panel.php on line 2

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 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6, #7, #8, #9 in clockify-lite/assets to your readme.txt
  • Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

clockify-lite/clockify-lite.php 85% from 13 tests

The primary PHP file in "Clockinator Lite" version 1.0.7 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 247 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected64,307 lines of code in 1,706 files:
LanguageFilesBlank linesComment linesLines of code
CSS247,03432936,121
SVG1,61501216,000
PHP547422559,359
JavaScript122011162,041
PO File1372820786

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity30.24
▷ Minimum class complexity1.00
▷ Maximum class complexity243.00
Average method complexity4.63
▷ Minimum method complexity1.00
▷ Maximum method complexity49.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes21
▷ Abstract classes00.00%
▷ Concrete classes21100.00%
▷ Final classes14.76%
Methods169
▷ Static methods16798.82%
▷ Public methods16698.22%
▷ Protected methods10.59%
▷ Private methods21.18%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.40MB with 0.31MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/clockify-lite.png6.83KB1.66KB▼ 75.73%
assets/images/projectify.png403.94KB92.00KB▼ 77.22%