84% simple-todo-list

Code Review | Simple Todo List

WordPress plugin Simple Todo List scored84%from 54 tests.

About plugin

  • Plugin page: simple-todo-list
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Oct 2, 2015
  • Latest release: Oct 3, 2015
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: ggwicz (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,301 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼9.26ms] Passed 4 tests

An overview of server-side resources used by Simple Todo List
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0736.05 ▼3.79
Dashboard /wp-admin3.38 ▲0.0345.18 ▼14.90
Posts /wp-admin/edit.php3.49 ▲0.1349.08 ▲6.29
Add New Post /wp-admin/post-new.php5.97 ▲0.0882.02 ▼19.46
Media Library /wp-admin/upload.php3.30 ▲0.0636.52 ▲1.13

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Todo List
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲16413.27 ▼1.104.73 ▲2.8943.09 ▲0.04
Dashboard /wp-admin2,313 ▲1255.86 ▼0.04106.02 ▼1.6539.20 ▼7.59
Posts /wp-admin/edit.php2,089 ▼02.12 ▲0.0740.34 ▲3.2035.40 ▲1.57
Add New Post /wp-admin/post-new.php1,533 ▲1423.54 ▲0.20685.06 ▼30.5455.72 ▲0.72
Media Library /wp-admin/upload.php1,385 ▼34.22 ▼0.0298.35 ▼9.0842.90 ▼3.73

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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: Call to undefined function add_action() in wp-content/plugins/simple-todo-list/plugin.php:214

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: tasks, widget, todo list, productivity, ajax...

simple-todo-list/plugin.php 92% from 13 tests

Analyzing the main PHP file in "Simple Todo List" version 1.0.1
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("simple-todo-list.php" instead of "plugin.php")

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
No dangerous file extensions were detected529 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP37856232
JavaScript1440155
CSS1305142

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity16.00
▷ Minimum class complexity4.00
▷ Maximum class complexity28.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods20
▷ Static methods840.00%
▷ Public methods1575.00%
▷ Protected methods00.00%
▷ Private methods525.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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
There were not PNG files found in your plugin