Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.09MB] [CPU: ▼10.83ms] Passed 4 tests
Analyzing server-side resources used by Organize Drafts
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 43.28 ▲2.26 |
Dashboard /wp-admin | 3.33 ▲0.03 | 50.77 ▼2.19 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 50.18 ▼12.07 |
Add New Post /wp-admin/post-new.php | 5.47 ▼0.42 | 77.98 ▼29.04 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 40.54 ▼0.02 |
Draft Types /wp-admin/edit-tags.php?taxonomy=lswdrafttype | 3.35 | 41.76 |
Draft Types /wp-admin/edit-tags.php?taxonomy=lswdrafttype&post_type=page | 3.26 | 41.99 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
lsw_organize_drafts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Organize Drafts
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.24 ▼0.13 | 1.56 ▼0.05 | 43.16 ▲2.57 |
Dashboard /wp-admin | 2,203 ▲26 | 5.66 ▲0.01 | 94.10 ▲9.22 | 41.92 ▼1.98 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 1.95 ▼0.06 | 35.48 ▼6.92 | 35.91 ▼2.93 |
Add New Post /wp-admin/post-new.php | 6,266 ▲4,730 | 25.96 ▲7.71 | 946.43 ▲294.70 | 57.79 ▼16.23 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.12 ▼0.11 | 102.11 ▼6.51 | 45.36 ▼2.66 |
Draft Types /wp-admin/edit-tags.php?taxonomy=lswdrafttype | 1,532 | 2.12 | 28.24 | 33.91 |
Draft Types /wp-admin/edit-tags.php?taxonomy=lswdrafttype&post_type=page | 1,532 | 2.12 | 27.58 | 34.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- lsw_organize_drafts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/lsw-organize-drafts/lsw_organize_drafts.php:70
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Manage Draft Types through the Wordpress Admin sidebar.), #2 (View and Soft Drafts by Draft Types column.), #3 (Easily select the Draft Type from a dropdown menu.)
lsw-organize-drafts/lsw_organize_drafts.php 77% from 13 tests
"Organize Drafts" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Description: Please keep the plugin description shorter than 140 characters (currently 161 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("lsw-organize-drafts.php" instead of "lsw_organize_drafts.php")
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
No dangerous file extensions were detected158 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 44 | 42 | 158 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 16 | |
▷ Static methods | 12 | 75.00% |
▷ Public methods | 10 | 62.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 37.50% |
Functions | 1 | |
▷ Named functions | 1 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected