72% accessibility-task-manager

Code Review | Accessibility Task Manager

WordPress plugin Accessibility Task Manager scored 72% from 54 tests.

About plugin

  • Plugin page: accessibility-tas...
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.5
  • WordPress version: 5.9.2
  • First release: Nov 7, 2019
  • Latest release: Aug 10, 2020
  • Number of updates: 5
  • Update frequency: every 56.6 days
  • Top authors: pshikli (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 446 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.22MB] [CPU: ▼327.16ms] Passed 4 tests

An overview of server-side resources used by Accessibility Task Manager
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0155.34 ▲4.22
Dashboard /wp-admin3.10 ▼0.3016.58 ▼18.56
Posts /wp-admin/edit.php3.10 ▼0.5417.06 ▼21.29
Add New Post /wp-admin/post-new.php3.10 ▼3.8717.42 ▼1,259.92
Media Library /wp-admin/upload.php3.10 ▼0.1914.94 ▼8.88
Pretask /wp-admin/admin.php?page=general3.1017.77

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Accessibility Task Manager
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,800 ▲4616.29 ▲0.597.17 ▲0.672.32 ▼0.86
Dashboard /wp-admin2,926 ▲686.15 ▼0.01120.60 ▼18.10157.31 ▼7.34
Posts /wp-admin/edit.php2,726 ▲353.25 ▲0.0161.66 ▼1.95144.31 ▲4.46
Add New Post /wp-admin/post-new.php1,760 ▲9917.78 ▲1.75406.61 ▼23.31210.06 ▲54.76
Media Library /wp-admin/upload.php1,734 ▲365.59 ▲0.07139.88 ▲2.65188.56 ▲4.10
Pretask /wp-admin/admin.php?page=general1,0662.4252.30101.44

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5600
    has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

Smoke tests 25% 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 errors were triggered by the plugin
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=general
    • > User deprecated in wp-includes/functions.php+5600
    has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/admin.php?page=general
    • > Notice in wp-content/plugins/accessibility-task-manager/view/taskmeister-form.php+19
    Undefined index: post

SRP 0% 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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/accessibility-task-manager/accessibility-task-manager.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bloginfo() in wp-content/plugins/accessibility-task-manager/view/taskmeister-form.php:16
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/accessibility-task-manager/view/taskmeister-pretasks.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: productivity, accessibility content

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

Analyzing the main PHP file in "Accessibility Task Manager" version 1.2.1
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 155 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected292 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP43793171
JavaScript115061
CSS15060

PHP code Passed 2 tests

A short review of 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.16
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.64
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.19MB with 0.14MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png190.62KB42.80KB▼ 77.55%