84% task-runner

Code Review | Task Runner

WordPress plugin Task Runner scored84%from 54 tests.

About plugin

  • Plugin page: task-runner
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 4, 2019
  • Latest release: Apr 11, 2020
  • Number of updates: 6
  • Update frequency: every 36.8 days
  • Top authors: therealwebdisrupt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /655 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.18MB] [CPU: ▼4.83ms] Passed 4 tests

This is a short check of server-side resources used by Task Runner
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2040.57 ▼1.36
Dashboard /wp-admin3.50 ▲0.1545.72 ▼15.09
Posts /wp-admin/edit.php3.61 ▲0.2549.15 ▼0.74
Add New Post /wp-admin/post-new.php6.08 ▲0.1993.33 ▼2.14
Media Library /wp-admin/upload.php3.42 ▲0.1935.30 ▲1.82

Server storage [IO: ▲1.04MB] [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: 51 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Task Runner
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲5713.13 ▼1.621.93 ▼0.0444.89 ▼0.28
Dashboard /wp-admin2,237 ▲495.85 ▲0.9898.36 ▼21.5072.66 ▲27.45
Posts /wp-admin/edit.php2,120 ▲311.97 ▼0.0538.83 ▲2.1334.14 ▼4.39
Add New Post /wp-admin/post-new.php1,545 ▲1218.26 ▼4.86612.52 ▼66.0466.91 ▲9.45
Media Library /wp-admin/upload.php1,419 ▲314.23 ▲0.0695.73 ▼14.5472.44 ▲25.33

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Please fix the following items
  • 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_content() in wp-content/plugins/task-runner/themes/disrupt-one/templates/content-standard.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/task-runner/themes/disrupt-one/functions.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/task-runner/templates/settings.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/task-runner/themes/disrupt-one/index.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/task-runner/themes/disrupt-one/single.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Web_Disrupt_Task_Runner\\add_action() in wp-content/plugins/task-runner/base/tasker-base.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_footer() in wp-content/plugins/task-runner/themes/disrupt-one/footer.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Web_Disrupt_Task_Runner\\add_action() in wp-content/plugins/task-runner/modules/WordPress/wordpress.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/task-runner/themes/disrupt-one/header.php:2
    • > PHP Notice
      Undefined variable: logo in wp-content/plugins/task-runner/templates/settings.php on line 17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
The official readme.txt might help

task-runner/task-runner.php Passed 13 tests

"Task Runner" version 1.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
103 characters long description:
Powerful task automator that can be used to make repeatable tasks and build processes inside WordPress.

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 plugin14,643 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript201,91174413,438
PHP9113331625
LESS61918384
CSS42411117
Markdown17041
SVG20238

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity18.33
▷ Minimum class complexity11.00
▷ Maximum class complexity28.00
Average method complexity2.41
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods37
▷ Static methods38.11%
▷ Public methods3389.19%
▷ Protected methods00.00%
▷ Private methods410.81%
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.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
themes/disrupt-one/screenshot.png24.50KB9.92KB▼ 59.52%