94% wp-post-html-to-blocks

Code Review | WP Post HTML to Blocks

WordPress plugin WP Post HTML to Blocks scored 94% from 54 tests.

About plugin

  • Plugin page: wp-post-html-to-b...
  • Plugin version: 1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5
  • WordPress version: 5.8.1
  • First release: Jan 17, 2019
  • Latest release: Aug 8, 2020
  • Number of updates: 11
  • Update frequency: every 84.9 days
  • Top authors: zeshanb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 635 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼144.94ms] Passed 4 tests

An overview of server-side resources used by WP Post HTML to Blocks
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1231.74 ▲10.76
Dashboard /wp-admin3.06 ▲0.0152.68 ▼3.47
Posts /wp-admin/edit.php3.11 ▲0.0150.22 ▼0.44
Add New Post /wp-admin/post-new.php5.42 ▼0.0194.57 ▼574.10
Media Library /wp-admin/upload.php3.00 ▲0.0036.77 ▼1.75
WP Post HTML To Blocks /wp-admin/options-general.php?page=wp-post-html-to-blocks-info-page2.9732.05

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for WP Post HTML to Blocks
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8816.15 ▲0.659.81 ▲1.4655.20 ▼5.74
Dashboard /wp-admin2,975 ▲446.00 ▲0.07144.55 ▼9.07121.66 ▲8.35
Posts /wp-admin/edit.php2,744 ▲52.68 ▼0.1374.37 ▲4.9293.96 ▼4.45
Add New Post /wp-admin/post-new.php1,686 ▲9218.81 ▲0.04376.43 ▼14.26116.42 ▲0.76
Media Library /wp-admin/upload.php1,827 ▲175.01 ▼0.02151.52 ▼13.99126.26 ▲1.45
WP Post HTML To Blocks /wp-admin/options-general.php?page=wp-post-html-to-blocks-info-page1,2712.1066.0781.09

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-post-html-to-blocks/wp-post-html-to-blocks.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test


Plugin configuration 96% from 29 tests

readme.txt Passed 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
4 plugin tags: html block, surround, gutenberg, html tags

wp-post-html-to-blocks/wp-post-html-to-blocks.php 92% from 13 tests

Analyzing the main PHP file in "WP Post HTML to Blocks" version 1.1
The following require your attention:
  • Text Domain: The text domain should only use lowercase characters and dashes

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
No dangerous file extensions were detected232 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing 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 code0.43
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions660.00%
▷ Anonymous functions440.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected