84% a-task-manager

Code Review | A Task Manager

WordPress plugin A Task Manager scored84%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: 6.3.1
  • 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 /540 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.98ms] Passed 4 tests

Server-side resources used by A Task Manager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.73 ▼3.80
Dashboard /wp-admin3.32 ▲0.0245.82 ▼5.79
Posts /wp-admin/edit.php3.37 ▲0.0247.80 ▲1.68
Add New Post /wp-admin/post-new.php5.92 ▲0.0485.80 ▼3.99
Media Library /wp-admin/upload.php3.24 ▲0.0238.63 ▲1.78

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: 1 new table, 6 new options
New tables
wp_ataskmanager
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for A Task Manager
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,909 ▲17413.43 ▼1.161.90 ▲0.1543.62 ▼0.49
Dashboard /wp-admin2,277 ▲895.92 ▲1.02111.27 ▼2.2640.08 ▼7.13
Posts /wp-admin/edit.php2,163 ▲742.08 ▲0.0945.21 ▲6.3235.16 ▲0.77
Add New Post /wp-admin/post-new.php1,583 ▲6922.97 ▲5.30643.50 ▼72.1162.81 ▲3.18
Media Library /wp-admin/upload.php1,462 ▲744.28 ▲0.05106.26 ▼3.9443.01 ▼5.90

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Requires at least: Invalid plugin version format
The official readme.txt might help

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

The primary PHP file in "A Task Manager" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected708 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript11070280
CSS1565240
PHP26612188

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
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 images were found in this plugin