90% buddytask

Code Review | BuddyTask

WordPress plugin BuddyTask scored90%from 54 tests.

About plugin

  • Plugin page: buddytask
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Feb 16, 2023
  • Latest release: Jul 6, 2023
  • Number of updates: 8
  • Update frequency: every 17.6 days
  • Top authors: cytechltd (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

80+ active /1,269 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.25MB] [CPU: ▼3.84ms] Passed 4 tests

A check of server-side resources used by BuddyTask
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2840.24 ▲2.17
Dashboard /wp-admin3.56 ▲0.2249.00 ▼9.46
Posts /wp-admin/edit.php3.68 ▲0.3248.57 ▲1.93
Add New Post /wp-admin/post-new.php6.15 ▲0.2680.79 ▼9.22
Media Library /wp-admin/upload.php3.49 ▲0.2635.92 ▲1.38

Server storage [IO: ▲0.20MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 23 new files
Database: 4 new tables, 7 new options
New tables
wp_buddytask_tasks
wp_buddytask_lists
wp_buddytask_boards
wp_buddytask_tasks_owners
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
_buddytask_enabled
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

BuddyTask: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.27 ▼0.111.83 ▲0.1743.72 ▲2.87
Dashboard /wp-admin2,198 ▲235.62 ▲0.0580.48 ▼19.1435.00 ▼6.24
Posts /wp-admin/edit.php2,097 ▼62.01 ▼0.0237.18 ▲1.8333.45 ▼2.29
Add New Post /wp-admin/post-new.php1,536 ▲823.40 ▲0.01660.30 ▲22.8261.14 ▲0.87
Media Library /wp-admin/upload.php1,400 ▼04.27 ▲0.0796.05 ▼3.1042.90 ▼0.90

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: buddypress, kanban, task list, task management, kan ban...

buddytask/buddytask.php 92% from 13 tests

This is the main PHP file of "BuddyTask" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.5" instead of "4.6.0")

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 detected3,635 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP155218981,952
CSS116011895
JavaScript113312788

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity20.58
▷ Minimum class complexity1.00
▷ Maximum class complexity139.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods168
▷ Static methods158.93%
▷ Public methods15793.45%
▷ Protected methods00.00%
▷ Private methods116.55%
Functions30
▷ Named functions2996.67%
▷ Anonymous functions13.33%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/shadow.png3.32KB1.93KB▼ 42.02%