10% wtg-tasks-manager

Code Review | WTG Tasks Manager Beta

WordPress plugin WTG Tasks Manager Beta scored10%from 54 tests.

About plugin

  • Plugin page: wtg-tasks-manager
  • Plugin version: 0.0.40
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.0-4.3.1
  • WordPress version: 6.3.1
  • First release: Nov 16, 2014
  • Latest release: Oct 9, 2015
  • Number of updates: 20
  • Update frequency: every 42.7 days
  • Top authors: WebTechGlobal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,844 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/wtg-tasks-manager/classes/class-wtgtasksmanager.php+322
    count(): Parameter must be an array or an object that implements Countable

Server metrics [RAM: ▼1.94MB] [CPU: ▼53.61ms] Passed 4 tests

Server-side resources used by WTG Tasks Manager Beta
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.04 ▼1.425.07 ▼43.92
Dashboard /wp-admin2.06 ▼1.247.30 ▼38.85
Posts /wp-admin/edit.php2.06 ▼1.295.78 ▼40.85
Add New Post /wp-admin/post-new.php2.06 ▼3.826.57 ▼90.83
Media Library /wp-admin/upload.php2.06 ▼1.166.83 ▼28.04
All Tasks /wp-admin/edit.php?post_type=wtgtasks2.076.04
Skills /wp-admin/edit-tags.php?taxonomy=wtgtaskmanagerskills&post_type=wtgtasks2.075.76
New Task /wp-admin/post-new.php?post_type=wtgtasks2.066.09
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=wtgtasks2.076.92
Settings /wp-admin/edit.php?post_type=wtgtasks&page=wtgtasksmanager2.076.39
Extra Views /wp-admin/edit.php?post_type=wtgtasks&page=wtgtasksmanager_alltasks2.076.45

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 85 new files
Database: 1 new table, 13 new options
New tables
wp_webtechglobal_projects
New WordPress options
wtgtasksmanager_installedversion
wtgtasksmanager_installeddate
wtgtasksmanager_formvalidation
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
wtgtasksmanager_notifications
wtgtasksmanager_schedule
wtgtasksmanager_is_installed
widget_recent-posts
...

Browser metrics Passed 4 tests

WTG Tasks Manager Beta: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲10413.16 ▼1.491.69 ▼0.1844.00 ▲1.32
Dashboard /wp-admin2,247 ▲565.85 ▲0.90100.63 ▼3.0238.59 ▼6.54
Posts /wp-admin/edit.php2,133 ▲442.01 ▼0.0234.59 ▼3.8934.44 ▼7.87
Add New Post /wp-admin/post-new.php1,571 ▲3622.95 ▼0.16649.00 ▼4.9353.08 ▲2.80
Media Library /wp-admin/upload.php1,435 ▲474.41 ▲0.13106.91 ▼0.9647.13 ▼0.81
All Tasks /wp-admin/edit.php?post_type=wtgtasks1,1411.9436.2130.10
Skills /wp-admin/edit-tags.php?taxonomy=wtgtaskmanagerskills&post_type=wtgtasks1,2842.1433.8929.42
New Task /wp-admin/post-new.php?post_type=wtgtasks2,8637.85172.9967.39
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=wtgtasks1,3542.1425.7228.59
Settings /wp-admin/edit.php?post_type=wtgtasks&page=wtgtasksmanager4,02911.33204.34109.89
Extra Views /wp-admin/edit.php?post_type=wtgtasks&page=wtgtasksmanager_alltasks1,1841.9731.7729.10

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin cannot be uninstalled
    • > Warning in wp-content/plugins/wtg-tasks-manager/classes/class-wtgtasksmanager.php+322
    count(): Parameter must be an array or an object that implements Countable
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_webtechglobal_projects
  • Zombie WordPress options were found after uninstall: 13 options
    • theysaidso_admin_options
    • db_upgraded
    • wtgtasksmanager_installedversion
    • wtgtasksmanager_schedule
    • wtgtasksmanager_is_installed
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • wtgtasksmanager_settings
    • widget_recent-comments
    • ...

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
  • 188 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=wtgtasks&page=wtgtasksmanager_alltasks
    • > Warning in wp-content/plugins/wtg-tasks-manager/classes/class-wtgtasksmanager.php+322
    count(): Parameter must be an array or an object that implements Countable
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=wtgtasks
    • > Notice in wp-content/plugins/wtg-tasks-manager/posttypes/tasks.php+111
    Trying to access array offset on value of type null
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=wtgtasks&page=wtgtasksmanager_alltasks
    • > User deprecated in wp-includes/functions.php+5453
    Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.

