Benchmarks
Plugin footprint 83% 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.11MB] [CPU: ▼7.78ms] Passed 4 tests
An overview of server-side resources used by Draft List
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 42.21 ▼1.39 |
Dashboard /wp-admin | 3.42 ▲0.11 | 53.46 ▼2.92 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 48.74 ▼5.89 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 89.42 ▼15.24 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 39.37 ▼7.05 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_draft_list_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Draft List
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.24 ▼0.36 | 1.84 ▼0.54 | 44.86 ▲1.97 |
Dashboard /wp-admin | 2,192 ▲18 | 5.58 ▼0.02 | 81.87 ▼19.09 | 37.22 ▼7.77 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.94 ▼0.06 | 38.80 ▲2.99 | 33.66 ▼4.83 |
Add New Post /wp-admin/post-new.php | 6,222 ▲4,694 | 18.91 ▼4.52 | 959.23 ▲297.54 | 54.35 ▼9.69 |
Media Library /wp-admin/upload.php | 1,394 ▼3 | 4.16 ▼0.03 | 96.31 ▼8.62 | 43.83 ▼6.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_draft_list_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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
Please fix the following
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/simple-draft-list/simple-draft-list.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/simple-draft-list/inc/setup.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-draft-list/inc/metabox.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/simple-draft-list/inc/create-lists.php:49
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/simple-draft-list/inc/class-draftlistwidget.php:15
- > 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 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: seo, draft, widget, scheduled, list
simple-draft-list/simple-draft-list.php 92% from 13 tests
The main PHP script in "Draft List" version 2.5.2 is automatically included on every request by WordPress
It is important to fix the following:
- Requires PHP: Required version must be the same as the one declared in readme.txt ("7.4" instead of "5.3")
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
No dangerous file extensions were detected533 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 127 | 237 | 533 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin