84% todo-list-block

Code Review | Todo List Block

WordPress plugin Todo List Block scored84%from 54 tests.

About plugin

  • Plugin page: todo-list-block
  • Plugin version: 0.1.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.0
  • WordPress version: 6.3.1
  • First release: Jul 23, 2021
  • Latest release: May 6, 2022
  • Number of updates: 7
  • Update frequency: every 41.1 days
  • Top authors: richtabor (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /2,880 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼13.70ms] Passed 4 tests

Server-side resources used by Todo List Block
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.17 ▼9.69
Dashboard /wp-admin3.31 ▼0.0341.23 ▼17.57
Posts /wp-admin/edit.php3.36 ▲0.0147.73 ▲5.15
Add New Post /wp-admin/post-new.php5.89 ▲0.0173.86 ▼23.24
Media Library /wp-admin/upload.php3.24 ▲0.0129.05 ▼4.31

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Todo List Block: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.34 ▼0.011.83 ▲0.0935.67 ▼7.71
Dashboard /wp-admin2,198 ▲245.56 ▼0.0896.69 ▲7.6943.36 ▲1.38
Posts /wp-admin/edit.php2,100 ▲31.99 ▲0.0138.72 ▲3.4235.00 ▼1.57
Add New Post /wp-admin/post-new.php6,196 ▲4,67019.08 ▼3.94904.29 ▲211.2356.40 ▼0.51
Media Library /wp-admin/upload.php1,394 ▼94.17 ▼0.0494.16 ▼2.4640.18 ▼5.30

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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 take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/todo-list-block/todo-list-block.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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 need to be fixed: You can take inspiration from this readme.txt

todo-list-block/todo-list-block.php Passed 13 tests

"Todo List Block" version 0.1.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
65 characters long description:
Add todo lists to posts that render only within the block editor.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected32 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JSON10023
PHP21227
CSS1001
JavaScript1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin