84% bulk-block-converter

Code Review | Bulk Block Converter

WordPress plugin Bulk Block Converter scored84%from 54 tests.

About plugin

  • Plugin page: bulk-block-converter
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.3
  • WordPress version: 6.3.1
  • First release: Jan 1, 2020
  • Latest release: Jan 31, 2020
  • Number of updates: 3
  • Update frequency: every 10.3 days
  • Top authors: organicthemes (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

700+ active /12,952 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.10MB] [CPU: ▼11.20ms] Passed 4 tests

An overview of server-side resources used by Bulk Block Converter
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1135.29 ▼12.65
Dashboard /wp-admin3.42 ▲0.0848.97 ▼20.33
Posts /wp-admin/edit.php3.53 ▲0.1850.52 ▲2.63
Add New Post /wp-admin/post-new.php6.00 ▲0.1293.74 ▼10.52
Media Library /wp-admin/upload.php3.34 ▲0.1135.93 ▼1.29
Block Conversion /wp-admin/tools.php?page=bulk-block-conversion3.3538.62

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Bulk Block Converter: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.25 ▼0.101.69 ▼0.3441.92 ▼2.19
Dashboard /wp-admin2,202 ▲255.54 ▼0.1288.38 ▲0.6744.28 ▲1.00
Posts /wp-admin/edit.php2,104 ▲41.96 ▼0.0739.34 ▼0.2937.54 ▲2.47
Add New Post /wp-admin/post-new.php1,540 ▲1218.24 ▼4.96639.01 ▼62.1764.71 ▲9.70
Media Library /wp-admin/upload.php1,407 ▲74.20 ▲0.0497.52 ▼3.2443.28 ▼2.94
Block Conversion /wp-admin/tools.php?page=bulk-block-conversion82510.22308.7724.60

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/tools.php?page=bulk-block-conversion
    • > Console-api (severe) in unknown
    /wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0 9:53544 TypeError: Cannot read properties of undefined (reading 'allowedBlockTypes')at /wp-includes/js/dist/edit-post.min.js?ver=390f6baf200b6016874f:7:123477at Object.useMemo (/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:115227)at e.useMemo (/wp-includes/js/dist/vendor/react.min.js?ver=18.2.0:10:9875)at ja (/wp-includes/js/dist/edit-post.min.js?ver=390f6baf200b6016874f:7:123241)at wt (/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:47637)at js (/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:120584)at wl (/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:88659)at bl (/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:88587)at yl (/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:88450)at il (/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:85274)
    • > GET request to /wp-admin/tools.php?page=bulk-block-conversion
    • > Javascript (severe) in unknown
    /wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0 9:91924 Uncaught TypeError: Cannot read properties of undefined (reading 'allowedBlockTypes')

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: conversion, migrate, editor, gutenberg, block...

bulk-block-converter/bulk-block-converter.php 92% from 13 tests

The main PHP file in "Bulk Block Converter" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin816 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2123223579
JavaScript11613237

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods425.00%
▷ Public methods1593.75%
▷ Protected methods16.25%
▷ Private methods00.00%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin