73% posts-to-do-list

Code Review | Posts To-Do List

WordPress plugin Posts To-Do List scored73%from 54 tests.

About plugin

  • Plugin page: posts-to-do-list
  • Plugin version: 1.4.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.1
  • WordPress version: 6.3.1
  • First release: Sep 3, 2012
  • Latest release: Nov 12, 2022
  • Number of updates: 52
  • Update frequency: every 71.6 days
  • Top authors: Ste_95 (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

90+ active /8,944 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼1.76ms] Passed 4 tests

Analyzing server-side resources used by Posts To-Do List
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0643.17 ▲2.02
Dashboard /wp-admin3.37 ▲0.0250.57 ▼12.38
Posts /wp-admin/edit.php3.48 ▲0.1250.82 ▲2.03
Add New Post /wp-admin/post-new.php5.95 ▲0.0697.75 ▲1.29
Media Library /wp-admin/upload.php3.29 ▲0.0637.80 ▲5.41
Posts To Do List /wp-admin/index.php?page=posts_to_do_list3.2435.13
Posts To Do List Options /wp-admin/options-general.php?page=posts_to_do_list_options3.2434.56

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 41 new files
Database: 1 new table, 8 new options
New tables
wp_posts_to_do_list
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
posts_to_do_list
widget_ptdl_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Posts To-Do List
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,063 ▲32814.24 ▼0.132.10 ▲0.3642.30 ▼7.01
Dashboard /wp-admin2,447 ▲2675.77 ▲0.0985.71 ▼1.5473.57 ▲28.38
Posts /wp-admin/edit.php2,108 ▲82.00 ▼0.0438.56 ▲0.9834.86 ▼0.87
Add New Post /wp-admin/post-new.php6,597 ▲5,05227.94 ▲4.66951.01 ▲258.8753.75 ▼4.85
Media Library /wp-admin/upload.php1,408 ▲54.25 ▲0.04105.28 ▼2.1945.56 ▼0.45
Posts To Do List /wp-admin/index.php?page=posts_to_do_list1,3482.5054.9342.02
Posts To Do List Options /wp-admin/options-general.php?page=posts_to_do_list_options1,4142.6148.4561.54

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
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_ptdl_widget
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/index.php?page=posts_to_do_list
    • > Notice in wp-content/plugins/posts-to-do-list/posts-to-do-list.php+624
    Undefined index: tstart
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=posts_to_do_list_options
    • > Notice in wp-content/plugins/posts-to-do-list/posts-to-do-list.php+596
    Undefined variable: checked

SRP 0% 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 items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/posts-to-do-list/posts-to-do-list.php
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/posts-to-do-list/posts-to-do-list-widget.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'posts_to_do_list_core' not found in wp-content/plugins/posts-to-do-list/posts-to-do-list-install-functions.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'posts_to_do_list_core' not found in wp-content/plugins/posts-to-do-list/posts-to-do-list-ajax-functions.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'posts_to_do_list_core' not found in wp-content/plugins/posts-to-do-list/posts-to-do-list-print-functions.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'posts_to_do_list_core' not found in wp-content/plugins/posts-to-do-list/posts-to-do-list-options-functions.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: to-do list, post management, posts, multi author

posts-to-do-list/posts-to-do-list.php Passed 13 tests

This is the main PHP file of "Posts To-Do List" version 1.4.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
111 characters long description:
Share post ideas with writers, suggest them writing topics and keep track of the posts ideas with a to do list.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected2,125 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP72751321,117
CSS766128648
JavaScript39055360

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity22.83
▷ Minimum class complexity6.00
▷ Maximum class complexity77.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods56
▷ Static methods5191.07%
▷ Public methods56100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants0
▷ Global constants00.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
21 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
style/ui-lightness/images/ui-icons_ffffff_256x240.png4.27KB4.11KB▼ 3.78%
style/images/feedback.png1.00KB0.30KB▼ 70.17%
style/images/amazon.png0.61KB0.65KB0.00%
style/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png0.13KB0.18KB0.00%
style/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png0.12KB0.16KB0.00%