Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.24ms] Passed 4 tests
Analyzing server-side resources used by Preview Blog Draft
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 42.81 ▼1.44 |
Dashboard /wp-admin | 3.34 ▲0.03 | 49.80 ▲3.74 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.73 ▼1.46 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 83.30 ▼3.11 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.39 ▲1.06 |
Preview Blog Draft /wp-admin/options-general.php?page=preview-blog-draft-options | 3.23 | 36.50 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
preview_blog_draft_post_status |
preview_blog_draft_name |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Preview Blog Draft
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.48 ▼0.17 | 1.77 ▼0.06 | 42.51 ▼6.11 |
Dashboard /wp-admin | 2,207 ▲19 | 4.87 ▼0.01 | 106.82 ▲0.99 | 42.12 ▼0.92 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.04 ▲0.03 | 32.93 ▼7.25 | 36.18 ▼1.47 |
Add New Post /wp-admin/post-new.php | 1,537 ▲4 | 23.20 ▼0.11 | 678.26 ▼29.99 | 56.99 ▲3.54 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.22 ▼0.00 | 100.33 ▼9.74 | 45.69 ▼1.95 |
Preview Blog Draft /wp-admin/options-general.php?page=preview-blog-draft-options | 827 | 2.06 | 24.79 | 29.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 8 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- preview_blog_draft_post_status
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- preview_blog_draft_name
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/preview-blog-draft/options.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/preview-blog-draft/preview-blog-draft.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: post, draft, preview
preview-blog-draft/preview-blog-draft.php Passed 13 tests
The primary PHP file in "Preview Blog Draft" version 1.3.6 is used by WordPress to initiate all plugin functionality
79 characters long description:
Let visitors can see the title of your draft post and content of "Coming Soon!"
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin181 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 18 | 25 | 97 |
PO File | 2 | 24 | 24 | 84 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
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 | 9 | |
▷ Named functions | 9 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin