Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.67MB] [CPU: ▼16.17ms] Passed 4 tests
An overview of server-side resources used by HTML to Post
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.87 ▼7.64 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.93 ▼2.08 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 45.36 ▼1.24 |
Add New Post /wp-admin/post-new.php | 3.17 ▼2.72 | 41.23 ▼53.36 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 34.59 ▼1.59 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for HTML to Post
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲16 | 13.23 ▼1.21 | 4.95 ▲2.77 | 41.33 ▲0.14 |
Dashboard /wp-admin | 2,205 ▼1 | 5.79 ▼0.04 | 94.08 ▼6.26 | 37.95 ▼1.42 |
Posts /wp-admin/edit.php | 2,102 ▲13 | 2.04 ▲0.03 | 41.28 ▲5.55 | 35.37 ▼2.41 |
Add New Post /wp-admin/post-new.php | 6,494 ▲4,966 | 20.63 ▼2.60 | 964.04 ▲287.40 | 74.12 ▲22.49 |
Media Library /wp-admin/upload.php | 1,401 ▲16 | 4.21 ▲0.01 | 101.55 ▼1.78 | 45.18 ▼1.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
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)
Everything seems fine, however 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 items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/html-to-post/functions.php:152
- > PHP Fatal error
Uncaught Error: Class 'Framework_Sujin_Plugin' not found in wp-content/plugins/html-to-post/functions.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: Please add an image for screenshot #1 (Option metabox will be added in your admin page / 포스트나 페이지를 수정하거나 추가할 때 보이는 메타박스)
html-to-post/html2post.php 77% from 13 tests
The principal PHP file in "HTML to Post" v. 1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 229 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("html-to-post.php" instead of "html2post.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin324 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 117 | 25 | 318 |
CSS | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 3.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 1 | 5.26% |
▷ Public methods | 10 | 52.63% |
▷ Protected methods | 3 | 15.79% |
▷ Private methods | 6 | 31.58% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 68.25KB | 15.19KB | ▼ 77.75% |