84% sliced-to-do

Code Review | Simple to-do list plugin for posts and pages

WordPress plugin Simple to-do list plugin for posts and pages scored84%from 54 tests.

About plugin

  • Plugin page: sliced-to-do
  • Plugin version: 0.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.2
  • WordPress version: 6.3.1
  • First release: Jul 30, 2017
  • Latest release: Feb 10, 2018
  • Number of updates: 9
  • Update frequency: every 22.3 days
  • Top authors: devlime (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /648 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.74ms] Passed 4 tests

This is a short check of server-side resources used by Simple to-do list plugin for posts and pages
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.26 ▲3.10
Dashboard /wp-admin3.32 ▲0.0147.69 ▼2.09
Posts /wp-admin/edit.php3.37 ▲0.0142.42 ▼7.79
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.58 ▼0.39
Media Library /wp-admin/upload.php3.24 ▲0.0129.55 ▼4.70

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Simple to-do list plugin for posts and pages
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.17 ▼1.261.74 ▲0.0844.48 ▼1.52
Dashboard /wp-admin2,209 ▲214.83 ▼0.17103.13 ▲1.7741.08 ▼4.47
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0434.28 ▼2.4834.93 ▲0.31
Add New Post /wp-admin/post-new.php6,267 ▲4,75326.08 ▲8.52906.54 ▲216.5853.79 ▼0.87
Media Library /wp-admin/upload.php1,385 ▼34.21 ▲0.0295.48 ▼1.5745.42 ▼0.66

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/sliced-to-do/sliced_todo_metabox.php on line 89
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sliced-to-do/sliced_todo_main.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: organisation, to do list, todo list, to-do list, productivity

sliced-to-do/sliced_todo_main.php 92% from 13 tests

The principal PHP file in "Simple to-do list plugin for posts and pages" v. 0.0.5 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sliced-to-do.php" instead of "sliced_todo_main.php")

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
Success! There were no dangerous files found in this plugin329 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP26825118
CSS1480108
JavaScript18144103

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.46
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin