89% dash-todo

Code Review | Dash Todo

WordPress plugin Dash Todo scored89%from 54 tests.

About plugin

  • Plugin page: dash-todo
  • Plugin version: 1.1.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.3
  • WordPress version: 6.3.1
  • First release: Mar 28, 2023
  • Latest release: Aug 11, 2023
  • Number of updates: 21
  • Update frequency: every 6.5 days
  • Top authors: smeunus (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

30+ active /941 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.19ms] Passed 4 tests

Server-side resources used by Dash Todo
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.85 ▲1.83
Dashboard /wp-admin3.34 ▲0.0451.81 ▼0.45
Posts /wp-admin/edit.php3.38 ▲0.0343.38 ▼8.35
Add New Post /wp-admin/post-new.php5.97 ▲0.0993.58 ▼3.36
Media Library /wp-admin/upload.php3.26 ▲0.0334.72 ▼0.60
Todo /wp-admin/index.php?page=todo3.2434.88

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
dash_todo_installed

Browser metrics Passed 4 tests

An overview of browser requirements for Dash Todo
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,983 ▲22217.21 ▲2.792.37 ▲0.7543.95 ▼3.14
Dashboard /wp-admin2,374 ▲1978.01 ▲2.33262.58 ▲174.1646.65 ▲5.50
Posts /wp-admin/edit.php2,104 ▲41.95 ▼0.0136.41 ▼1.0335.06 ▲1.78
Add New Post /wp-admin/post-new.php1,531 ▼423.42 ▲5.15565.33 ▼50.8636.79 ▼36.56
Media Library /wp-admin/upload.php1,407 ▲74.18 ▼0.0198.80 ▲1.4347.14 ▲0.83
Todo /wp-admin/index.php?page=todo9447.4395.8323.36

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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

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 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: productivity, utility, dashboard, todo, widget

dash-todo/dash-todo.php 85% from 13 tests

"Dash Todo" version 1.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("6.0" instead of "5.9")
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin18,017 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JSON10017,872
PHP32913143
CSS1001
JavaScript1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity1.82
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods218.18%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin