84% wp-admin-todo-list

Code Review | WP Admin Todo List

WordPress plugin WP Admin Todo List scored84%from 54 tests.

About plugin

  • Plugin page: wp-admin-todo-list
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6
  • WordPress version: 6.3.1
  • First release: Feb 21, 2015
  • Latest release: Aug 28, 2016
  • Number of updates: 32
  • Update frequency: every 17.3 days
  • Top authors: shyammakwana (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

30+ active /4,181 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.09MB] [CPU: ▼6.89ms] Passed 4 tests

A check of server-side resources used by WP Admin Todo List
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0434.55 ▼5.39
Dashboard /wp-admin3.32 ▲0.0248.11 ▲1.80
Posts /wp-admin/edit.php3.39 ▲0.0344.44 ▼2.99
Add New Post /wp-admin/post-new.php5.47 ▼0.4284.60 ▼18.29
Media Library /wp-admin/upload.php3.23 ▲0.0032.34 ▼0.87

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

WP Admin Todo List: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲12113.24 ▼1.511.67 ▼0.1243.39 ▲2.65
Dashboard /wp-admin2,253 ▲675.84 ▲0.93103.03 ▼12.5550.07 ▲4.82
Posts /wp-admin/edit.php2,140 ▲512.16 ▲0.1439.50 ▼2.8442.00 ▲5.31
Add New Post /wp-admin/post-new.php1,635 ▲10222.63 ▼0.19669.24 ▲12.5777.40 ▲28.03
Media Library /wp-admin/upload.php1,442 ▲544.33 ▲0.13101.07 ▲6.5049.70 ▲4.44

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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 items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-admin-todo-list/wp_admin_todo_list.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
5 plugin tags: admin todo list, list, admin todo, todo list, wp admin todo list

wp-admin-todo-list/wp_admin_todo_list.php 85% from 13 tests

The primary PHP file in "WP Admin Todo List" version 1.4 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-admin-todo-list.php" instead of "wp_admin_todo_list.php")
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin329 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17646329

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.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
No PNG images were found in this plugin