94% a-task-manager

Code Review | A Task Manager

WordPress plugin A Task Manager scored 94% from 54 tests.

About plugin

  • Plugin page: a-task-manager
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.3
  • WordPress version: 5.9.2
  • First release: Mar 18, 2020
  • Latest release: Mar 19, 2020
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: olegio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 320 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼296.05ms] Passed 4 tests

A check of server-side resources used by A Task Manager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.0853.91 ▲6.42
Dashboard /wp-admin3.46 ▲0.0534.56 ▲1.85
Posts /wp-admin/edit.php3.69 ▲0.0539.16 ▼3.39
Add New Post /wp-admin/post-new.php6.96 ▼0.0497.42 ▼1,180.72
Media Library /wp-admin/upload.php3.34 ▲0.0423.55 ▼1.94

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: 1 new table, no new options
New tables
wp_ataskmanager

Browser metrics Passed 4 tests

A Task Manager: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,902 ▲14816.06 ▲0.346.27 ▲0.442.62 ▼0.26
Dashboard /wp-admin2,988 ▲1276.21 ▲0.04122.08 ▼11.11159.41 ▼6.84
Posts /wp-admin/edit.php2,787 ▲993.29 ▲0.0668.71 ▲1.67143.15 ▼8.03
Add New Post /wp-admin/post-new.php1,733 ▲1416.09 ▼5.90414.73 ▲4.67168.04 ▲7.95
Media Library /wp-admin/upload.php1,791 ▲935.60 ▲0.14147.58 ▲2.62188.63 ▲0.11

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% 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
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/a-task-manager/templates/popup.php
    • > /wp-content/plugins/a-task-manager/a-task-manager.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Requires at least: The plugin version is formatted incorrectly
You can take inspiration from this readme.txt

a-task-manager/a-task-manager.php 92% from 13 tests

The entry point to "A Task Manager" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin708 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript11070280
CSS1565240
PHP26612188

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected