73% udssl-time-tracker

Code Review | UDSSL Time Tracker

WordPress plugin UDSSL Time Tracker scored73%from 54 tests.

About plugin

  • Plugin page: udssl-time-tracker
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.1
  • WordPress version: 6.3.1
  • First release: Nov 3, 2013
  • Latest release: Oct 2, 2021
  • Number of updates: 18
  • Update frequency: every 160.6 days
  • Top authors: UDSSL (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,246 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.42ms] Passed 4 tests

This is a short check of server-side resources used by UDSSL Time Tracker
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.07 ▲0.09
Dashboard /wp-admin3.34 ▲0.0449.26 ▼4.96
Posts /wp-admin/edit.php3.40 ▲0.0451.56 ▼1.76
Add New Post /wp-admin/post-new.php5.92 ▲0.0485.96 ▼19.05
Media Library /wp-admin/upload.php3.27 ▲0.0438.74 ▲3.68

Server storage [IO: ▲1.33MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 60 new files
Database: 5 new tables, 7 new options
New tables
wp_payment
wp_category
wp_project
wp_time
wp_task
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
udssl_tt_options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by UDSSL Time Tracker
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,976 ▲19014.54 ▲0.1819.43 ▲17.5145.36 ▲0.83
Dashboard /wp-admin2,235 ▲325.86 ▲0.98105.96 ▼1.1577.45 ▲31.38
Posts /wp-admin/edit.php2,111 ▲142.01 ▼0.0240.52 ▲4.4235.22 ▲2.21
Add New Post /wp-admin/post-new.php1,689 ▲15722.39 ▼0.69717.99 ▲29.0529.60 ▼21.86
Media Library /wp-admin/upload.php1,408 ▲54.23 ▼0.02104.89 ▲3.0974.58 ▲30.14

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • udssl_tt_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, 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
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/udssl-time-tracker/templates/template-payment.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/udssl-time-tracker/templates/template-time.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_url() in wp-content/plugins/udssl-time-tracker/app/templates/_templates.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === udssl-time-tracker === )
The official readme.txt might help

udssl-time-tracker/index.php 85% from 13 tests

The entry point to "UDSSL Time Tracker" version 1.0.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("udssl-time-tracker.php" instead of "index.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected2,954 lines of code in 47 files:
LanguageFilesBlank linesComment linesLines of code
PHP202685571,772
JavaScript2211832780
PO File2139233307
CSS321795

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity5.79
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity1.77
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods87
▷ Static methods00.00%
▷ Public methods87100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/page-icon.png1.29KB0.97KB▼ 24.62%
assets/udssl.png0.45KB0.36KB▼ 19.74%