SRP 0% 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
Please take a closer look at the following
  • 34× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/wtg-tasks-manager/posttypes/tasks.php
    • > /wp-content/plugins/wtg-tasks-manager/views/closedtasks.php
    • > /wp-content/plugins/wtg-tasks-manager/arrays/tableschema_array.php
    • > /wp-content/plugins/wtg-tasks-manager/classes/class-updates.php
    • > /wp-content/plugins/wtg-tasks-manager/arrays/variables_adminconfig.php
    • > /wp-content/plugins/wtg-tasks-manager/wtg-tasks-manager.php
    • > /wp-content/plugins/wtg-tasks-manager/classes/class-log.php
    • > /wp-content/plugins/wtg-tasks-manager/views/finishedtasks.php
    • > /wp-content/plugins/wtg-tasks-manager/classes/class-view.php
    • > /wp-content/plugins/wtg-tasks-manager/views/cancelledtasks.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WTGTASKSMANAGER_UI' not found in wp-content/plugins/wtg-tasks-manager/classes/class-forms.php:22

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=wtgtasks&page=wtgtasksmanager_alltasks
    • > Network (severe)
    wp-content/plugins/wtgtasksmanager/css/notifications.css?ver=1.0.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=wtgtasks&page=wtgtasksmanager_alltasks
    • > Network (severe)
    wp-content/plugins/wtgtasksmanager/css/admin.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=wtgtasks&page=wtgtasksmanager
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
    • > GET request to /wp-admin/edit.php?post_type=wtgtasks&page=wtgtasksmanager
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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:
  • Screenshots: Please add images for these screenshots: #1 (Manage Multiple Projects.), #2 (Simple Import Statistics.), #3 (Category Data Selection.)
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === wtg-tasks-manager === )
The official readme.txt might help

wtg-tasks-manager/wtg-tasks-manager.php 92% from 13 tests

"WTG Tasks Manager Beta" version 0.0.40's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected10,862 lines of code in 45 files:
LanguageFilesBlank linesComment linesLines of code
PHP402,4087,1668,876
PO File16231,3881,339
CSS29342615
JavaScript2113932

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity37.03
▷ Minimum class complexity1.00
▷ Maximum class complexity268.00
Average method complexity3.54
▷ Minimum method complexity1.00
▷ Maximum method complexity52.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes38
▷ Abstract classes12.63%
▷ Concrete classes3797.37%
▷ Final classes00.00%
Methods539
▷ Static methods50.93%
▷ Public methods52497.22%
▷ Protected methods142.60%
▷ Private methods10.19%
Functions31
▷ Named functions31100.00%
▷ Anonymous functions00.00%
Constants37
▷ Global constants3594.59%
▷ Class constants25.41%
▷ Public constants2100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
26 PNG files occupy 2.08MB with 1.86MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/restricted_extra.png124.49KB14.43KB▼ 88.41%
images/restricted_large.png59.16KB5.39KB▼ 90.89%
images/stop_large.png63.48KB5.79KB▼ 90.88%
images/validation_extra.png134.24KB16.01KB▼ 88.07%
images/question_extra.png150.51KB16.61KB▼ 88.96%