89% devtasksup

Code Review | DevtasksUp - ClickUp integration

WordPress plugin DevtasksUp - ClickUp integration scored89%from 54 tests.

About plugin

  • Plugin page: devtasksup
  • Plugin version: 1.2.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.4
  • WordPress version: 6.3.1
  • First release: Feb 16, 2023
  • Latest release: Nov 15, 2023
  • Number of updates: 17
  • Update frequency: every 16.0 days
  • Top authors: martinvalchev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /611 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.26MB] [CPU: ▲539.84ms] 75% from 4 tests

Server-side resources used by DevtasksUp - ClickUp integration
Please fix the following
  • Extra CPU: The extra CPU usage should be kept under 200.00ms (currently 539.84ms on /wp-admin/upload.php)
PageMemory (MB)CPU Time (ms)
Home /3.78 ▲0.32580.71 ▲537.88
Dashboard /wp-admin3.60 ▲0.26609.31 ▲549.57
Posts /wp-admin/edit.php3.65 ▲0.29598.33 ▲554.33
Add New Post /wp-admin/post-new.php6.12 ▲0.23616.82 ▲517.56
Media Library /wp-admin/upload.php3.46 ▲0.23594.50 ▲563.82

Server storage [IO: ▲12.68MB] [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: 82 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
devt-connect-data
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for DevtasksUp - ClickUp integration
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5614.32 ▲0.041.65 ▼0.0637.95 ▼5.59
Dashboard /wp-admin2,218 ▲435.54 ▼0.1084.95 ▼27.9739.52 ▼7.41
Posts /wp-admin/edit.php2,123 ▲231.91 ▼0.0936.19 ▼1.4133.98 ▲0.73
Add New Post /wp-admin/post-new.php1,544 ▲1821.24 ▼1.94730.20 ▲91.2451.14 ▼0.54
Media Library /wp-admin/upload.php1,423 ▲264.16 ▼0.06106.96 ▲7.6844.66 ▲3.92

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
You can take inspiration from this readme.txt

devtasksup/dev-tasks-up.php 77% from 13 tests

Analyzing the main PHP file in "DevtasksUp - ClickUp integration" version 1.2.2
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 245 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("devtasksup.php" instead of "dev-tasks-up.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin52,670 lines of code in 58 files:
LanguageFilesBlank linesComment linesLines of code
CSS194,47811518,662
JavaScript223,6941,39617,976
SVG701214,395
PHP93243081,446
PO File16962191

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity36.00
▷ Minimum class complexity31.00
▷ Maximum class complexity41.00
Average method complexity3.06
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods34
▷ Static methods00.00%
▷ Public methods2882.35%
▷ Protected methods00.00%
▷ Private methods617.65%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/48.png8.45KB3.72KB▼ 55.93%