Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.32MB] [CPU: ▼159.82ms] Passed 4 tests
An overview of server-side resources used by Post To-Do Lists
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 37.44 ▲15.43 |
Dashboard /wp-admin | 3.09 ▲0.03 | 47.33 ▲0.08 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 43.90 ▼3.10 |
Add New Post /wp-admin/post-new.php | 4.07 ▼1.36 | 50.30 ▼630.42 |
Media Library /wp-admin/upload.php | 3.03 ▲0.02 | 36.61 ▼5.83 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Post To-Do Lists
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,946 ▲350 | 16.21 ▲0.50 | 10.89 ▲1.55 | 146.86 ▲98.11 |
Dashboard /wp-admin | 3,157 ▲223 | 6.34 ▲0.34 | 150.82 ▲0.67 | 140.58 ▲30.12 |
Posts /wp-admin/edit.php | 3,011 ▲272 | 3.08 ▲0.36 | 81.78 ▼1.06 | 123.47 ▲40.46 |
Add New Post /wp-admin/post-new.php | 1,805 ▲122 | 14.91 ▼3.10 | 312.04 ▼51.88 | 159.01 ▲53.66 |
Media Library /wp-admin/upload.php | 2,066 ▲256 | 5.33 ▲0.31 | 159.54 ▲3.61 | 140.47 ▲22.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/post-to-do-lists/php/output.php
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-to-do-lists/php/meta_box.php:6
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/post-to-do-lists/post_to_do_lists.php on line 31
- > PHP Warning
include_once(WP_PLUGIN_DIR/post-to-do-lists/php/output.php): failed to open stream: No such file or directory in wp-content/plugins/post-to-do-lists/post_to_do_lists.php on line 37
- > PHP Warning
include_once(WP_PLUGIN_DIR/post-to-do-lists/php/meta_box.php): failed to open stream: No such file or directory in wp-content/plugins/post-to-do-lists/post_to_do_lists.php on line 36
- > PHP Warning
include_once(): Failed opening 'WP_PLUGIN_DIR/post-to-do-lists/php/output.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/post-to-do-lists/post_to_do_lists.php on line 37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-to-do-lists/post_to_do_lists.php:40
- > PHP Warning
include_once(): Failed opening 'WP_PLUGIN_DIR/post-to-do-lists/php/meta_box.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/post-to-do-lists/post_to_do_lists.php on line 36
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/post-to-do-lists/post_to_do_lists.php on line 30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Add Lists), #2 (List Output)
post-to-do-lists/post_to_do_lists.php 92% from 13 tests
"Post To-Do Lists" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("post-to-do-lists.php" instead of "post_to_do_lists.php")
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
Everything looks great! No dangerous files found in this plugin471 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 38 | 48 | 222 |
PHP | 3 | 26 | 40 | 171 |
JavaScript | 1 | 9 | 5 | 78 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 31.08KB | 10.07KB | ▼ 67.59% |
screenshot-2.png | 27.25KB | 11.42KB | ▼ 58.08% |
img/handle.png | 0.35KB | 0.22KB | ▼ 38.50% |