Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼8.34ms] Passed 4 tests
An overview of server-side resources used by Drafty In Here
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 32.68 ▼13.39 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.78 ▼4.65 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 48.00 ▲3.05 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 83.77 ▼15.37 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 33.51 ▲0.07 |
Drafty In Here /wp-admin/options-general.php?page=drafty-in-here | 3.25 | 32.21 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
drafty_options |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Drafty In Here
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.63 ▼1.02 | 1.81 ▼0.29 | 41.48 ▼9.47 |
Dashboard /wp-admin | 2,210 ▲25 | 5.89 ▲0.99 | 105.14 ▼10.65 | 40.67 ▼4.06 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 1.99 ▼0.20 | 40.71 ▲1.52 | 35.18 ▲2.48 |
Add New Post /wp-admin/post-new.php | 1,537 ▼5 | 23.31 ▲4.86 | 647.51 ▲17.89 | 47.64 ▼4.50 |
Media Library /wp-admin/upload.php | 1,395 ▲13 | 4.17 ▼0.01 | 97.20 ▼1.33 | 41.82 ▼2.91 |
Drafty In Here /wp-admin/options-general.php?page=drafty-in-here | 839 | 2.03 | 26.57 | 26.81 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- drafty_options
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Interface 'Drafty\\Repositories\\Email\\EmailInterface' not found in wp-content/plugins/drafty-in-here/Repositories/Email/Email.php:6
- > PHP Fatal error
Uncaught Error: Interface 'Drafty\\Repositories\\Scheduler\\SchedulerInterface' not found in wp-content/plugins/drafty-in-here/Repositories/Scheduler/Scheduler.php:6
- > PHP Fatal error
Uncaught Error: Interface 'Drafty\\Repositories\\Options\\OptionsInterface' not found in wp-content/plugins/drafty-in-here/Repositories/Options/Options.php:5
- > PHP Fatal error
Uncaught Error: Class 'Drafty_In_Here' not found in wp-content/plugins/drafty-in-here/Repositories/Admin/Admin.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/drafty-in-here/partials/partial-admin-interface.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Tags: There are too many tags (12 tag instead of maximum 10)
- Screenshots: Screenshot #1 (The Drafty In Here settings screen is located under the main WordPress settings menu.) image required
drafty-in-here/drafty-in-here.php Passed 13 tests
The main file in "Drafty In Here" v. 1.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
94 characters long description:
Get email notifications of draft posts sitting in your WordPress Blog waiting to be published.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin838 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 191 | 359 | 773 |
Markdown | 2 | 26 | 0 | 64 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 8.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 68 | |
▷ Static methods | 32 | 47.06% |
▷ Public methods | 63 | 92.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 7.35% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
1 PNG file occupies 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 57.51KB | 25.95KB | ▼ 54.87% |