74% simple-task-list

Code Review | Simple Admin Task List

WordPress plugin Simple Admin Task List scored74%from 54 tests.

About plugin

  • Plugin page: simple-task-list
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.2
  • WordPress version: 6.3.1
  • First release: Jun 14, 2023
  • Latest release: Jun 14, 2023
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: alirezacrr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /135 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.10MB] [CPU: ▼8.25ms] Passed 4 tests

A check of server-side resources used by Simple Admin Task List
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0840.43 ▼9.34
Dashboard /wp-admin3.44 ▲0.0952.09 ▼10.97
Posts /wp-admin/edit.php3.52 ▲0.1752.64 ▲1.49
Add New Post /wp-admin/post-new.php5.99 ▲0.1195.84 ▼14.16
Media Library /wp-admin/upload.php3.36 ▲0.1340.82 ▲5.03

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 27 new files
Database: 1 new table, 7 new options
New tables
wp_atl_admin_message
New WordPress options
db_upgraded
atl_db_version
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Simple Admin Task List: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,055 ▲29413.50 ▼0.961.82 ▼0.1038.84 ▼6.09
Dashboard /wp-admin2,446 ▲2695.96 ▲0.3098.38 ▲2.2684.76 ▲41.79
Posts /wp-admin/edit.php2,369 ▲2692.61 ▲0.6047.78 ▲10.1943.01 ▲6.19
Add New Post /wp-admin/post-new.php1,755 ▲22220.79 ▼1.92608.81 ▼67.1748.88 ▼4.44
Media Library /wp-admin/upload.php1,655 ▲2584.61 ▲0.43109.49 ▼1.6174.38 ▲25.83

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_atl_admin_message
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • atl_db_version
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_current_user_id() in wp-content/plugins/simple-task-list/templates/modal.php:8
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/simple-task-list/templates/modal.php on line 5
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/simple-task-list/templates/modal.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

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
3 plugin tags: task, tasklist, manage

simple-task-list/plugin.php 85% from 13 tests

The primary PHP file in "Simple Admin Task List" version 1.1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-task-list.php" instead of "plugin.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Good job! No executable or dangerous file extensions detected6,597 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript51,2323644,920
CSS617610909
PHP579100595
PO File14545117
SVG10141
Markdown119015

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity13.00
▷ Minimum class complexity5.00
▷ Maximum class complexity25.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods25
▷ Static methods520.00%
▷ Public methods2080.00%
▷ Protected methods00.00%
▷ Private methods520.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
4 PNG files occupy 0.13MB with 0.05MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png39.52KB15.53KB▼ 60.71%
assets/img/icons/noMsg.png1.23KB1.16KB▼ 5.63%
assets/screenshot-2.png94.30KB34.52KB▼ 63.39%
assets/img/icons/haveMsg.png1.57KB1.44KB▼ 8.28%