83% simple-html-rich-text-for-block-editor

Code Review | Simple HTML Rich Text for Block Editor

WordPress plugin Simple HTML Rich Text for Block Editor scored83%from 54 tests.

About plugin

  • Plugin page: simple-html-rich-...
  • Plugin version: 1.3.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.0-6.0
  • WordPress version: 6.3.1
  • First release: May 27, 2019
  • Latest release: Feb 21, 2023
  • Number of updates: 19
  • Update frequency: every 72.0 days
  • Top authors: laurencebahiirwa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /4,121 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Simple HTML Rich Text for Block Editor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.89 ▼2.18
Dashboard /wp-admin3.31 ▲0.0047.52 ▲1.03
Posts /wp-admin/edit.php3.36 ▲0.0047.35 ▼6.40
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.11 ▼27.75
Media Library /wp-admin/upload.php3.23 ▲0.0034.45 ▼2.09

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Simple HTML Rich Text for Block Editor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5413.71 ▼0.931.75 ▼0.4041.35 ▼2.41
Dashboard /wp-admin2,203 ▲155.83 ▼0.0698.46 ▼4.9838.40 ▼5.16
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0839.02 ▼3.4134.35 ▼4.23
Add New Post /wp-admin/post-new.php1,530 ▲1022.92 ▼0.09653.19 ▲19.7354.75 ▲1.54
Media Library /wp-admin/upload.php1,391 ▲34.30 ▲0.1195.93 ▼2.2243.23 ▼2.31

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • 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)
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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/simple-html-rich-text-for-block-editor/index.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed: You can look at the official readme.txt

simple-html-rich-text-for-block-editor/index.php 85% from 13 tests

The principal PHP file in "Simple HTML Rich Text for Block Editor" v. 1.3.2 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("simple-html-rich-text-for-block-editor.php" instead of "index.php")
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.4" instead of "6.0.0")

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
There were no executable files found in this plugin139 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript11448120
PHP221819

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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
There are no PNG files in this plugin