84% todo-custom-field

Code Review | Todo Custom Field

WordPress plugin Todo Custom Field scored 84% from 54 tests.

About plugin

  • Plugin page: todo-custom-field
  • Plugin version: 3.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.9
  • WordPress version: 6.3.1
  • First release: Jun 29, 2018
  • Latest release: Feb 17, 2022
  • Number of updates: 18
  • Update frequency: every 73.8 days
  • Top authors: rafasashi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,457 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.39MB] [CPU: ▼2.58ms] Passed 4 tests

A check of server-side resources used by Todo Custom Field
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.82 ▲0.3637.94 ▼12.63
Dashboard /wp-admin3.72 ▲0.4248.14 ▼4.64
Posts /wp-admin/edit.php3.78 ▲0.4251.24 ▲5.21
Add New Post /wp-admin/post-new.php6.38 ▲0.49100.17 ▲1.75
Media Library /wp-admin/upload.php3.58 ▲0.3538.71 ▲6.29
Task lists /wp-admin/edit.php?post_type=tcf-todo-list3.6340.60
All tasks /wp-admin/edit.php?post_type=tcf-todo-task3.6443.37
Settings /wp-admin/admin.php?page=todo-custom-field3.5532.45

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Todo Custom Field: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲9713.68 ▼0.704.47 ▲2.7037.56 ▼7.87
Dashboard /wp-admin2,246 ▲585.89 ▲0.96109.45 ▲3.2080.42 ▲34.79
Posts /wp-admin/edit.php2,132 ▲402.05 ▼0.0037.57 ▲1.5736.43 ▲1.14
Add New Post /wp-admin/post-new.php1,701 ▲15422.57 ▲4.59618.58 ▲0.1452.00 ▼1.23
Media Library /wp-admin/upload.php1,428 ▲404.28 ▼0.02103.36 ▲1.7170.72 ▲22.39
Task lists /wp-admin/edit.php?post_type=tcf-todo-list1,0892.0833.6528.71
All tasks /wp-admin/edit.php?post_type=tcf-todo-task1,1362.0234.4129.07
Settings /wp-admin/admin.php?page=todo-custom-field9072.2225.6434.06

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/todo-custom-field/views/premium.php:112

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

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:
  • Screenshots: Add images for these screenshots: #1 (Select Post Types and Taxonomies including the Todo custom field), #2 (Create a Todo list and add tasks), #3 (Add task to a Page), #4 (Add task to a category), #5 (Monitor and filter all tasks)
You can look at the official readme.txt

todo-custom-field/todo-custom-field.php Passed 13 tests

The primary PHP file in "Todo Custom Field" version 3.0.4 is used by WordPress to initiate all plugin functionality
102 characters long description:
Add a Todo Custom Field to Post Types and Taxonomies, create Tasks lists and monitor the list of Tasks

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,908 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP97025071,780
CSS261884
JavaScript2412443
Markdown1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity48.67
▷ Minimum class complexity5.00
▷ Maximum class complexity99.00
Average method complexity4.92
▷ Minimum method complexity1.00
▷ Maximum method complexity80.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods72
▷ Static methods34.17%
▷ Public methods6793.06%
▷ Protected methods00.00%
▷ Private methods56.94%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.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
8 PNG files occupy 0.23MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.png35.34KB14.53KB▼ 58.90%
assets/images/dnd-icon.png0.63KB0.52KB▼ 18.52%
assets/images/recuweb-icon.png0.49KB0.34KB▼ 31.42%
screenshot-1.png41.04KB14.52KB▼ 64.63%
screenshot-5.png58.42KB23.54KB▼ 59.71%