Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲4.43MB] [CPU: ▲39.92ms] 75% from 4 tests
A check of server-side resources used by Otter Blocks - Gutenberg Blocks, Page Builder for Gutenberg Editor & FSE
The following require your attention
- CPU: You should keep total CPU usage under 500.00ms (currently 3,860.09ms on /wp-admin/admin.php?page=ti-about-otter_blocks)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.42 ▲5.95 | 86.77 ▲45.57 |
Dashboard /wp-admin | 7.63 ▲4.28 | 140.22 ▲74.65 |
Posts /wp-admin/edit.php | 7.65 ▲4.29 | 84.17 ▲37.18 |
Add New Post /wp-admin/post-new.php | 10.83 ▲4.94 | 144.46 ▲43.75 |
Media Library /wp-admin/upload.php | 7.46 ▲4.23 | 69.16 ▲33.16 |
About Us /wp-admin/admin.php?page=ti-about-otter_blocks | 8.54 | 3,860.09 |
Form Submissions /wp-admin/admin.php?page=form-submissions-free | 7.43 | 61.22 |
Blocks /wp-admin/admin.php?page=otter-blocks-toggle | 7.43 | 60.54 |
Settings /wp-admin/admin.php?page=otter | 7.47 | 68.96 |
Server storage [IO: ▲13.98MB] [DB: ▲0.91MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 1,074 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
otter_blocks_install |
themeisle_blocks_db_version |
themeisle_blocks_settings_redirect |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Otter Blocks - Gutenberg Blocks, Page Builder for Gutenberg Editor & FSE
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,138 ▲376 | 14.33 ▼0.01 | 1.97 ▲0.37 | 28.88 ▼14.61 |
Dashboard /wp-admin | 2,515 ▲348 | 5.67 ▲0.05 | 96.24 ▼6.40 | 49.96 ▲8.49 |
Posts /wp-admin/edit.php | 2,302 ▲202 | 2.01 ▼0.01 | 41.39 ▲4.85 | 37.74 ▲1.24 |
Add New Post /wp-admin/post-new.php | 1,737 ▲211 | 22.66 ▼0.97 | 954.15 ▲336.15 | 49.77 ▲9.41 |
Media Library /wp-admin/upload.php | 1,602 ▲202 | 4.22 ▲0.02 | 100.70 ▲4.99 | 42.93 ▲2.12 |
About Us /wp-admin/admin.php?page=ti-about-otter_blocks | 1,290 | 6.53 | 145.79 | 58.77 |
Form Submissions /wp-admin/admin.php?page=form-submissions-free | 1,106 | 1.78 | 32.90 | 35.44 |
Blocks /wp-admin/admin.php?page=otter-blocks-toggle | 2,498 | 13.75 | 176.70 | 149.39 |
Settings /wp-admin/admin.php?page=otter | 1,377 | 12.59 | 139.98 | 54.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.91MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 9 options
- themeisle_blocks_db_version
- widget_theysaidso_widget
- otter_blocks_install
- theysaidso_admin_options
- themeisle_blocks_settings_redirect
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/otter-blocks/vendor/masterminds/html5/bin/entities.php
- 352× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Sabberworm\\CSS\\Property\\AtRule' not found in wp-content/plugins/otter-blocks/vendor/sabberworm/php-css-parser/src/Property/CSSNamespace.php:11
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/otter-blocks/vendor/stripe/stripe-php/lib/SetupAttempt.php:29
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/otter-blocks/vendor/stripe/stripe-php/lib/Service/TestHelpers/CustomerService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/otter-blocks/vendor/stripe/stripe-php/lib/Service/Treasury/TransactionEntryService.php:7
- > PHP Fatal error
Uncaught Error: Class 'ThemeIsle\\GutenbergBlocks\\Base_CSS' not found in wp-content/plugins/otter-blocks/inc/css/blocks/class-progress-bar-css.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/otter-blocks/inc/patterns/content-with-progress-bars.php:9
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/otter-blocks/vendor/stripe/stripe-php/lib/CashBalance.php:16
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/otter-blocks/vendor/stripe/stripe-php/lib/ApplicationFeeRefund.php:23
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/otter-blocks/vendor/stripe/stripe-php/lib/SubscriptionItem.php:22
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/otter-blocks/vendor/stripe/stripe-php/lib/Service/SourceService.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: editor, post blocks, page builder, wordpress blocks, gutenberg blocks...
otter-blocks/otter-blocks.php 85% from 13 tests
The principal PHP file in "Otter Blocks - Gutenberg Blocks, Page Builder for Gutenberg Editor & FSE" v. 2.5.2 is loaded by WordPress automatically on each request
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 218 characters long)
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Please make sure to remedy the following
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/otter-blocks/vendor/stripe/stripe-php/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 521 | 7,705 | 24,585 | 44,883 |
CSS | 164 | 3,940 | 1,439 | 31,084 |
JSON | 99 | 1 | 0 | 18,695 |
SVG | 13 | 0 | 0 | 9,701 |
Markdown | 14 | 2,203 | 0 | 5,042 |
JavaScript | 38 | 28 | 133 | 194 |
XML | 1 | 0 | 0 | 15 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
It is recommended to fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 107)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 10.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 161.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 107.00 |
Code structure | ||
---|---|---|
Namespaces | 64 | |
Interfaces | 17 | |
Traits | 9 | |
Classes | 428 | |
▷ Abstract classes | 17 | 3.97% |
▷ Concrete classes | 411 | 96.03% |
▷ Final classes | 1 | 0.24% |
Methods | 2,331 | |
▷ Static methods | 367 | 15.74% |
▷ Public methods | 2,071 | 88.85% |
▷ Protected methods | 113 | 4.85% |
▷ Private methods | 147 | 6.31% |
Functions | 682 | |
▷ Named functions | 11 | 1.61% |
▷ Anonymous functions | 671 | 98.39% |
Constants | 1,665 | |
▷ Global constants | 17 | 1.02% |
▷ Class constants | 1,648 | 98.98% |
▷ Public constants | 1,648 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
32 PNG files occupy 1.68MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icons/map-dark.png | 20.87KB | 18.75KB | ▼ 10.12% |
assets/icons/map-night.png | 20.46KB | 18.67KB | ▼ 8.76% |
assets/images/guide/welcome-finish.png | 43.06KB | 44.91KB | 0.00% |
assets/leaflet/images/marker-icon-2x.png | 2.41KB | 2.52KB | 0.00% |
assets/images/count-animation.png | 33.99KB | 9.04KB | ▼ 73.40% |