84% wp-post-html-to-blocks

Code Review | WP Post HTML to Blocks

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

About plugin

  • Plugin page: wp-post-html-to-b...
  • Plugin version: 1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Jan 17, 2019
  • Latest release: Aug 17, 2023
  • Number of updates: 13
  • Update frequency: every 128.7 days
  • Top authors: zeshanb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /946 total downloads

Benchmarks

Plugin footprint 83% from 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.03MB] [CPU: ▼9.80ms] 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 /3.50 ▲0.0336.65 ▼12.61
Dashboard /wp-admin3.34 ▲0.0443.35 ▼12.99
Posts /wp-admin/edit.php3.39 ▲0.0348.07 ▲7.41
Add New Post /wp-admin/post-new.php5.92 ▲0.0390.84 ▼12.87
Media Library /wp-admin/upload.php3.26 ▲0.0334.54 ▼0.74
WP Post HTML To Blocks /wp-admin/options-general.php?page=wp-post-html-to-blocks-info-page3.2331.82

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, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

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 /2,793 ▲714.42 ▲0.061.54 ▼0.4941.42 ▼2.41
Dashboard /wp-admin2,199 ▲225.63 ▼0.0391.39 ▼6.0540.09 ▼0.58
Posts /wp-admin/edit.php2,107 ▲71.98 ▼0.0139.89 ▲1.4036.90 ▲6.10
Add New Post /wp-admin/post-new.php1,529 ▲323.43 ▼0.25676.00 ▲72.2851.04 ▲0.77
Media Library /wp-admin/upload.php1,407 ▲74.25 ▲0.0296.06 ▲0.2240.24 ▼1.73
WP Post HTML To Blocks /wp-admin/options-general.php?page=wp-post-html-to-blocks-info-page9622.0024.2027.48

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

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

Optimizations

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: surround, html block, html tags, gutenberg

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.2
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
PHP115434232

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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions660.00%
▷ Anonymous functions440.00%
Constants0
▷ 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