84% todo-by-aavoya

Code Review | Todo by Aavoya

WordPress plugin Todo by Aavoya scored84%from 54 tests.

About plugin

  • Plugin page: todo-by-aavoya
  • Plugin version: 22.7
  • PHP compatiblity: 7.4.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0.1
  • WordPress version: 6.3.1
  • First release: Jul 20, 2022
  • Latest release: Jul 20, 2022
  • Number of updates: 9
  • Update frequency: every 0.1 days
  • Top authors: Pijush_Gupta (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /507 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.13MB] [CPU: ▲2.04ms] Passed 4 tests

This is a short check of server-side resources used by Todo by Aavoya
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1548.96 ▲8.97
Dashboard /wp-admin3.43 ▲0.1352.71 ▲2.73
Posts /wp-admin/edit.php3.48 ▲0.1351.13 ▲2.87
Add New Post /wp-admin/post-new.php6.03 ▲0.1591.34 ▲0.97
Media Library /wp-admin/upload.php3.36 ▲0.1337.87 ▲1.60

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 78 new files
Database: no new tables, 9 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
wptba_autoLogOutDuration
wptba_encryption_key
wptba_aau
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Todo by Aavoya
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.35 ▲0.071.91 ▲0.0744.43 ▲0.86
Dashboard /wp-admin2,208 ▲435.55 ▼0.0385.18 ▼2.6538.14 ▼6.55
Posts /wp-admin/edit.php2,113 ▲161.99 ▼0.0633.25 ▼2.9535.01 ▼2.84
Add New Post /wp-admin/post-new.php1,539 ▲1123.05 ▼0.13690.92 ▲52.2251.92 ▼13.15
Media Library /wp-admin/upload.php1,416 ▲134.22 ▲0.01109.09 ▲8.7246.06 ▼1.81

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/todo-by-aavoya/wptba/Frontend/Template.php:5

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: to do list, todo, to do, task management, trello alternative...

todo-by-aavoya/todo-by-aavoya.php Passed 13 tests

"Todo by Aavoya" version 22.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
56 characters long description:
Yet another todo plugin with project management features

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin4,126 lines of code in 52 files:
LanguageFilesBlank linesComment linesLines of code
PHP407001,4222,724
SVG200923
Markdown1730284
JSON200112
CSS521081
JavaScript2012

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity12.74
▷ Minimum class complexity1.00
▷ Maximum class complexity72.00
Average method complexity3.43
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes31
▷ Abstract classes00.00%
▷ Concrete classes31100.00%
▷ Final classes13.23%
Methods148
▷ Static methods10570.95%
▷ Public methods13087.84%
▷ Protected methods00.00%
▷ Private methods1812.16%
Functions11
▷ Named functions19.09%
▷ Anonymous functions1090.91%
Constants5
▷ Global constants240.00%
▷ Class constants360.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
There are no PNG files in this plugin