Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲5.00MB] [CPU: ▲14.71ms] 75% from 4 tests
Server-side resources used by Multipurpose Gutenberg Block
Please fix the following
- Extra RAM: The extra memory usage should kept under 5MB (currently 5.00MB on /wp-admin/admin.php?page=multipurpose-block)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.85 ▲5.38 | 67.74 ▲24.66 |
Dashboard /wp-admin | 8.87 ▲5.56 | 73.58 ▲20.73 |
Posts /wp-admin/edit.php | 8.87 ▲5.51 | 76.80 ▲21.99 |
Add New Post /wp-admin/post-new.php | 9.45 ▲3.56 | 98.53 ▼8.54 |
Media Library /wp-admin/upload.php | 8.87 ▲5.64 | 88.42 ▲50.00 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.87 | 61.18 |
Multipurpose Gutenberg Block /wp-admin/admin.php?page=multipurpose-block | 8.87 | 67.93 |
Server storage [IO: ▲3.27MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 188 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
fs_debug_mode |
fs_active_plugins |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
fs_accounts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Multipurpose Gutenberg Block
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 14.35 ▲0.04 | 1.70 ▲0.14 | 31.01 ▼8.62 |
Dashboard /wp-admin | 2,215 ▲38 | 5.60 ▼0.08 | 83.76 ▼5.92 | 44.68 ▼1.58 |
Posts /wp-admin/edit.php | 2,121 ▲21 | 2.02 ▼0.03 | 40.76 ▼2.05 | 38.65 ▲2.57 |
Add New Post /wp-admin/post-new.php | 6,369 ▲4,821 | 27.84 ▲4.41 | 953.61 ▲323.84 | 73.92 ▲20.20 |
Media Library /wp-admin/upload.php | 1,417 ▲26 | 4.23 ▲0.04 | 111.02 ▲4.95 | 50.00 ▲3.91 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,069 | 2.20 | 23.87 | 27.99 |
Multipurpose Gutenberg Block /wp-admin/admin.php?page=multipurpose-block | 979 | 1.72 | 31.47 | 65.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/multipurpose-block/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 9 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- fs_active_plugins
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- fs_accounts
- fs_debug_mode
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: block, gutenberg blocks, blocks, block-editor, gutenberg
multipurpose-block/index.php 85% from 13 tests
The main PHP file in "Multipurpose Gutenberg Block" ver. 1.7.6 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("multipurpose-block.php" instead of "index.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 299 characters long)
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
Success! There were no dangerous files found in this plugin38,265 lines of code in 140 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 118 | 7,975 | 17,229 | 32,990 |
JSON | 2 | 0 | 0 | 4,802 |
JavaScript | 5 | 47 | 95 | 299 |
CSS | 15 | 20 | 22 | 174 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 93.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 48 | |
▷ Abstract classes | 2 | 4.17% |
▷ Concrete classes | 46 | 95.83% |
▷ Final classes | 0 | 0.00% |
Methods | 1,259 | |
▷ Static methods | 197 | 15.65% |
▷ Public methods | 870 | 69.10% |
▷ Protected methods | 17 | 1.35% |
▷ Private methods | 372 | 29.55% |
Functions | 101 | |
▷ Named functions | 101 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
images/padding_top.png | 1.04KB | 0.24KB | ▼ 76.57% |
images/icons.png | 4.22KB | 2.04KB | ▼ 51.72% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |