84% wp-munich-blocks

Code Review | WP Munich Blocks - Gutenberg Blocks for WordPress

WordPress plugin WP Munich Blocks - Gutenberg Blocks for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: wp-munich-blocks
  • Plugin version: 0.12.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.3
  • WordPress version: 6.3.1
  • First release: Nov 18, 2018
  • Latest release: Jul 21, 2023
  • Number of updates: 46
  • Update frequency: every 37.2 days
  • Top authors: wpmunich (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

400+ active /9,519 total downloads

Benchmarks

Plugin footprint 83% from 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.21MB] [CPU: ▼7.25ms] Passed 4 tests

An overview of server-side resources used by WP Munich Blocks - Gutenberg Blocks for WordPress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2438.03 ▼2.64
Dashboard /wp-admin3.51 ▲0.1647.79 ▼14.03
Posts /wp-admin/edit.php3.62 ▲0.2747.88 ▼5.22
Add New Post /wp-admin/post-new.php6.13 ▲0.2487.36 ▼7.09
Media Library /wp-admin/upload.php3.43 ▲0.2036.13 ▲0.90

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for WP Munich Blocks - Gutenberg Blocks for WordPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,901 ▲13013.52 ▼0.8410.00 ▲8.2139.64 ▼9.27
Dashboard /wp-admin2,212 ▲385.59 ▲0.0291.51 ▲4.0441.79 ▼3.23
Posts /wp-admin/edit.php2,117 ▲172.02 ▼0.0139.37 ▼2.8435.56 ▼1.54
Add New Post /wp-admin/post-new.php6,216 ▲4,67919.75 ▲1.56930.90 ▲323.4638.96 ▼29.06
Media Library /wp-admin/upload.php1,479 ▲764.17 ▼0.0496.24 ▼5.0343.43 ▼5.10

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function class_names() in wp-content/plugins/wp-munich-blocks/blocks/f-latest-posts/template.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: block, gutenberg blocks, layout, gutenberg, editor...

wp-munich-blocks/wp-munich-blocks.php Passed 13 tests

The principal PHP file in "WP Munich Blocks - Gutenberg Blocks for WordPress" v. 0.12.2 is loaded by WordPress automatically on each request
84 characters long description:
Create amazing content with the new WordPress block editor and the WP Munich blocks.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,117 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP102074711,100
JavaScript604611
CSS5005
SVG1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity4.50
▷ Minimum class complexity2.00
▷ Maximum class complexity7.00
Average method complexity1.34
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods41
▷ Static methods49.76%
▷ Public methods2253.66%
▷ Protected methods819.51%
▷ Private methods1126.83%
Functions11
▷ Named functions981.82%
▷ Anonymous functions218.18%
Constants2
▷ Global constants2100.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
4 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/1x1.png0.91KB0.09KB▼ 89.78%
img/wp-munich-300.png49.21KB36.38KB▼ 26.07%
blocks/f-feature-grid/assets/blockstyle_default.png1.96KB1.01KB▼ 48.61%
blocks/f-feature-grid/assets/blockstyle_inner-button.png1.83KB0.89KB▼ 51.09%