84% todo-lists-for-wp

Code Review | Todo lists for wp

WordPress plugin Todo lists for wp scored84%from 54 tests.

About plugin

  • Plugin page: todo-lists-for-wp
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.7
  • WordPress version: 6.3.1
  • First release: Jun 11, 2021
  • Latest release: Jun 11, 2021
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: pritomdip (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /319 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.13MB] [CPU: ▼9.95ms] Passed 4 tests

This is a short check of server-side resources used by Todo lists for wp
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.55 ▼8.47
Dashboard /wp-admin3.48 ▲0.1847.74 ▼1.16
Posts /wp-admin/edit.php3.55 ▲0.2054.45 ▼2.43
Add New Post /wp-admin/post-new.php6.11 ▲0.2279.20 ▼23.66
Media Library /wp-admin/upload.php3.34 ▲0.1134.18 ▼5.25

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_todowidget
tdlw_settings

Browser metrics Passed 4 tests

This is an overview of browser requirements for Todo lists for wp
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,080 ▲31915.16 ▲0.856.34 ▲4.5144.24 ▲1.67
Dashboard /wp-admin2,371 ▲1976.41 ▲0.79119.97 ▲27.3736.92 ▼5.46
Posts /wp-admin/edit.php2,296 ▲1963.55 ▲1.5659.12 ▲16.6135.45 ▼1.45
Add New Post /wp-admin/post-new.php1,555 ▲1517.54 ▼5.48649.32 ▼6.0336.87 ▼20.63
Media Library /wp-admin/upload.php1,439 ▲394.36 ▲0.2382.83 ▼33.6841.30 ▼6.96

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 8 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • tdlw_settings
    • widget_todowidget
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% 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 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 fix the following
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/todo-lists-for-wp/widgets/class-todoWidget.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/todo-lists-for-wp/templates/lists.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Pritom\\TodoListsForWordPress\\Admin\\add_action() in wp-content/plugins/todo-lists-for-wp/includes/admin/class-admin.php:56
    • > PHP Fatal error
      Uncaught Error: Call to undefined function pritom\\TodoListsForWordPress\\add_action() in wp-content/plugins/todo-lists-for-wp/includes/class-frontend.php:65

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

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: settings, shortcode, todo

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

"Todo lists for wp" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Domain Path: The domain path points to an invalid folder, "/i18n/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,024 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12171461945
JavaScript2101864
CSS21015

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity13.25
▷ Minimum class complexity2.00
▷ Maximum class complexity70.00
Average method complexity2.27
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes112.50%
Methods77
▷ Static methods33.90%
▷ Public methods6989.61%
▷ Protected methods22.60%
▷ Private methods67.79%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin