88% post-to-do-lists

Code Review | Post To-Do Lists

WordPress plugin Post To-Do Lists scored 88% from 54 tests.

About plugin

  • Plugin page: post-to-do-lists
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-3.3
  • WordPress version: 5.8.1
  • First release: Jan 21, 2012
  • Latest release: Jan 21, 2012
  • Number of updates: 21
  • Update frequency: N/A
  • Top authors: tammyhart (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,522 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.32MB] [CPU: ▼159.82ms] Passed 4 tests

An overview of server-side resources used by Post To-Do Lists
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1537.44 ▲15.43
Dashboard /wp-admin3.09 ▲0.0347.33 ▲0.08
Posts /wp-admin/edit.php3.14 ▲0.0343.90 ▼3.10
Add New Post /wp-admin/post-new.php4.07 ▼1.3650.30 ▼630.42
Media Library /wp-admin/upload.php3.03 ▲0.0236.61 ▼5.83

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Post To-Do Lists
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,946 ▲35016.21 ▲0.5010.89 ▲1.55146.86 ▲98.11
Dashboard /wp-admin3,157 ▲2236.34 ▲0.34150.82 ▲0.67140.58 ▲30.12
Posts /wp-admin/edit.php3,011 ▲2723.08 ▲0.3681.78 ▼1.06123.47 ▲40.46
Add New Post /wp-admin/post-new.php1,805 ▲12214.91 ▼3.10312.04 ▼51.88159.01 ▲53.66
Media Library /wp-admin/upload.php2,066 ▲2565.33 ▲0.31159.54 ▲3.61140.47 ▲22.08

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/post-to-do-lists/php/output.php
  • 8× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-to-do-lists/php/meta_box.php:6
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/post-to-do-lists/post_to_do_lists.php on line 31
    • > PHP Warning
      include_once(WP_PLUGIN_DIR/post-to-do-lists/php/output.php): failed to open stream: No such file or directory in wp-content/plugins/post-to-do-lists/post_to_do_lists.php on line 37
    • > PHP Warning
      include_once(WP_PLUGIN_DIR/post-to-do-lists/php/meta_box.php): failed to open stream: No such file or directory in wp-content/plugins/post-to-do-lists/post_to_do_lists.php on line 36
    • > PHP Warning
      include_once(): Failed opening 'WP_PLUGIN_DIR/post-to-do-lists/php/output.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/post-to-do-lists/post_to_do_lists.php on line 37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-to-do-lists/post_to_do_lists.php:40
    • > PHP Warning
      include_once(): Failed opening 'WP_PLUGIN_DIR/post-to-do-lists/php/meta_box.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/post-to-do-lists/post_to_do_lists.php on line 36
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/post-to-do-lists/post_to_do_lists.php on line 30

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (Add Lists), #2 (List Output)
You can take inspiration from this readme.txt

post-to-do-lists/post_to_do_lists.php 92% from 13 tests

"Post To-Do Lists" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("post-to-do-lists.php" instead of "post_to_do_lists.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
Everything looks great! No dangerous files found in this plugin471 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS23848222
PHP32640171
JavaScript19578

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions7
▷ Named functions7100.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
3 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png31.08KB10.07KB▼ 67.59%
screenshot-2.png27.25KB11.42KB▼ 58.08%
img/handle.png0.35KB0.22KB▼ 38.50%