89% hot-blocks

Code Review | Hot Blocks

WordPress plugin Hot Blocks scored 89% from 54 tests.

About plugin

  • Plugin page: hot-blocks
  • Plugin version: 1.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Dec 13, 2018
  • Latest release: Aug 23, 2023
  • Number of updates: 44
  • Update frequency: every 39.0 days
  • Top authors: hotwptemplates (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active / 15,062 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.01MB] [CPU: ▲2.29ms] Passed 4 tests

Server-side resources used by Hot Blocks
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.41 ▲4.34
Dashboard /wp-admin3.32 ▲0.0245.14 ▼1.29
Posts /wp-admin/edit.php3.37 ▲0.0245.69 ▼2.40
Add New Post /wp-admin/post-new.php5.87 ▼0.0194.92 ▲8.51
Media Library /wp-admin/upload.php3.25 ▲0.0241.97 ▲10.01

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Hot Blocks
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,885 ▲15013.71 ▼0.945.49 ▲3.8241.05 ▼5.87
Dashboard /wp-admin2,203 ▲155.83 ▲0.9495.63 ▼22.3038.78 ▼7.68
Posts /wp-admin/edit.php2,092 ▲32.00 ▲0.0138.63 ▼0.4134.48 ▲0.27
Add New Post /wp-admin/post-new.php6,596 ▲5,06822.37 ▲3.95919.22 ▲292.3035.24 ▼30.29
Media Library /wp-admin/upload.php1,388 ▼34.22 ▼0.0897.42 ▲0.8140.94 ▼4.98

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 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
Please fix the following attributes:
  • Plugin Name: Please specify the plugin name on the first line ( === hot-blocks === )
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
You can take inspiration from this readme.txt

hot-blocks/hot_blocks.php 92% from 13 tests

The main PHP file in "Hot Blocks" ver. 1.3.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("hot-blocks.php" instead of "hot_blocks.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin2,439 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript122415911,938
CSS28521337
PO File1282885
PHP1181679

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/controls.png2.74KB1.42KB▼ 48.29%