Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.56MB] [CPU: ▼3.87ms] Passed 4 tests
An overview of server-side resources used by Random Image Block for Block Editor
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.10 ▲0.63 | 37.14 ▼4.35 |
Dashboard /wp-admin | 3.93 ▲0.58 | 52.58 ▼15.57 |
Posts /wp-admin/edit.php | 3.98 ▲0.62 | 53.39 ▲7.50 |
Add New Post /wp-admin/post-new.php | 6.45 ▲0.57 | 95.30 ▼0.04 |
Media Library /wp-admin/upload.php | 3.69 ▲0.46 | 39.82 ▲4.50 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 4.01 | 41.08 |
Server storage [IO: ▲3.57MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 192 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
fs_accounts |
can_compress_scripts |
fs_active_plugins |
fs_debug_mode |
widget_recent-comments |
Browser metrics Passed 4 tests
Random Image Block for Block Editor: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲100 | 14.72 ▲0.53 | 1.82 ▲0.13 | 28.46 ▼15.35 |
Dashboard /wp-admin | 2,224 ▲44 | 5.52 ▼0.05 | 97.18 ▲7.17 | 46.38 ▲3.63 |
Posts /wp-admin/edit.php | 2,130 ▲30 | 2.02 ▲0.02 | 41.64 ▲2.50 | 39.52 ▲6.06 |
Add New Post /wp-admin/post-new.php | 6,384 ▲4,854 | 27.53 ▲4.51 | 894.21 ▲284.59 | 40.32 ▼9.15 |
Media Library /wp-admin/upload.php | 1,429 ▲35 | 4.19 ▼0.06 | 101.97 ▲4.54 | 42.78 ▲1.49 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 1,094 | 1.66 | 23.66 | 27.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/random-image-block-for-block-editor/freemius/includes/class-freemius.php+8515
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 9 options in the database
- can_compress_scripts
- fs_debug_mode
- fs_active_plugins
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- fs_accounts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
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
7 plugin tags: random image block, gutenberg, random image, image, block...
random-image-block-for-block-editor/random-image-block.php 92% from 13 tests
Analyzing the main PHP file in "Random Image Block for Block Editor" version 1.0.3
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("random-image-block-for-block-editor.php" instead of "random-image-block.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected34,366 lines of code in 143 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 121 | 8,034 | 17,313 | 33,167 |
JavaScript | 4 | 114 | 177 | 803 |
Markdown | 1 | 68 | 0 | 214 |
JSON | 1 | 0 | 0 | 122 |
CSS | 15 | 1 | 4 | 44 |
XML | 1 | 3 | 0 | 16 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 91.84 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,088.00 |
Average method complexity | 4.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 49 | |
▷ Abstract classes | 2 | 4.08% |
▷ Concrete classes | 47 | 95.92% |
▷ Final classes | 0 | 0.00% |
Methods | 1,264 | |
▷ Static methods | 198 | 15.66% |
▷ Public methods | 874 | 69.15% |
▷ Protected methods | 17 | 1.34% |
▷ Private methods | 373 | 29.51% |
Functions | 106 | |
▷ Named functions | 104 | 98.11% |
▷ Anonymous functions | 2 | 1.89% |
Constants | 145 | |
▷ Global constants | 98 | 67.59% |
▷ Class constants | 47 | 32.41% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/random-image-block-for-block-editor.png | 1.61KB | 1.56KB | ▼ 2.80% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |