62% accessibility-task-manager

Code Review | Accessibility Task Manager

WordPress plugin Accessibility Task Manager scored62%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: 6.3.1
  • 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 /656 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.92MB] [CPU: ▼36.18ms] Passed 4 tests

A check of server-side resources used by Accessibility Task Manager
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.04 ▼2.33
Dashboard /wp-admin3.02 ▼0.2825.44 ▼25.31
Posts /wp-admin/edit.php3.03 ▼0.3323.04 ▼32.15
Add New Post /wp-admin/post-new.php3.02 ▼2.8622.81 ▼75.11
Media Library /wp-admin/upload.php3.03 ▼0.2122.91 ▼12.15
Pretask /wp-admin/admin.php?page=general3.0322.67

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Accessibility Task Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲9513.19 ▼1.391.68 ▼0.3643.27 ▼4.95
Dashboard /wp-admin2,239 ▲514.87 ▼1.0397.21 ▼7.5339.66 ▲0.48
Posts /wp-admin/edit.php2,116 ▲272.04 ▲0.0135.91 ▼2.0934.08 ▼0.83
Add New Post /wp-admin/post-new.php6,340 ▲4,80719.03 ▼4.19967.38 ▲295.5658.10 ▼8.44
Media Library /wp-admin/upload.php1,412 ▲244.22 ▲0.03100.70 ▼7.9643.28 ▼4.38
Pretask /wp-admin/admin.php?page=general8402.1627.2837.96

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=general
    • > User deprecated in wp-includes/functions.php+5737
    Function 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/accessibility-task-manager/accessibility-task-manager.php
  • 2× PHP files trigger server errors 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 smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: accessibility content, productivity

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

This is the main PHP file of "Accessibility Task Manager" version 1.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 155 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not 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

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
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

Often times overlooked, PNG files can occupy unnecessary space in 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%