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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 41.33 ▼0.73 |
Dashboard /wp-admin | 3.33 ▲0.03 | 46.54 ▼6.45 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 44.23 ▼5.55 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 92.16 ▼9.40 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 32.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲46 | 14.73 ▲0.00 | 1.84 ▲0.00 | 42.13 ▼1.48 |
Dashboard /wp-admin | 2,198 ▲21 | 5.62 ▲0.09 | 88.69 ▼20.38 | 43.13 ▼1.21 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.10 ▲0.07 | 33.24 ▼3.80 | 31.08 ▼2.92 |
Add New Post /wp-admin/post-new.php | 6,204 ▲4,678 | 19.60 ▼3.49 | 872.63 ▲177.16 | 37.73 ▼14.35 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.14 ▼0.03 | 95.81 ▼6.87 | 44.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
TypeScript | 13 | 119 | 111 | 1,150 |
Sass | 7 | 42 | 1 | 256 |
JSON | 2 | 0 | 0 | 114 |
PHP | 3 | 14 | 18 | 75 |
JavaScript | 3 | 2 | 6 | 17 |
CSS | 1 | 0 | 0 | 1 |
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 code | 0.39 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
build/images/block_bg.681e3584.png | 75.68KB | 79.93KB | 0.00% |
assets/block_bg.png | 75.68KB | 79.93KB | 0.00% |