Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.80MB] [CPU: ▼32.37ms] Passed 4 tests
An overview of server-side resources used by Task Assigner
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 45.27 ▲6.20 |
Dashboard /wp-admin | 3.14 ▼0.16 | 27.92 ▼27.05 |
Posts /wp-admin/edit.php | 3.14 ▼0.22 | 24.76 ▼21.16 |
Add New Post /wp-admin/post-new.php | 3.14 ▼2.75 | 24.58 ▼78.53 |
Media Library /wp-admin/upload.php | 3.14 ▼0.09 | 31.42 ▼2.75 |
User Credits /wp-admin/edit.php?post_type=task&page=task-assigner/task_assigner.php | 3.14 | 25.00 |
Task Submitted /wp-admin/edit.php?post_type=task&page=task_submitted | 3.14 | 25.19 |
Add New Task /wp-admin/post-new.php?post_type=task | 3.14 | 25.16 |
All Task /wp-admin/edit.php?post_type=task | 3.14 | 29.53 |
Server storage [IO: ▲0.73MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Task Assigner
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,918 ▲183 | 13.48 ▼1.10 | 1.78 ▼0.23 | 42.21 ▼7.39 |
Dashboard /wp-admin | 2,277 ▲92 | 5.10 ▼0.79 | 116.24 ▲13.94 | 44.35 ▲4.07 |
Posts /wp-admin/edit.php | 2,175 ▲86 | 2.21 ▲0.24 | 34.51 ▲0.46 | 35.39 ▼0.37 |
Add New Post /wp-admin/post-new.php | 1,756 ▲242 | 22.46 ▲4.79 | 594.18 ▼92.30 | 52.46 ▼6.27 |
Media Library /wp-admin/upload.php | 1,462 ▲74 | 4.29 ▲0.07 | 97.33 ▼16.13 | 46.46 ▼2.75 |
User Credits /wp-admin/edit.php?post_type=task&page=task-assigner/task_assigner.php | 871 | 1.93 | 25.95 | 24.95 |
Task Submitted /wp-admin/edit.php?post_type=task&page=task_submitted | 931 | 1.76 | 25.39 | 25.66 |
Add New Task /wp-admin/post-new.php?post_type=task | 3,005 | 7.85 | 174.02 | 72.62 |
All Task /wp-admin/edit.php?post_type=task | 1,139 | 2.33 | 32.72 | 28.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function map_meta_cap was called incorrectly. When checking for the edit_post capability, you must always check it against a specific post. Please see Debugging in WordPress for more information. (This message was added in version 6.1.0.)
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=task
- > User notice in wp-includes/functions.php+5905
Function map_meta_cap was called incorrectly. When checking for the edit_post capability, you must always check it against a specific post. Please see Debugging in WordPress for more information. (This message was added in version 6.1.0.)
- > GET request to /wp-admin/post-new.php?post_type=task
- > Notice in wp-content/plugins/task-assigner/task_assigner.php+246
Undefined index: post_type
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
Almost there! Just fix the following items
- 2× 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/task-assigner/ajax.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/task-assigner/ajax.php:2
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== task-assigner ===
) - Screenshots: Add descriptions for screenshots #6, #7, #8 in task-assigner/assets to your readme.txt
task-assigner/task_assigner.php 85% from 13 tests
The main PHP script in "Task Assigner" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("task-assigner.php" instead of "task_assigner.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,057 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 70 | 48 | 803 |
SVG | 1 | 0 | 0 | 229 |
JavaScript | 2 | 0 | 6 | 14 |
CSS | 3 | 0 | 8 | 11 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 94.00 |
▷ Minimum class complexity | 94.00 |
▷ Maximum class complexity | 94.00 |
Average method complexity | 5.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin