94% bauhaus-centenary

Code Review | Bauhaus Centenary Block

WordPress plugin Bauhaus Centenary Block scored 94% from 54 tests.

About plugin

  • Plugin page: bauhaus-centenary
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.6
  • WordPress version: 5.8.1
  • First release: Dec 18, 2019
  • Latest release: Jul 2, 2021
  • Number of updates: 10
  • Update frequency: every 56.3 days
  • Top authors: ajlende (80%)oskosk (20%)mkaz (20%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,324 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼193.85ms] Passed 4 tests

An overview of server-side resources used by Bauhaus Centenary Block
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0228.70 ▲4.78
Dashboard /wp-admin3.07 ▲0.0137.88 ▼3.41
Posts /wp-admin/edit.php3.12 ▲0.0237.27 ▲4.03
Add New Post /wp-admin/post-new.php5.44 ▲0.0074.59 ▼773.85
Media Library /wp-admin/upload.php3.02 ▲0.0124.62 ▼2.16

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Bauhaus Centenary Block: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,669 ▲6816.02 ▲0.156.47 ▼1.9372.64 ▼1.30
Dashboard /wp-admin2,930 ▲346.00 ▼0.16114.23 ▼16.02163.18 ▼10.62
Posts /wp-admin/edit.php2,737 ▼33.22 ▼0.0262.20 ▼0.85134.75 ▲0.80
Add New Post /wp-admin/post-new.php3,750 ▼5718.56 ▼0.48451.47 ▼13.44162.83 ▲2.93
Media Library /wp-admin/upload.php1,752 ▲35.53 ▲0.03143.34 ▲2.05186.58 ▲4.66

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bauhaus-centenary/index.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bauhaus-centenary/blocks/bauhaus-centenary.php:9

User-side errors Passed 1 test

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


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: bauhaus, blocks, block

bauhaus-centenary/index.php 92% from 13 tests

Analyzing the main PHP file in "Bauhaus Centenary Block" version 1.0.3
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bauhaus-centenary.php" instead of "index.php")

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
Good job! No executable or dangerous file extensions detected120 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.23
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 functions00.00%
▷ Anonymous functions2100.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
PNG images were not found in this plugin