10% wp-multitasking

Code Review | WP MultiTasking - PPO Utilities

WordPress plugin WP MultiTasking - PPO Utilities scored10%from 54 tests.

About plugin

  • Plugin page: wp-multitasking
  • Plugin version: 0.1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 2.1.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Jan 1, 2014
  • Latest release: Sep 9, 2023
  • Number of updates: 9
  • Update frequency: every 393.1 days
  • Top authors: thangnv27 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,647 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/wp-multitasking/includes/floating-popup/welcome-popup.php+121
    Function create_function() is deprecated

Server metrics [RAM: ▼1.61MB] [CPU: ▼58.84ms] Passed 4 tests

This is a short check of server-side resources used by WP MultiTasking - PPO Utilities
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.37 ▼1.097.30 ▼37.51
Dashboard /wp-admin2.39 ▼0.918.01 ▼49.71
Posts /wp-admin/edit.php2.39 ▼0.969.30 ▼47.02
Add New Post /wp-admin/post-new.php2.39 ▼3.499.81 ▼101.10
Media Library /wp-admin/upload.php2.39 ▼0.8312.32 ▼25.10
Exit Popup /wp-admin/admin.php?page=wpmt_exit_popup2.3910.92
Welcome Popup /wp-admin/admin.php?page=wpmt_welcome_popup2.398.75
WP Utilities /wp-admin/admin.php?page=wpmt_settings2.3912.00
Permalinks /wp-admin/admin.php?page=wpmt_permalinks2.398.43
SMTP /wp-admin/admin.php?page=wpmt_smtp2.3910.16

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 59 new files
Database: no new tables, 27 new options
New WordPress options
default_exit_content_popup
default_exit_height
exit_popup_status
default_wcome_content_url
default_wcome_pop_delays
default_wcome_speed
default_exit_custom_content
widget_recent-comments
can_compress_scripts
welcome_popup_status
...

Browser metrics Passed 4 tests

Checking browser requirements for WP MultiTasking - PPO Utilities
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,975 ▲21414.89 ▲0.621.68 ▼0.0540.25 ▼0.36
Dashboard /wp-admin2,384 ▲2046.27 ▲0.59122.24 ▲31.3542.74 ▼3.03
Posts /wp-admin/edit.php2,312 ▲2093.38 ▲1.4052.92 ▲11.4930.95 ▼3.30
Add New Post /wp-admin/post-new.php1,719 ▲18221.00 ▲2.48620.33 ▼25.2933.72 ▼39.47
Media Library /wp-admin/upload.php1,449 ▲494.16 ▼0.0481.02 ▼25.0544.46 ▼1.95
Exit Popup /wp-admin/admin.php?page=wpmt_exit_popup1,8256.75141.2662.21
Welcome Popup /wp-admin/admin.php?page=wpmt_welcome_popup1,8286.85134.9454.15
WP Utilities /wp-admin/admin.php?page=wpmt_settings1,1433.1745.3926.90
Permalinks /wp-admin/admin.php?page=wpmt_permalinks1,1413.1338.3425.95
SMTP /wp-admin/admin.php?page=wpmt_smtp1,1512.9342.7724.68

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/wp-multitasking/includes/floating-popup/welcome-popup.php+121
    Function create_function() is deprecated
  • The uninstall procedure has failed, leaving 27 options in the database
    • can_compress_scripts
    • default_wcome_overlayClose
    • widget_recent-comments
    • default_wcome_content_url
    • db_upgraded
    • default_wcome_pop_delays
    • default_exit_width
    • default_exit_pop_days
    • widget_theysaidso_widget
    • default_exit_overlayClose
    • ...

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
Please fix the following server-side errors
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpmt_smtp
    • > Deprecated in wp-content/plugins/wp-multitasking/includes/floating-popup/exit-popup.php+113
    Function create_function() is deprecated

SRP 0% 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 fix the following
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-multitasking/includes/classic-widgets.php
    • > /wp-content/plugins/wp-multitasking/includes/addquicktag_cpt.php
    • > /wp-content/plugins/wp-multitasking/includes/classic-editor.php
  • 8× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-multitasking/includes/floating-popup/welcome-popup.php:121
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-multitasking/includes/smtp.php:192
    • > PHP Fatal error
      Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/wp-multitasking/wp-multitasking.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-multitasking/includes/bbcode.php:248
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-multitasking/includes/shortcode_markid.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-multitasking/includes/floating-popup/global-popup.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-multitasking/includes/permalinks.php:257
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-multitasking/includes/floating-popup/exit-popup.php:113

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

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (WP MultiTasking settings), #2 (AddQuickTag settings), #3 (Welcome popup settings), #4 (Exit popup settings), #5 (Remove base slug from custom post type), #6 (SMTP Settings)
The official readme.txt is a good inspiration

wp-multitasking/wp-multitasking.php 92% from 13 tests

The main PHP script in "WP MultiTasking - PPO Utilities" version 0.1.8 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 177 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin7,946 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript91,7236854,285
PHP112662812,733
CSS813781845
HTML111183

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity59.25
▷ Minimum class complexity23.00
▷ Maximum class complexity135.00
Average method complexity4.11
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods75
▷ Static methods3952.00%
▷ Public methods6586.67%
▷ Protected methods00.00%
▷ Private methods1013.33%
Functions34
▷ Named functions34100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
14 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
libraries/colorbox/example2/images/controls.png0.49KB0.57KB0.00%
css/chosen-sprite@2x.png0.85KB0.83KB▼ 3.10%
libraries/colorbox/example4/images/border2.png0.11KB0.16KB0.00%
libraries/colorbox/example5/images/controls.png1.98KB2.04KB0.00%
libraries/colorbox/example5/images/loading_background.png0.13KB0.15KB0.00%