Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/todo-lists-for-membership-sites/todolists.php+908
Undefined variable: sql1
Server metrics [RAM: ▼1.68MB] [CPU: ▼45.92ms] Passed 4 tests
A check of server-side resources used by To Do List Member
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.31 ▼1.15 | 9.94 ▼29.23 |
Dashboard /wp-admin | 2.33 ▼0.98 | 13.06 ▼32.43 |
Posts /wp-admin/edit.php | 2.33 ▼1.03 | 10.98 ▼37.43 |
Add New Post /wp-admin/post-new.php | 2.33 ▼3.56 | 11.47 ▼84.58 |
Media Library /wp-admin/upload.php | 2.33 ▼0.90 | 10.83 ▼25.67 |
Tasks /wp-admin/edit.php?post_type=task | 2.33 | 12.06 |
Settings /wp-admin/edit.php?post_type=task&page=todolist_settings | 2.33 | 11.68 |
Add New Task /wp-admin/post-new.php?post_type=task | 2.33 | 11.28 |
List Categories /wp-admin/edit-tags.php?taxonomy=listcategory&post_type=task | 2.33 | 12.45 |
Order Tasks /wp-admin/edit.php?post_type=task&page=todolists_ordertask | 2.33 | 12.55 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 30 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_todolists_iptask |
wp_todolists_usertask |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_todolist_base |
Browser metrics Passed 4 tests
This is an overview of browser requirements for To Do List Member
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,052 ▲317 | 14.18 ▼0.44 | 6.49 ▲4.80 | 40.85 ▼0.17 |
Dashboard /wp-admin | 2,317 ▲128 | 5.18 ▲0.22 | 110.56 ▼8.05 | 71.16 ▲28.06 |
Posts /wp-admin/edit.php | 2,216 ▲127 | 2.42 ▲0.40 | 41.33 ▲0.73 | 36.13 ▲0.06 |
Add New Post /wp-admin/post-new.php | 1,598 ▲65 | 23.28 ▼0.02 | 694.92 ▲18.18 | 35.16 ▼19.08 |
Media Library /wp-admin/upload.php | 1,505 ▲117 | 4.51 ▲0.32 | 99.36 ▼4.93 | 68.82 ▲21.78 |
Tasks /wp-admin/edit.php?post_type=task | 1,279 | 2.54 | 36.93 | 30.64 |
Settings /wp-admin/edit.php?post_type=task&page=todolist_settings | 927 | 2.13 | 34.21 | 25.97 |
Add New Task /wp-admin/post-new.php?post_type=task | 2,430 | 8.10 | 187.91 | 132.13 |
List Categories /wp-admin/edit-tags.php?taxonomy=listcategory&post_type=task | 1,394 | 2.21 | 30.29 | 34.09 |
Order Tasks /wp-admin/edit.php?post_type=task&page=todolists_ordertask | 943 | 2.31 | 32.77 | 24.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in todolist_widget is deprecated since version 4.3.0! Use __construct() instead.
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_todolists_usertask
- wp_todolists_iptask
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_todolist_base
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 7 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=task&page=todolists_ordertask
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in todolist_widget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/edit.php?post_type=task&page=todolists_ordertask
- > Notice in wp-content/plugins/todo-lists-for-membership-sites/todolists.php+759
Undefined index: submit
SRP 0% 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 perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/todo-lists-for-membership-sites/res/index.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/todo-lists-for-membership-sites/widget/widget-todolist.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_current_user_id() in wp-content/plugins/todo-lists-for-membership-sites/todolists.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/todo-lists-for-membership-sites/code/shortcodes.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Donate link: Please fix this invalid URI: ""
todo-lists-for-membership-sites/todolists.php 92% from 13 tests
The principal PHP file in "To Do List Member" v. 1.5 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("todo-lists-for-membership-sites.php" instead of "todolists.php")
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
Good job! No executable or dangerous file extensions detected4,796 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 1,473 | 293 | 3,024 |
JavaScript | 5 | 157 | 335 | 1,542 |
XML | 2 | 0 | 0 | 138 |
CSS | 3 | 8 | 27 | 92 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 95.20 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 265.00 |
Average method complexity | 5.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 60.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 101 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 46 | 45.54% |
▷ Protected methods | 54 | 53.47% |
▷ Private methods | 1 | 0.99% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/tinymce/todolists-progressbar.png | 0.26KB | 0.24KB | ▼ 9.26% |
css/images/controls.png | 2.83KB | 1.28KB | ▼ 54.82% |
img/move.png | 0.11KB | 0.11KB | 0.00% |
js/tinymce/todolists-tasklist.png | 0.89KB | 1.03KB | 0.00% |
css/images/overlay.png | 2.75KB | 0.11KB | ▼ 95.99% |