74% taskbreaker-project-management

Code Review | TaskBreaker - Group Project Management

WordPress plugin TaskBreaker - Group Project Management scored 74% from 54 tests.

About plugin

  • Plugin page: taskbreaker-proje...
  • Plugin version: 1.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.0-4.9.3
  • WordPress version: 5.8.1
  • First release: Feb 26, 2017
  • Latest release: Aug 10, 2018
  • Number of updates: 19
  • Update frequency: every 27.7 days
  • Top authors: dunhakdis (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

900+ active / 28,483 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.28MB] [CPU: ▼146.58ms] Passed 4 tests

A check of server-side resources used by TaskBreaker - Group Project Management
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.10 ▲0.3840.21 ▲16.68
Dashboard /wp-admin3.37 ▲0.3245.76 ▼2.60
Posts /wp-admin/edit.php3.43 ▲0.3247.28 ▼2.54
Add New Post /wp-admin/post-new.php5.67 ▲0.2498.92 ▼577.16
Media Library /wp-admin/upload.php3.25 ▲0.2531.23 ▼4.00
All Projects /wp-admin/edit.php?post_type=project3.3039.34
Add New /wp-admin/post-new.php?post_type=project3.4055.49

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 112 new files
Database: 4 new tables, 3 new options
New tables
task_breaker_task_meta
task_breaker_comments
task_breaker_tasks
task_breaker_tasks_user_assignment
New WordPress options
task_breaker_tasks_table_version
widget_taskbreaker_user_recent_tasks
task_breaker_comments_table_version

Browser metrics Passed 4 tests

Checking browser requirements for TaskBreaker - Group Project Management
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,858 ▲26216.22 ▲0.2717.64 ▲7.5450.48 ▼4.63
Dashboard /wp-admin3,002 ▲685.87 ▼0.11143.61 ▼13.10113.29 ▼8.56
Posts /wp-admin/edit.php2,774 ▲352.70 ▲0.0167.88 ▼2.5294.49 ▲1.03
Add New Post /wp-admin/post-new.php1,706 ▲2318.81 ▲0.07381.54 ▼7.32110.34 ▼7.25
Media Library /wp-admin/upload.php1,842 ▲355.02 ▲0.02160.21 ▲7.49125.22 ▲10.33
All Projects /wp-admin/edit.php?post_type=project1,4312.6263.7077.48
Add New /wp-admin/post-new.php?post_type=project3,0318.90217.63158.40

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie tables detected upon uninstall: 4 tables
    • task_breaker_tasks
    • task_breaker_tasks_user_assignment
    • task_breaker_task_meta
    • task_breaker_comments
  • Zombie WordPress options were found after uninstall: 3 options
    • widget_taskbreaker_user_recent_tasks
    • task_breaker_tasks_table_version
    • task_breaker_comments_table_version

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 12× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/taskbreaker-project-management/includes/project-dashboard.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bp_is_active() in wp-content/plugins/taskbreaker-project-management/templates/project-add.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function absint() in wp-content/plugins/taskbreaker-project-management/templates/task-meta.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/taskbreaker-project-management/actions/actions.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'TaskBreakerTasksController' not found in wp-content/plugins/taskbreaker-project-management/templates/task-loop.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/taskbreaker-project-management/templates/project-loop.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'TaskBreakerTemplate' not found in wp-content/plugins/taskbreaker-project-management/templates/project-loop-content.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/taskbreaker-project-management/templates/email-notifications-settings.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_userdata() in wp-content/plugins/taskbreaker-project-management/templates/task-comment-item.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'TaskBreakerTasksController' not found in wp-content/plugins/taskbreaker-project-management/transactions/routes/renew-task.php:9

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

readme.txt Passed 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
6 plugin tags: buddypress, collaboration, project management, project, task...

taskbreaker-project-management/task-breaker.php 92% from 13 tests

The main PHP file in "TaskBreaker - Group Project Management" ver. 1.5.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("taskbreaker-project-management.php" instead of "task-breaker.php")

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
Everything looks great! No dangerous files found in this plugin12,093 lines of code in 87 files:
LanguageFilesBlank linesComment linesLines of code
PHP542,1981,7004,840
CSS42881152,971
JavaScript218992212,414
PO File47468891,792
Markdown125044
JSON10015
YAML1109
XML1208

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity17.35
▷ Minimum class complexity1.00
▷ Maximum class complexity62.00
Average method complexity2.84
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes630.00%
Methods178
▷ Static methods158.43%
▷ Public methods17598.31%
▷ Protected methods10.56%
▷ Private methods21.12%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants16
▷ Global constants16100.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
16 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/images/ui-bg_glass_70_ede4d4_1x400.png0.40KB0.16KB▼ 60.88%
assets/images/ic_attach_file_black_48dp_2x.png0.78KB1.22KB0.00%
assets/css/images/ui-icons_f08000_256x240.png4.57KB4.18KB▼ 8.43%
assets/css/images/ui-bg_highlight-hard_100_f4f0ec_1x100.png0.38KB0.15KB▼ 60.78%
assets/css/images/ui-icons_c47a23_256x240.png4.57KB4.18KB▼ 8.43%