73% project-tasks

Code Review | Project Tasks

WordPress plugin Project Tasks scored73%from 54 tests.

About plugin

  • Plugin page: project-tasks
  • Plugin version: 0.9.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9
  • WordPress version: 6.3.1
  • First release: Jan 12, 2012
  • Latest release: May 1, 2014
  • Number of updates: 6
  • Update frequency: every 140.2 days
  • Top authors: stratoponjak (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /8,629 total downloads

Benchmarks

Plugin footprint 65% 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.23MB] [CPU: ▼3.68ms] Passed 4 tests

Analyzing server-side resources used by Project Tasks
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2544.15 ▼0.24
Dashboard /wp-admin3.54 ▲0.1955.75 ▼12.62
Posts /wp-admin/edit.php3.65 ▲0.3050.19 ▲2.57
Add New Post /wp-admin/post-new.php6.12 ▲0.2390.35 ▼4.42
Media Library /wp-admin/upload.php3.46 ▲0.2342.54 ▲4.12

Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Just a few items left to fix
  • You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/project-tasks/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 22 new files
Database: 4 new tables, 8 new options
New tables
wp_project_task_targets
wp_project_tasks
wp_project_tasks_process
wp_project_task_process_objects
New WordPress options
widget_recent-comments
project_tasks_db_version
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
project_tasks_plugin_error

Browser metrics Passed 4 tests

This is an overview of browser requirements for Project Tasks
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,941 ▲15513.98 ▼0.4013.95 ▲11.8846.40 ▲2.25
Dashboard /wp-admin2,221 ▲185.86 ▼0.04120.76 ▲2.2779.32 ▲31.61
Posts /wp-admin/edit.php2,112 ▲152.01 ▼0.0033.74 ▼2.1334.63 ▼2.77
Add New Post /wp-admin/post-new.php1,539 ▼123.08 ▼0.07697.33 ▲22.7683.57 ▲15.85
Media Library /wp-admin/upload.php1,412 ▲94.16 ▼0.01119.50 ▲9.5651.28 ▲0.03

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie tables detected upon uninstall: 4 tables
    • wp_project_task_targets
    • wp_project_task_process_objects
    • wp_project_tasks
    • wp_project_tasks_process
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • project_tasks_plugin_error
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% 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 everything seems fine, this is not an exhaustive test

SRP 50% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/project-tasks/project-tasks.php:46

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: Screenshot #1 (A Tasks fourth tab is logging everything) image missing
Please take inspiration from this readme.txt

project-tasks/project-tasks.php 92% from 13 tests

"Project Tasks" version 0.9.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 313 characters long)

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
Good job! No executable or dangerous file extensions detected1,540 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP81,036439992
JavaScript138437371
CSS18942177

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity28.62
▷ Minimum class complexity3.00
▷ Maximum class complexity104.00
Average method complexity5.33
▷ Minimum method complexity1.00
▷ Maximum method complexity62.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods51
▷ Static methods1019.61%
▷ Public methods4996.08%
▷ Protected methods00.00%
▷ Private methods23.92%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
files/project-task-icon-large.png1.71KB0.90KB▼ 47.17%
files/project-task-icon-small.png1.27KB0.45KB▼ 64.57%