77% do-that-task

Code Review | Do That Task

WordPress plugin Do That Task scored77%from 54 tests.

About plugin

  • Plugin page: do-that-task
  • Plugin version: 1.5.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.9.2
  • WordPress version: 6.3.1
  • First release: Jul 25, 2019
  • Latest release: Jun 13, 2022
  • Number of updates: 118
  • Update frequency: every 8.9 days
  • Top authors: dothattask (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,545 total downloads

Benchmarks

Plugin footprint 83% 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.60MB] [CPU: ▲1.55ms] Passed 4 tests

Analyzing server-side resources used by Do That Task
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.11 ▲0.6050.80 ▲6.37
Dashboard /wp-admin3.95 ▲0.6056.15 ▲5.81
Posts /wp-admin/edit.php3.97 ▲0.5759.37 ▲10.48
Add New Post /wp-admin/post-new.php6.63 ▲0.7184.17 ▼10.94
Media Library /wp-admin/upload.php3.87 ▲0.6046.08 ▲4.96

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 110 new files
Database: no new tables, 7 new options
New WordPress options
dtt_plugin_do_install
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Do That Task
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,972 ▲21113.49 ▼0.8610.55 ▲8.7842.65 ▲2.05
Dashboard /wp-admin2,241 ▲675.56 ▼0.1093.43 ▲2.2491.27 ▲51.45
Posts /wp-admin/edit.php2,177 ▲802.38 ▲0.3539.09 ▲3.4136.78 ▲3.09
Add New Post /wp-admin/post-new.php1,738 ▲21222.42 ▼0.76686.71 ▲49.4147.55 ▼7.78
Media Library /wp-admin/upload.php1,473 ▲734.17 ▼0.0697.96 ▼17.4589.12 ▲40.52

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Please fix the following items
  • 5× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/do-that-task/includes/class-dtt-ajax.php
    • > /wp-content/plugins/do-that-task/includes/class-dothattask.php
    • > /wp-content/plugins/do-that-task/vue/index.php
    • > /wp-content/plugins/do-that-task/vue/components/common/pagination.php
    • > /wp-content/plugins/do-that-task/vue/components/common/select2.php
  • 14× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Warning
      Creating default object from empty value in wp-content/plugins/do-that-task/vue/components/taskListing.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined method stdClass::postUrlUsingCurl() in wp-content/plugins/do-that-task/vue/components/taskListingBoard.php:5
    • > PHP Warning
      Creating default object from empty value in wp-content/plugins/do-that-task/vue/components/taskDetails.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined method stdClass::postUrlUsingCurl() in wp-content/plugins/do-that-task/vue/components/common/kanban.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'DoThatTask\\Includes\\Gatway\\Paypal\\Base_Paypal_Adapter' not found in wp-content/plugins/do-that-task/includes/gatway/paypal/class-paypal-ipn.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined method stdClass::postUrlUsingCurl() in wp-content/plugins/do-that-task/vue/components/taskDetails.php:5
    • > PHP Warning
      Creating default object from empty value in wp-content/plugins/do-that-task/vue/components/taskListingBoard.php on line 5
    • > PHP Warning
      Creating default object from empty value in wp-content/plugins/do-that-task/vue/components/common/kanban.php on line 4
    • > PHP Warning
      Use of undefined constant DTT_ASSETS - assumed 'DTT_ASSETS' (this will throw an Error in a future version of PHP) in wp-content/plugins/do-that-task/vue/components/common/modelPopup.php on line 7
    • > PHP Fatal error
      Uncaught Error: Class 'DoThatTask\\Includes\\Gatway\\Paypal\\Base_Paypal_Adapter' not found in wp-content/plugins/do-that-task/includes/gatway/paypal/class-paypal-express.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Stable tag: Empty value
  • Donate link: Please fix this invalid URI: ""
  • Screenshots: Screenshot #1 (General Setting in admin) image missing
You can take inspiration from this readme.txt

do-that-task/index.php 85% from 13 tests

The primary PHP file in "Do That Task" version 1.5.5 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("do-that-task.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected15,599 lines of code in 61 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript181,6542,58911,302
PHP333809883,941
CSS10565356

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity29.22
▷ Minimum class complexity2.00
▷ Maximum class complexity66.00
Average method complexity3.65
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes9
▷ Abstract classes111.11%
▷ Concrete classes888.89%
▷ Final classes337.50%
Methods96
▷ Static methods1212.50%
▷ Public methods8588.54%
▷ Protected methods99.38%
▷ Private methods22.08%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants32
▷ Global constants3093.75%
▷ Class constants26.25%
▷ Public constants2100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
40 PNG files occupy 0.70MB with 0.47MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/calc.png2.00KB0.75KB▼ 62.82%
assets/images/help.png2.52KB1.15KB▼ 54.50%
assets/images/blank-person.png7.40KB2.00KB▼ 73.04%
assets/images/tick.png2.11KB0.66KB▼ 68.55%
assets/images/icon-8.png2.70KB0.65KB▼ 76.04%