78% hdtasks

Code Review | HDTasks | Client and Team Task Lists

WordPress plugin HDTasks | Client and Team Task Lists scored78%from 54 tests.

About plugin

  • Plugin page: hdtasks
  • Plugin version: 0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.0-5.2
  • WordPress version: 6.3.1
  • First release: Apr 8, 2019
  • Latest release: Mar 21, 2020
  • Number of updates: 12
  • Update frequency: every 29.0 days
  • Top authors: Harmonic_Design (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /833 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

This is a short check of server-side resources used by HDTasks | Client and Team Task Lists
It is recommended to improve the following
  • CPU: Total CPU usage should be kept under 500.00ms (currently 520.39ms on /wp-admin/admin.php?page=hdt_about)
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1442.58 ▲2.70
Dashboard /wp-admin3.44 ▲0.0948.40 ▼15.18
Posts /wp-admin/edit.php3.55 ▲0.2051.46 ▼3.64
Add New Post /wp-admin/post-new.php6.02 ▲0.1396.64 ▼0.04
Media Library /wp-admin/upload.php3.36 ▲0.1340.80 ▲4.64
About / Options /wp-admin/admin.php?page=hdt_about3.35520.39
Projects /wp-admin/admin.php?page=hdt_projects3.3331.97

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

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

Browser metrics Passed 4 tests

Checking browser requirements for HDTasks | Client and Team Task Lists
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲7713.15 ▼1.151.85 ▼0.0146.34 ▲5.86
Dashboard /wp-admin2,244 ▲384.87 ▼0.00104.40 ▼11.0040.69 ▲0.13
Posts /wp-admin/edit.php2,126 ▲262.02 ▲0.0239.60 ▼0.9535.37 ▼1.63
Add New Post /wp-admin/post-new.php1,564 ▲2423.26 ▲0.28658.05 ▼12.6156.89 ▼14.44
Media Library /wp-admin/upload.php1,420 ▲204.14 ▼0.08104.40 ▼12.0843.63 ▼4.22
About / Options /wp-admin/admin.php?page=hdt_about1,0962.0225.2349.65
Projects /wp-admin/admin.php?page=hdt_projects8582.0226.4934.36

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% 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 0% from 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
Please fix the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/hdtasks/includes/hdt_about_options.php
    • > /wp-content/plugins/hdtasks/hdtasks.php
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_remote_get() in wp-content/plugins/hdtasks/includes/hdt_about_options.php:83
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hdtasks/includes/post_type.php:60
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hdtasks/includes/template.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_terms() in wp-content/plugins/hdtasks/includes/hdt_projects.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hdtasks/includes/functions.php:65

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
7 plugin tags: hdt, hdtask, project managment, list, todo list...

hdtasks/hdtasks.php Passed 13 tests

"HDTasks | Client and Team Task Lists" version 0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
68 characters long description:
The easiest project task management solution for teams and creatives

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin9,657 lines of code in 168 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1358701,0056,236
CSS181731111,517
Sass81201999
PHP69189904
SVG1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions24
▷ Named functions2395.83%
▷ Anonymous functions14.17%
Constants3
▷ Global constants3100.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
No PNG files were detected