99% peuwl-hero-block-lite

Code Review | Peuwl Hero Block LITE

WordPress plugin Peuwl Hero Block LITE scored 99% from 54 tests.

About plugin

  • Plugin page: peuwl-hero-block-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.2.2
  • WordPress version: 5.8.1
  • First release: Aug 7, 2019
  • Latest release: Aug 7, 2019
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: peuwl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 380 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.10MB] [CPU: ▼153.66ms] Passed 4 tests

A check of server-side resources used by Peuwl Hero Block LITE
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1434.86 ▲13.02
Dashboard /wp-admin3.07 ▲0.0241.64 ▲0.14
Posts /wp-admin/edit.php3.12 ▲0.0142.16 ▼1.28
Add New Post /wp-admin/post-new.php4.98 ▼0.4657.75 ▼611.13
Media Library /wp-admin/upload.php3.01 ▲0.0129.80 ▼2.35

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Peuwl Hero Block LITE: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,720 ▲12417.46 ▲1.8217.77 ▲9.0347.92 ▲0.04
Dashboard /wp-admin2,995 ▲615.97 ▼0.12128.27 ▼15.57112.36 ▼0.80
Posts /wp-admin/edit.php2,739 ▼02.69 ▲0.0162.66 ▼4.7586.79 ▲3.32
Add New Post /wp-admin/post-new.php1,510 ▲1218.45 ▼0.42358.37 ▲0.71123.44 ▲8.54
Media Library /wp-admin/upload.php1,807 ▼05.02 ▲0.04141.29 ▼10.51123.29 ▼3.73

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
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


Plugin configuration 86% 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
Attributes that need to be fixed: Please take inspiration from this readme.txt

peuwl-hero-block-lite/plugin.php 77% from 13 tests

The entry point to "Peuwl Hero Block LITE" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("peuwl-hero-block-lite.php" instead of "plugin.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 247 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin711 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
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 functions375.00%
▷ Anonymous functions125.00%
▷ Global constants00.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