90% piano-block

Code Review | Piano Block

WordPress plugin Piano Block scored90%from 54 tests.

About plugin

  • Plugin page: piano-block
  • Plugin version: 2.3.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2-6.4
  • WordPress version: 6.3.1
  • First release: Mar 1, 2022
  • Latest release: Oct 17, 2023
  • Number of updates: 11
  • Update frequency: every 54.2 days
  • Top authors: wildworks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,125 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.43ms] Passed 4 tests

A check of server-side resources used by Piano Block
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.33 ▼0.73
Dashboard /wp-admin3.33 ▲0.0346.54 ▼6.45
Posts /wp-admin/edit.php3.39 ▲0.0344.23 ▼5.55
Add New Post /wp-admin/post-new.php5.92 ▲0.0392.16 ▼9.40
Media Library /wp-admin/upload.php3.26 ▲0.0332.39 ▼4.30

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Piano Block
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲4614.73 ▲0.001.84 ▲0.0042.13 ▼1.48
Dashboard /wp-admin2,198 ▲215.62 ▲0.0988.69 ▼20.3843.13 ▼1.21
Posts /wp-admin/edit.php2,100 ▼02.10 ▲0.0733.24 ▼3.8031.08 ▼2.92
Add New Post /wp-admin/post-new.php6,204 ▲4,67819.60 ▼3.49872.63 ▲177.1637.73 ▼14.35
Media Library /wp-admin/upload.php1,400 ▼04.14 ▼0.0395.81 ▼6.8744.12 ▲0.60

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: music, piano, gutenberg, audio

piano-block/piano-block.php Passed 13 tests

The entry point to "Piano Block" version 2.3.0 is a PHP file that has certain tags in its header comment area
53 characters long description:
Can play a variety of tones using the piano keyboard.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,613 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
TypeScript131191111,150
Sass7421256
JSON200114
PHP3141875
JavaScript32617
CSS1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.15MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
build/images/block_bg.681e3584.png75.68KB79.93KB0.00%
assets/block_bg.png75.68KB79.93KB0.00%