Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.60MB] [CPU: ▲1.55ms] Passed 4 tests
Analyzing server-side resources used by Do That Task
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.11 ▲0.60 | 50.80 ▲6.37 |
Dashboard /wp-admin | 3.95 ▲0.60 | 56.15 ▲5.81 |
Posts /wp-admin/edit.php | 3.97 ▲0.57 | 59.37 ▲10.48 |
Add New Post /wp-admin/post-new.php | 6.63 ▲0.71 | 84.17 ▼10.94 |
Media Library /wp-admin/upload.php | 3.87 ▲0.60 | 46.08 ▲4.96 |
Server storage [IO: ▲4.12MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 110 new files
Database: no new tables, 7 new options
New WordPress options |
---|
dtt_plugin_do_install |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Do That Task
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,972 ▲211 | 13.49 ▼0.86 | 10.55 ▲8.78 | 42.65 ▲2.05 |
Dashboard /wp-admin | 2,241 ▲67 | 5.56 ▼0.10 | 93.43 ▲2.24 | 91.27 ▲51.45 |
Posts /wp-admin/edit.php | 2,177 ▲80 | 2.38 ▲0.35 | 39.09 ▲3.41 | 36.78 ▲3.09 |
Add New Post /wp-admin/post-new.php | 1,738 ▲212 | 22.42 ▼0.76 | 686.71 ▲49.41 | 47.55 ▼7.78 |
Media Library /wp-admin/upload.php | 1,473 ▲73 | 4.17 ▼0.06 | 97.96 ▼17.45 | 89.12 ▲40.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 items
- 5× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/do-that-task/includes/class-dtt-ajax.php
- > /wp-content/plugins/do-that-task/includes/class-dothattask.php
- > /wp-content/plugins/do-that-task/vue/index.php
- > /wp-content/plugins/do-that-task/vue/components/common/pagination.php
- > /wp-content/plugins/do-that-task/vue/components/common/select2.php
- 14× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
Creating default object from empty value in wp-content/plugins/do-that-task/vue/components/taskListing.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined method stdClass::postUrlUsingCurl() in wp-content/plugins/do-that-task/vue/components/taskListingBoard.php:5
- > PHP Warning
Creating default object from empty value in wp-content/plugins/do-that-task/vue/components/taskDetails.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined method stdClass::postUrlUsingCurl() in wp-content/plugins/do-that-task/vue/components/common/kanban.php:5
- > PHP Fatal error
Uncaught Error: Class 'DoThatTask\\Includes\\Gatway\\Paypal\\Base_Paypal_Adapter' not found in wp-content/plugins/do-that-task/includes/gatway/paypal/class-paypal-ipn.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined method stdClass::postUrlUsingCurl() in wp-content/plugins/do-that-task/vue/components/taskDetails.php:5
- > PHP Warning
Creating default object from empty value in wp-content/plugins/do-that-task/vue/components/taskListingBoard.php on line 5
- > PHP Warning
Creating default object from empty value in wp-content/plugins/do-that-task/vue/components/common/kanban.php on line 4
- > PHP Warning
Use of undefined constant DTT_ASSETS - assumed 'DTT_ASSETS' (this will throw an Error in a future version of PHP) in wp-content/plugins/do-that-task/vue/components/common/modelPopup.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'DoThatTask\\Includes\\Gatway\\Paypal\\Base_Paypal_Adapter' not found in wp-content/plugins/do-that-task/includes/gatway/paypal/class-paypal-express.php:13
- > PHP Warning
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 83% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Stable tag: Empty value
- Donate link: Please fix this invalid URI: ""
- Screenshots: Screenshot #1 (General Setting in admin) image missing
do-that-task/index.php 85% from 13 tests
The primary PHP file in "Do That Task" version 1.5.5 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("do-that-task.php" instead of "index.php")
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 detected15,599 lines of code in 61 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 18 | 1,654 | 2,589 | 11,302 |
PHP | 33 | 380 | 988 | 3,941 |
CSS | 10 | 56 | 5 | 356 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 29.22 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 3.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 1 | 11.11% |
▷ Concrete classes | 8 | 88.89% |
▷ Final classes | 3 | 37.50% |
Methods | 96 | |
▷ Static methods | 12 | 12.50% |
▷ Public methods | 85 | 88.54% |
▷ Protected methods | 9 | 9.38% |
▷ Private methods | 2 | 2.08% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 32 | |
▷ Global constants | 30 | 93.75% |
▷ Class constants | 2 | 6.25% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
40 PNG files occupy 0.70MB with 0.47MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/calc.png | 2.00KB | 0.75KB | ▼ 62.82% |
assets/images/help.png | 2.52KB | 1.15KB | ▼ 54.50% |
assets/images/blank-person.png | 7.40KB | 2.00KB | ▼ 73.04% |
assets/images/tick.png | 2.11KB | 0.66KB | ▼ 68.55% |
assets/images/icon-8.png | 2.70KB | 0.65KB | ▼ 76.04% |