90% bnm-blocks

Code Review | BNM Blocks

WordPress plugin BNM Blocks scored90%from 54 tests.

About plugin

  • Plugin page: bnm-blocks
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.2
  • WordPress version: 6.3.1
  • First release: Sep 26, 2023
  • Latest release: Sep 26, 2023
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: Pubudu Malalasekara (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /22 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.40MB] [CPU: ▼1.49ms] Passed 4 tests

A check of server-side resources used by BNM Blocks
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.90 ▲0.4437.31 ▼1.91
Dashboard /wp-admin3.69 ▲0.3947.48 ▲1.74
Posts /wp-admin/edit.php3.74 ▲0.3846.16 ▲0.21
Add New Post /wp-admin/post-new.php6.35 ▲0.4798.79 ▼2.67
Media Library /wp-admin/upload.php3.61 ▲0.3833.70 ▼1.57

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 119 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for BNM Blocks
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6914.44 ▲0.041.91 ▲0.2240.85 ▼0.80
Dashboard /wp-admin2,206 ▲185.99 ▲1.1194.83 ▼12.4838.03 ▼3.66
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0232.22 ▼1.1934.80 ▼1.82
Add New Post /wp-admin/post-new.php6,213 ▲4,69919.54 ▲2.08872.53 ▲228.9435.62 ▼11.35
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.0397.72 ▼3.9343.10 ▼0.27

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 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
5 plugin tags: wordpress blocks, blocks, gutenberg blocks, gutenberg, page builder

bnm-blocks/bnm-blocks.php Passed 13 tests

"BNM Blocks" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
67 characters long description:
A Collection of Blocks for Blogs, Newspapers and Magazine websites.

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
Good job! No executable or dangerous file extensions detected14,966 lines of code in 97 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript456645476,354
JSON12104,350
Sass826012,137
PHP23420862,049
CSS913076

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity6.00
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods15
▷ Static methods640.00%
▷ Public methods1386.67%
▷ Protected methods00.00%
▷ Private methods213.33%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin