83% html-to-post

Code Review | HTML to Post

WordPress plugin HTML to Post scored 83% from 54 tests.

About plugin

  • Plugin page: html-to-post
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.5
  • WordPress version: 6.3.1
  • First release: Jan 24, 2013
  • Latest release: Jan 24, 2013
  • Number of updates: 5
  • Update frequency: every 85.6 days
  • Top authors: sujin2f (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,564 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.87 ▼7.64
Dashboard /wp-admin3.32 ▲0.0245.93 ▼2.08
Posts /wp-admin/edit.php3.44 ▲0.0845.36 ▼1.24
Add New Post /wp-admin/post-new.php3.17 ▼2.7241.23 ▼53.36
Media Library /wp-admin/upload.php3.24 ▲0.0234.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲1613.23 ▼1.214.95 ▲2.7741.33 ▲0.14
Dashboard /wp-admin2,205 ▼15.79 ▼0.0494.08 ▼6.2637.95 ▼1.42
Posts /wp-admin/edit.php2,102 ▲132.04 ▲0.0341.28 ▲5.5535.37 ▼2.41
Add New Post /wp-admin/post-new.php6,494 ▲4,96620.63 ▼2.60964.04 ▲287.4074.12 ▲22.49
Media Library /wp-admin/upload.php1,401 ▲164.21 ▲0.01101.55 ▼1.7845.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

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 / 포스트나 페이지를 수정하거나 추가할 때 보이는 메타박스)
The official readme.txt might help

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:
LanguageFilesBlank linesComment linesLines of code
PHP311725318
CSS1006

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 code0.42
Average class complexity27.00
▷ Minimum class complexity8.00
▷ Maximum class complexity46.00
Average method complexity3.74
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods19
▷ Static methods15.26%
▷ Public methods1052.63%
▷ Protected methods315.79%
▷ Private methods631.58%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
screenshot-1.png68.25KB15.19KB▼ 77.75%