Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.91MB] [CPU: ▼32.97ms] Passed 4 tests
A check of server-side resources used by Smart ToDo Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 40.19 ▼1.36 |
Dashboard /wp-admin | 3.03 ▼0.27 | 24.27 ▼26.91 |
Posts /wp-admin/edit.php | 3.03 ▼0.33 | 24.68 ▼28.23 |
Add New Post /wp-admin/post-new.php | 3.03 ▼2.86 | 24.54 ▼69.31 |
Media Library /wp-admin/upload.php | 3.03 ▼0.20 | 24.26 ▼7.41 |
Add New /wp-admin/post-new.php?post_type=smart_todo | 3.03 | 22.66 |
How To Use /wp-admin/edit.php?post_type=smart_todo&page=smarttodo_info | 3.03 | 24.19 |
Projects /wp-admin/edit-tags.php?taxonomy=smart_project&post_type=smart_todo | 3.03 | 24.70 |
Smart ToDos /wp-admin/edit.php?post_type=smart_todo | 3.03 | 23.70 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=smart_todo | 3.03 | 22.85 |
Server storage [IO: ▲1.48MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Smart ToDo Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,867 ▲132 | 13.24 ▼0.98 | 2.32 ▲0.27 | 42.94 ▼2.64 |
Dashboard /wp-admin | 2,245 ▲57 | 5.84 ▲0.97 | 97.98 ▼19.18 | 40.77 ▼6.86 |
Posts /wp-admin/edit.php | 2,128 ▲39 | 2.00 ▼0.01 | 36.75 ▲0.93 | 33.13 ▼4.22 |
Add New Post /wp-admin/post-new.php | 1,566 ▲24 | 23.17 ▲4.77 | 633.33 ▼16.04 | 57.72 ▲4.27 |
Media Library /wp-admin/upload.php | 1,430 ▲42 | 4.20 ▼0.03 | 94.89 ▼2.89 | 41.70 ▼0.80 |
Add New /wp-admin/post-new.php?post_type=smart_todo | 2,749 | 7.90 | 183.03 | 71.07 |
How To Use /wp-admin/edit.php?post_type=smart_todo&page=smarttodo_info | 1,119 | 2.03 | 28.57 | 39.06 |
Projects /wp-admin/edit-tags.php?taxonomy=smart_project&post_type=smart_todo | 1,301 | 2.13 | 29.33 | 27.31 |
Smart ToDos /wp-admin/edit.php?post_type=smart_todo | 1,167 | 1.93 | 30.30 | 31.11 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=smart_todo | 1,346 | 2.14 | 28.68 | 28.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=smart_todo
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/smart-todo/includes/CPT_SmartTodo.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/smart-todo/includes/SmartToDoMenu.php:11
- > PHP Fatal error
Uncaught Error: Class 'SmartTodoInfo' not found in wp-content/plugins/smart-todo/templates/smarttodo_dashboard.php:61
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/smart-todo/includes/CssJsScripts.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/smart-todo/includes/CPT_SmartTodo.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_terms() in wp-content/plugins/smart-todo/templates/single-smart_todo-content.php:2
- > PHP Fatal error
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 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
Attributes that require attention:
- Tags: You are using too many tags: 14 tag instead of maximum 10
smart-todo/smart-todos.php 92% from 13 tests
"Smart ToDo Plugin" version 1.1.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("smart-todo.php" instead of "smart-todos.php")
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
Everything looks great! No dangerous files found in this plugin9,306 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 12 | 2,049 | 7,113 | 7,310 |
CSS | 10 | 37 | 93 | 1,604 |
PHP | 7 | 113 | 87 | 392 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 20 | |
▷ Static methods | 2 | 10.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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
8 compressed PNG files occupy 0.17MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/dbtables/media/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
assets/dbtables/media/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |
assets/dbtables/media/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
assets/img/glyphicons.png | 108.59KB | 52.69KB | ▼ 51.48% |
assets/dbtables/media/images/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |