72% wp-todo

Code Review | WP To Do

WordPress plugin WP To Do scored72%from 54 tests.

About plugin

  • Plugin page: wp-todo
  • Plugin version: 1.2.8
  • PHP compatiblity: 6.8+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 23, 2018
  • Latest release: Jul 3, 2023
  • Number of updates: 64
  • Update frequency: every 99.2 days
  • Top authors: delower186 (100%)matt (3.13%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /10,255 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▼0.65ms] Passed 4 tests

Server-side resources used by WP To Do
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1545.22 ▲7.79
Dashboard /wp-admin3.52 ▲0.2248.37 ▼2.90
Posts /wp-admin/edit.php3.57 ▲0.2148.30 ▲1.72
Add New Post /wp-admin/post-new.php6.05 ▲0.1785.66 ▼5.84
Media Library /wp-admin/upload.php3.38 ▲0.1538.20 ▲4.43
WP To Do /wp-admin/admin.php?page=wp-todo3.3433.74
Settings /wp-admin/admin.php?page=wptodo_settings3.3431.83

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 68 new files
Database: 3 new tables, 6 new options
New tables
wp_wptodo_email
wp_wptodo
wp_wptodo_comments
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP To Do
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,119 ▲37316.28 ▲1.9012.52 ▲10.9437.49 ▼4.14
Dashboard /wp-admin2,352 ▲1636.83 ▲1.96112.53 ▼20.9240.44 ▼0.96
Posts /wp-admin/edit.php2,238 ▲1463.53 ▲1.4950.31 ▲7.4735.70 ▼2.85
Add New Post /wp-admin/post-new.php1,561 ▲2823.96 ▲0.73652.62 ▼36.4635.67 ▼18.41
Media Library /wp-admin/upload.php1,537 ▲1466.07 ▲1.85108.08 ▲9.8447.18 ▲0.36
WP To Do /wp-admin/admin.php?page=wp-todo1,3633.7465.8345.28
Settings /wp-admin/admin.php?page=wptodo_settings9563.1840.3128.97

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
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-todo/wp-todo.php
  • 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: message in wp-content/plugins/wp-todo/templates/email.php on line 113
    • > PHP Fatal error
      Uncaught Error: Class 'Inc\\Base\\BaseController' not found in wp-content/plugins/wp-todo/inc/Pages/Admin.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-todo/templates/edit_task.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-todo/templates/admin.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Inc\\Base\\BaseController' not found in wp-content/plugins/wp-todo/inc/Base/Model.php:10
    • > PHP Notice
      Undefined variable: subject in wp-content/plugins/wp-todo/templates/email.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-todo/templates/view_task.php:2
    • > PHP Fatal error
      Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/wp-todo/templates/add_task.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Inc\\Base\\Model' not found in wp-content/plugins/wp-todo/templates/settings.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Inc\\Base\\BaseController' not found in wp-content/plugins/wp-todo/inc/Base/Enqueue.php:9

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=wp-todo
    • > Rendering (warning) in unknown
    /wp-admin/admin.php?page=wp-todo 183 The specified value "yyyy-MM-dd" does not conform to the required format, "yyyy-MM-dd".

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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
Please fix the following attributes:
  • Requires at least: Invalid version format
  • Tags: Too many tags (20 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

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

The main file in "WP To Do" v. 1.2.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • 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

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
Everything looks great! No dangerous files found in this plugin17,775 lines of code in 61 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript184,18414,06914,017
CSS171371392,430
PHP251643051,311
JSON10017

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity10.25
▷ Minimum class complexity1.00
▷ Maximum class complexity45.00
Average method complexity2.52
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes18.33%
Methods74
▷ Static methods3750.00%
▷ Public methods7195.95%
▷ Protected methods00.00%
▷ Private methods34.05%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
scripts/DataTables/DataTables-1.10.16/images/sort_asc_disabled.png0.14KB0.25KB0.00%
scripts/DataTables/DataTables-1.10.16/images/sort_desc_disabled.png0.14KB0.25KB0.00%
scripts/DataTables/DataTables-1.10.16/images/sort_desc.png0.15KB0.25KB0.00%
scripts/DataTables/DataTables-1.10.16/images/sort_asc.png0.16KB0.25KB0.00%
scripts/DataTables/DataTables-1.10.16/images/sort_both.png0.20KB0.29KB0.00%