Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲1.78MB] [CPU: ▲6.52ms] Passed 4 tests
Analyzing server-side resources used by Beer Blocks
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.29 ▲1.82 | 55.86 ▲10.94 |
Dashboard /wp-admin | 5.05 ▲1.75 | 60.75 ▲3.04 |
Posts /wp-admin/edit.php | 5.16 ▲1.80 | 64.26 ▲9.02 |
Add New Post /wp-admin/post-new.php | 7.98 ▲2.09 | 128.75 ▲17.86 |
Media Library /wp-admin/upload.php | 4.97 ▲1.74 | 50.07 ▲3.08 |
Server storage [IO: ▲1.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 217 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Beer Blocks
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,905 ▲143 | 13.91 ▼0.52 | 2.34 ▲0.43 | 53.14 ▼0.09 |
Dashboard /wp-admin | 2,268 ▲91 | 5.63 ▼0.10 | 114.82 ▲8.73 | 53.70 ▲2.42 |
Posts /wp-admin/edit.php | 2,177 ▲74 | 1.98 ▼0.04 | 48.00 ▼4.29 | 45.74 ▲4.38 |
Add New Post /wp-admin/post-new.php | 1,622 ▲96 | 25.85 ▲2.70 | 927.53 ▲57.77 | 49.66 ▼26.44 |
Media Library /wp-admin/upload.php | 1,476 ▲76 | 4.18 ▲0.01 | 162.08 ▲26.38 | 61.40 ▲1.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
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 take a closer look at the following
- 21× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
include(): Failed opening 'BEERB_PLUGIN_DIR_PATH/inc/helpers/fontawesome.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/beer-blocks/beer-blocks-helpers.php on line 5
- > PHP Warning
file_get_contents(BEERB_PLUGIN_DIR_PATH/src/helpers/google-fonts.json): failed to open stream: No such file or directory in wp-content/plugins/beer-blocks/inc/helpers/google-fonts.php on line 14
- > PHP Warning
include(): Failed opening 'BEERB_PLUGIN_DIR_PATH/inc/helpers/bootstrap.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/beer-blocks/beer-blocks-helpers.php on line 4
- > PHP Warning
Use of undefined constant BEERB_PLUGIN_DIR_PATH - assumed 'BEERB_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/beer-blocks/inc/helpers/google-fonts.php on line 11
- > PHP Warning
file_get_contents(BEERB_PLUGIN_DIR_PATH/src/helpers/safe-fonts.json): failed to open stream: No such file or directory in wp-content/plugins/beer-blocks/inc/helpers/google-fonts.php on line 11
- > PHP Warning
include(BEERB_PLUGIN_DIR_PATH/inc/helpers/google-fonts.php): failed to open stream: No such file or directory in wp-content/plugins/beer-blocks/beer-blocks-helpers.php on line 6
- > PHP Warning
Use of undefined constant BEERB_PLUGIN_DIR_PATH - assumed 'BEERB_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/beer-blocks/beer-blocks-helpers.php on line 6
- > PHP Warning
Use of undefined constant BEERB_PLUGIN_DIR_PATH - assumed 'BEERB_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/beer-blocks/beer-blocks-helpers.php on line 3
- > PHP Warning
Use of undefined constant BEERB_PLUGIN_DIR_PATH - assumed 'BEERB_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/beer-blocks/inc/helpers/google-fonts.php on line 14
- > PHP Warning
include(): Failed opening 'BEERB_PLUGIN_DIR_PATH/inc/helpers/google-fonts.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/beer-blocks/beer-blocks-helpers.php on line 6
- > PHP Warning
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)
There were no browser issues found
Optimizations
Plugin configuration Passed 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
5 plugin tags: gutenberg, design, blocks, block, blockeditor
beer-blocks/beer-blocks.php Passed 13 tests
The entry point to "Beer Blocks" version 1.8.0 is a PHP file that has certain tags in its header comment area
116 characters long description:
Beer Blocks extend the block editor with advanced and powerful blocks that help you build beautiful websites faster.
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
Good job! No executable or dangerous file extensions detected21,608 lines of code in 299 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 0 | 0 | 9,188 |
JavaScript | 108 | 945 | 826 | 8,275 |
Sass | 78 | 625 | 236 | 2,649 |
PHP | 35 | 113 | 113 | 621 |
PO File | 1 | 227 | 505 | 584 |
Markdown | 2 | 59 | 0 | 194 |
SVG | 26 | 2 | 0 | 51 |
CSS | 45 | 1 | 34 | 46 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
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 | 5 | |
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 | 29 | |
▷ Named functions | 25 | 86.21% |
▷ Anonymous functions | 4 | 13.79% |
Constants | 23 | |
▷ Global constants | 23 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 22.29KB | 6.60KB | ▼ 70.38% |
assets/icon-256x256.png | 52.76KB | 14.83KB | ▼ 71.90% |