57% wedevs-project-manager

Code Review | WP Project Manager - Task, team, and project management plugin featuring kanban board and gantt charts

WordPress plugin WP Project Manager - Task, team, and project management plugin featuring kanban board and gantt charts scored57%from 54 tests.

About plugin

  • Plugin page: wedevs-project-ma...
  • Plugin version: 2.6.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 28, 2012
  • Latest release: Sep 15, 2023
  • Number of updates: 272
  • Update frequency: every 14.5 days
  • Top authors: asaquzzaman (65.44%)tareq1988 (26.1%)devianadim9 (5.88%)tanmjay (3.68%)

Code review

54 tests

User reviews

176 reviews

Install metrics

9,000+ active /515,856 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲5.52MB] [CPU: ▲29.98ms] 75% from 4 tests

Analyzing server-side resources used by WP Project Manager - Task, team, and project management plugin featuring kanban board and gantt charts
Please have a look at the following items
  • Extra RAM: Try to keep extra memory usage under 5MB (currently 5.52MB on /wp-admin/admin.php?page=pm_projects#/settings)
PageMemory (MB)CPU Time (ms)
Home /8.37 ▲4.9164.88 ▲24.05
Dashboard /wp-admin9.06 ▲5.7283.37 ▲26.81
Posts /wp-admin/edit.php9.11 ▲5.7691.99 ▲41.96
Add New Post /wp-admin/post-new.php12.21 ▲6.33126.04 ▲27.10
Media Library /wp-admin/upload.php8.92 ▲5.6984.74 ▲49.96

Server storage [IO: ▲16.90MB] [DB: ▲0.09MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 1,400 new files
Database: 21 new tables, 9 new options
New tables
wp_pm_assignees
wp_pm_activities
wp_pm_tasks
wp_pm_capabilities
wp_pm_task_type_task
wp_pm_imports
wp_pm_boardables
wp_pm_boards
wp_pm_files
wp_pm_role_user
...
New WordPress options
pm_version
pm_installed
pm_db_version
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Project Manager - Task, team, and project management plugin featuring kanban board and gantt charts
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,134 ▲38813.89 ▼0.466.82 ▲4.9837.05 ▼10.08
Dashboard /wp-admin2,414 ▲2235.28 ▲0.42113.39 ▲10.3938.21 ▼3.57
Posts /wp-admin/edit.php2,303 ▲2142.55 ▲0.5449.87 ▲9.3435.76 ▼7.92
Add New Post /wp-admin/post-new.php1,636 ▲12223.42 ▲5.83661.27 ▲10.3736.82 ▼26.87
Media Library /wp-admin/upload.php1,606 ▲2184.76 ▲0.50103.80 ▼0.2142.61 ▼6.12
Calendar /wp-admin/admin.php?page=pm_projects#/calendar1,92810.37310.2249.86
Modules /wp-admin/admin.php?page=pm_projects#/modules1,54510.26313.3834.83
Categories /wp-admin/admin.php?page=pm_projects#/categories1,45110.36139.6138.54
My Tasks 0 /wp-admin/admin.php?page=pm_projects#/my-tasks1,55910.12186.9340.42
Progress /wp-admin/admin.php?page=pm_projects#/progress1,3389.33140.1937.98
Premium /wp-admin/admin.php?page=pm_projects#/premium2,2499.43156.9186.56
Reports /wp-admin/admin.php?page=pm_projects#/reports2,0429.58161.4550.92
Tools /wp-admin/admin.php?page=pm_projects#/importtools1,2789.22143.8135.45
Projects /wp-admin/admin.php?page=pm_projects#/1,99011.58219.6352.71
Settings /wp-admin/admin.php?page=pm_projects#/settings1,6349.81171.4234.20

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie tables were found after uninstall: 21 tables
    • wp_pm_capabilities
    • wp_pm_task_types
    • wp_pm_activities
    • wp_pm_projects
    • wp_pm_category_project
    • wp_pm_boardables
    • wp_pm_boards
    • wp_pm_files
    • wp_pm_role_user
    • wp_pm_meta
    • ...
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • pm_db_version
    • can_compress_scripts
    • pm_version
    • pm_installed

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 5× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wedevs-project-manager/vendor/illuminate/pagination/resources/views/simple-bootstrap-4.blade.php
    • > /wp-content/plugins/wedevs-project-manager/vendor/symfony/translation/Resources/bin/translation-status.php
    • > /wp-content/plugins/wedevs-project-manager/vendor/illuminate/pagination/resources/views/default.blade.php
    • > /wp-content/plugins/wedevs-project-manager/vendor/illuminate/pagination/resources/views/bootstrap-4.blade.php
    • > /wp-content/plugins/wedevs-project-manager/vendor/illuminate/pagination/resources/views/simple-default.blade.php
  • 465× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wedevs-project-manager/config/style.php:8
    • > PHP Fatal error
      Uncaught Error: Call to a member function trans() on null in wp-content/plugins/wedevs-project-manager/vendor/symfony/translation/Tests/fixtures/extractor/translation.html.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WeDevs\\PM\\Core\\Sanitizer\\Abstract_Sanitizer' not found in wp-content/plugins/wedevs-project-manager/src/Task_List/Validators/Task_List_Sanitizer.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Illuminate\\Support\\Facades\\Facade' not found in wp-content/plugins/wedevs-project-manager/vendor/illuminate/support/Facades/File.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Illuminate\\Database\\Eloquent\\Relations\\Pivot' not found in wp-content/plugins/wedevs-project-manager/vendor/illuminate/database/Eloquent/Relations/MorphPivot.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wedevs-project-manager/vendor/symfony/translation/Tests/Dumper/XliffFileDumperTest.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wedevs-project-manager/vendor/symfony/translation/Tests/DependencyInjection/TranslationExtractorPassTest.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wedevs-project-manager/views/emails/html/complete-task.php:26
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\Translation\\Loader\\LoaderInterface' not found in wp-content/plugins/wedevs-project-manager/vendor/symfony/translation/Loader/IcuResFileLoader.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wedevs-project-manager/views/emails/html/new-project.php:7

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

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Requires at least: Invalid version format
You can look at the official readme.txt

wedevs-project-manager/cpm.php 92% from 13 tests

Analyzing the main PHP file in "WP Project Manager - Task, team, and project management plugin featuring kanban board and gantt charts" version 2.6.7
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wedevs-project-manager.php" instead of "cpm.php")

Code Analysis 3% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Almost there! Just fix the following issues
  • For security reasons, never distribute binary or executable files with your plugin
    • .bat - Batch File in Windows
      • wp-content/plugins/wedevs-project-manager/vendor/nesbot/carbon/bin/upgrade-carbon.bat
197,897 lines of code in 1,130 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript5111,23033,30390,837
PHP84718,06438,41069,856
CSS2350490812,544
PO File196,09412,3479,942
SVG13036915,949
XSD499764,991
JSON21001,741
HTML11384833
Markdown51930506
XML1760349
Sass150243
Blade481484
Qt Linguist10010
YAML4007
DOS Batch1004
INI1001

PHP code 50% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
These items need your attention
  • Method cyclomatic complexity should be reduced to less than 100 (currently 157)
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity10.40
▷ Minimum class complexity1.00
▷ Maximum class complexity263.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity157.00
Code structure
Namespaces209
Interfaces107
Traits28
Classes545
▷ Abstract classes356.42%
▷ Concrete classes51093.58%
▷ Final classes10.20%
Methods5,637
▷ Static methods5639.99%
▷ Public methods4,33376.87%
▷ Protected methods85715.20%
▷ Private methods4477.93%
Functions650
▷ Named functions26040.00%
▷ Anonymous functions39060.00%
Constants129
▷ Global constants2015.50%
▷ Class constants10984.50%
▷ Public constants109100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
140 PNG files occupy 1.54MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
views/assets/images/pm-logo.png11.60KB6.13KB▼ 47.12%
views/assets/css/images/prettyPhoto/light_square/btnNext.png1.38KB1.14KB▼ 17.29%
views/assets/css/jquery-ui/images/ui-bg_glass_95_fef1ec_1x400.png0.15KB0.14KB▼ 6.04%
views/assets/css/jquery-ui/images/ui-bg_diagonals-small_75_cccccc_40x40.png0.15KB0.10KB▼ 35.06%
views/assets/css/jquery-ui/images/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%