84% bauhaus-centenary

Code Review | Bauhaus Centenary Block

WordPress plugin Bauhaus Centenary Block scored84%from 54 tests.

About plugin

  • Plugin page: bauhaus-centenary
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.0
  • WordPress version: 6.3.1
  • First release: Dec 18, 2019
  • Latest release: May 25, 2022
  • Number of updates: 11
  • Update frequency: every 80.9 days
  • Top authors: ajlende (81.82%)oskosk (18.18%)mkaz (18.18%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,310 total downloads


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
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.38ms] Passed 4 tests

Analyzing server-side resources used by Bauhaus Centenary Block
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.55 ▲0.27
Dashboard /wp-admin3.32 ▲0.0242.89 ▼4.19
Posts /wp-admin/edit.php3.37 ▲0.0146.44 ▼0.54
Add New Post /wp-admin/post-new.php5.90 ▲0.0293.34 ▼2.79
Media Library /wp-admin/upload.php3.24 ▲0.0132.27 ▼2.01

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bauhaus Centenary Block
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.64 ▼0.751.71 ▲0.1437.69 ▼3.78
Dashboard /wp-admin2,206 ▲185.90 ▼0.00106.83 ▲2.4342.64 ▲0.48
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0140.56 ▲6.0034.20 ▼0.88
Add New Post /wp-admin/post-new.php6,245 ▲4,73119.87 ▲2.41835.49 ▲180.6155.01 ▲0.88
Media Library /wp-admin/upload.php1,388 ▲64.21 ▲0.0096.83 ▲0.8345.21 ▲2.42

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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 fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: block, bauhaus, blocks

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

The entry point to "Bauhaus Centenary Block" version 1.0.3 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bauhaus-centenary.php" instead of "index.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
No dangerous file extensions were detected120 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected