Benchmarks
Plugin footprint 81% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲8.77MB] [CPU: ▲35.29ms] 25% from 4 tests
This is a short check of server-side resources used by The Plus Blocks for Block Editor | Gutenberg
It is recommended to improve the following
- RAM: Total memory usage must be kept under 10MB (currently 12.59MB on /wp-admin/admin.php?page=tpgb_normal_blocks_opts)
- CPU: Try to keep total CPU usage under 500.00ms (currently 685.04ms on /wp-admin/admin.php?page=tpgb_connection_data)
- Extra RAM: Extra memory usage must be kept under 5MB (currently 8.77MB on /wp-admin/admin.php?page=tpgb_normal_blocks_opts)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 12.58 ▲9.12 | 81.36 ▲40.92 |
Dashboard /wp-admin | 11.99 ▲8.65 | 86.73 ▲23.06 |
Posts /wp-admin/edit.php | 12.05 ▲8.69 | 91.01 ▲41.62 |
Add New Post /wp-admin/post-new.php | 17.43 ▲11.54 | 148.07 ▲62.33 |
Media Library /wp-admin/upload.php | 11.84 ▲8.61 | 72.20 ▲35.56 |
Welcome /wp-admin/admin.php?page=tpgb_welcome_page | 12.02 | 72.87 |
Patterns /wp-admin/edit.php?post_type=wp_block | 11.99 | 71.19 |
Activate /wp-admin/admin.php?page=tpgb_activate | 11.85 | 71.92 |
Performance /wp-admin/admin.php?page=tpgb_performance | 11.85 | 71.09 |
Custom /wp-admin/admin.php?page=tpgb_custom_css_js | 11.85 | 67.09 |
White Label /wp-admin/admin.php?page=tpgb_white_label | 11.85 | 68.05 |
Extra Options /wp-admin/admin.php?page=tpgb_connection_data | 12.27 | 685.04 |
Plus Blocks /wp-admin/admin.php?page=tpgb_normal_blocks_opts | 12.59 | 72.94 |
Server storage [IO: ▲13.03MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 968 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
tpgb_version_dynamic_cache |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
tpgb-load-templates-list |
tpgb_global_options |
tpgb_defer_css_js |
tpgb_delay_css_js |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for The Plus Blocks for Block Editor | Gutenberg
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,100 ▲342 | 14.84 ▲0.65 | 8.82 ▲7.01 | 37.87 ▼4.50 |
Dashboard /wp-admin | 2,407 ▲229 | 6.18 ▲0.44 | 118.00 ▲2.97 | 42.98 ▲4.20 |
Posts /wp-admin/edit.php | 2,336 ▲236 | 3.31 ▲1.37 | 53.59 ▲16.56 | 33.02 ▲1.83 |
Add New Post /wp-admin/post-new.php | 1,658 ▲132 | 26.51 ▲3.44 | 763.33 ▲134.21 | 85.30 ▲33.25 |
Media Library /wp-admin/upload.php | 1,475 ▲75 | 4.05 ▼0.08 | 81.26 ▼14.19 | 41.26 ▼4.04 |
Welcome /wp-admin/admin.php?page=tpgb_welcome_page | 1,964 | 2.95 | 50.51 | 138.18 |
Patterns /wp-admin/edit.php?post_type=wp_block | 1,376 | 8.10 | 180.92 | 29.86 |
Activate /wp-admin/admin.php?page=tpgb_activate | 1,230 | 3.01 | 41.28 | 94.70 |
Performance /wp-admin/admin.php?page=tpgb_performance | 1,252 | 3.11 | 40.82 | 45.48 |
Custom /wp-admin/admin.php?page=tpgb_custom_css_js | 1,208 | 2.96 | 45.36 | 36.58 |
White Label /wp-admin/admin.php?page=tpgb_white_label | 1,176 | 2.97 | 42.99 | 82.00 |
Extra Options /wp-admin/admin.php?page=tpgb_connection_data | 1,488 | 3.11 | 43.95 | 41.52 |
Plus Blocks /wp-admin/admin.php?page=tpgb_normal_blocks_opts | 4,270 | 12.13 | 145.30 | 69.73 |
Uninstaller [IO: ▲0.76MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 11 options in the database
- can_compress_scripts
- tpgb_global_options
- tpgb_defer_css_js
- tpgb-load-templates-list
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- tpgb_version_dynamic_cache
- tpgb_delay_css_js
- ...
Smoke tests 50% from 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/the-plus-addons-for-block-editor/includes/social-feed/fancybox-header.php
- 20× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: FancyStyle in wp-content/plugins/the-plus-addons-for-block-editor/includes/social-feed/fancybox-feed.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/the-plus-addons-for-block-editor/includes/social-reviews/social-review-style-1.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/the-plus-addons-for-block-editor/includes/social-reviews/social-review-ob-style.php:20
- > PHP Notice
Undefined variable: Type in wp-content/plugins/the-plus-addons-for-block-editor/includes/social-feed/fancybox-feed.php on line 39
- > PHP Notice
Undefined variable: PopupOption in wp-content/plugins/the-plus-addons-for-block-editor/includes/social-feed/fancybox-feed.php on line 9
- > PHP Notice
Undefined variable: Type in wp-content/plugins/the-plus-addons-for-block-editor/includes/social-feed/fancybox-feed.php on line 39
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/the-plus-addons-for-block-editor/includes/social-feed/social-feed-style-3.php:8
- > PHP Warning
include(TPGB_INCLUDES_URLsocial-reviews/social-review-showmore.php): failed to open stream: No such file or directory in wp-content/plugins/the-plus-addons-for-block-editor/includes/social-reviews/social-review-ob-style.php on line 5
- > PHP Notice
Undefined variable: PopupOption in wp-content/plugins/the-plus-addons-for-block-editor/includes/social-feed/fancybox-feed.php on line 14
- > PHP Warning
Use of undefined constant TPGB_INCLUDES_URL - assumed 'TPGB_INCLUDES_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/the-plus-addons-for-block-editor/includes/social-reviews/social-review-ob-style.php on line 5
- > PHP Notice
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 96% from 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
6 plugin tags: gutenberg addons, wordpress blocks, gutenberg blocks, block editor, blocks...
the-plus-addons-for-block-editor/the-plus-addons-for-block-editor.php 92% from 13 tests
"The Plus Blocks for Block Editor | Gutenberg" version 3.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin94,043 lines of code in 873 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 102 | 3,108 | 2,916 | 58,512 |
SVG | 485 | 208 | 91 | 16,605 |
CSS | 182 | 815 | 402 | 15,356 |
JavaScript | 104 | 361 | 107 | 3,570 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 183)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.68 |
Average class complexity | 226.33 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 668.00 |
Average method complexity | 10.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 183.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 1 | 6.67% |
Methods | 326 | |
▷ Static methods | 63 | 19.33% |
▷ Public methods | 315 | 96.63% |
▷ Protected methods | 1 | 0.31% |
▷ Private methods | 10 | 3.07% |
Functions | 164 | |
▷ Named functions | 147 | 89.63% |
▷ Anonymous functions | 17 | 10.37% |
Constants | 21 | |
▷ Global constants | 20 | 95.24% |
▷ Class constants | 1 | 4.76% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
53 PNG files occupy 1.03MB with 0.38MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/overlays/style-6.png | 0.21KB | 0.10KB | ▼ 52.61% |
assets/images/dynamic-devices/iphone-white-flat.png | 4.13KB | 2.42KB | ▼ 41.41% |
assets/images/on-boarding/page1.png | 23.69KB | 23.68KB | 0.04% |
assets/images/theplus-logo.png | 5.93KB | 3.52KB | ▼ 40.63% |
assets/images/activate.png | 12.10KB | 6.03KB | ▼ 50.18% |