10% wp-multi-task

Code Review | WP Multi Task

WordPress plugin WP Multi Task scored10%from 54 tests.

About plugin

  • Plugin page: wp-multi-task
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.0
  • WordPress version: 6.3.1
  • First release: Jun 9, 2017
  • Latest release: Dec 8, 2018
  • Number of updates: 8
  • Update frequency: every 68.6 days
  • Top authors: naharsoftbd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /632 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/wp-multi-task/wpmt.php+126
    Undefined variable: wp_error

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

This is a short check of server-side resources used by WP Multi Task
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0446.65 ▲7.41
Dashboard /wp-admin3.32 ▲0.0248.41 ▼5.20
Posts /wp-admin/edit.php3.37 ▲0.0246.95 ▼5.01
Add New Post /wp-admin/post-new.php5.90 ▲0.0287.22 ▼14.78
Media Library /wp-admin/upload.php3.25 ▲0.0237.25 ▲1.12

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 52 new files
Database: 1 new table, 8 new options
New tables
wp_wpmt_transaction
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
wpmtpages
wpmt_version

Browser metrics Passed 4 tests

WP Multi Task: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,965 ▲20414.40 ▲0.0417.03 ▲15.1445.86 ▼1.37
Dashboard /wp-admin2,198 ▲215.64 ▲0.0188.64 ▼0.3839.16 ▼9.70
Posts /wp-admin/edit.php2,100 ▼02.13 ▲0.1935.74 ▼0.4134.01 ▼6.01
Add New Post /wp-admin/post-new.php1,526 ▼023.42 ▲0.39675.23 ▼0.8951.95 ▼2.93
Media Library /wp-admin/upload.php1,403 ▲64.21 ▲0.0294.73 ▼8.5848.01 ▲0.72

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_wpmt_transaction
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • wpmt_version
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • wpmtpages
    • 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
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/wp-multi-task/view/login.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can take inspiration from this readme.txt

wp-multi-task/wpmt.php 77% from 13 tests

The main file in "WP Multi Task" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-multi-task.php" instead of "wpmt.php")

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
Good job! No executable or dangerous file extensions detected29,802 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript73,8992,45916,436
CSS101161249,970
SVG2002,959
PHP98459437

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity5.00
▷ Minimum class complexity4.00
▷ Maximum class complexity6.00
Average method complexity1.84
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods19
▷ Static methods421.05%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
12 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/right-arow.png0.95KB0.17KB▼ 82.25%
assets/images/gender_label_white.png0.41KB0.32KB▼ 22.30%
assets/images/googleplus.png3.08KB2.16KB▼ 29.85%
assets/images/icon-thick.png1.68KB1.25KB▼ 25.74%
assets/images/watchingcheckbox.png0.47KB0.36KB▼ 24.79%