Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.25MB] [CPU: ▼12.24ms] 75% from 4 tests
A check of server-side resources used by WP Blocks Hub
Please fix the following
- CPU: Total CPU usage must kept under 500.00ms (currently 5,046.09ms on /wp-admin/admin.php?page=wp-blocks-hub-settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.92 ▲0.47 | 38.59 ▲0.34 |
Dashboard /wp-admin | 3.78 ▲0.48 | 49.53 ▼2.67 |
Posts /wp-admin/edit.php | 3.83 ▲0.48 | 48.47 ▲3.79 |
Add New Post /wp-admin/post-new.php | 5.51 ▼0.38 | 50.88 ▼50.40 |
Media Library /wp-admin/upload.php | 3.64 ▲0.42 | 38.87 ▲4.20 |
All Posts /wp-admin/edit.php?post_type=testimonial_post | 3.79 | 41.83 |
My Blocks /wp-admin/admin.php?page=wp-blocks-hub-my-blocks | 3.64 | 37.05 |
Add Benefit /wp-admin/post-new.php?post_type=benefit_post | 4.16 | 56.62 |
All People /wp-admin/edit.php?post_type=person_post | 3.75 | 37.89 |
Categories /wp-admin/edit-tags.php?taxonomy=testimonial_cat&post_type=testimonial_post | 3.64 | 37.15 |
Categories /wp-admin/edit-tags.php?taxonomy=portfolio_cat&post_type=portfolio_post | 3.64 | 39.61 |
Settings /wp-admin/admin.php?page=wp-blocks-hub-settings | 3.79 | 5,046.09 |
Hub /wp-admin/admin.php?page=wp-blocks-hub | 3.65 | 34.81 |
Add Post /wp-admin/post-new.php?post_type=testimonial_post | 3.86 | 55.72 |
Add Post /wp-admin/post-new.php?post_type=portfolio_post | 3.87 | 57.33 |
Server storage [IO: ▲8.87MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 367 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WP Blocks Hub
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,033 ▲298 | 13.41 ▼0.89 | 1.77 ▼0.06 | 41.35 ▼1.19 |
Dashboard /wp-admin | 2,415 ▲227 | 5.97 ▲0.07 | 101.73 ▲4.56 | 44.47 ▲3.32 |
Posts /wp-admin/edit.php | 2,308 ▲216 | 2.44 ▲0.44 | 41.56 ▲5.21 | 35.79 ▲6.79 |
Add New Post /wp-admin/post-new.php | 1,667 ▲138 | 23.37 ▲5.05 | 686.75 ▲65.48 | 55.50 ▲2.66 |
Media Library /wp-admin/upload.php | 1,606 ▲221 | 4.42 ▲0.23 | 102.44 ▲7.52 | 45.54 ▲2.31 |
All Posts /wp-admin/edit.php?post_type=testimonial_post | 1,345 | 2.43 | 39.84 | 33.73 |
My Blocks /wp-admin/admin.php?page=wp-blocks-hub-my-blocks | 1,187 | 2.49 | 44.35 | 37.74 |
Add Benefit /wp-admin/post-new.php?post_type=benefit_post | 2,778 | 7.97 | 190.61 | 72.30 |
All People /wp-admin/edit.php?post_type=person_post | 1,345 | 2.41 | 39.07 | 32.45 |
Categories /wp-admin/edit-tags.php?taxonomy=testimonial_cat&post_type=testimonial_post | 1,524 | 2.34 | 41.39 | 31.82 |
Categories /wp-admin/edit-tags.php?taxonomy=portfolio_cat&post_type=portfolio_post | 1,524 | 2.33 | 40.08 | 31.96 |
Settings /wp-admin/admin.php?page=wp-blocks-hub-settings | 4,857 | 4.89 | 357.01 | 190.38 |
Hub /wp-admin/admin.php?page=wp-blocks-hub | 1,191 | 2.31 | 44.44 | 31.33 |
Add Post /wp-admin/post-new.php?post_type=testimonial_post | 2,637 | 7.89 | 172.30 | 66.69 |
Add Post /wp-admin/post-new.php?post_type=portfolio_post | 2,797 | 8.13 | 167.60 | 72.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=wp-blocks-hub-settings
- > Notice in wp-content/plugins/wp-blocks-hub/App/Helper/Utils.php+26
Trying to access array offset on value of type int
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-blocks-hub-settings
- > Deprecated in wp-content/plugins/wp-blocks-hub/App/Helper/Utils.php+79
implode(): Passing glue string after array is deprecated. Swap the parameters
SRP 0% 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
- 5× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-blocks-hub/App/View/Backend/Settings/Pages/Hub/Tags.php
- > /wp-content/plugins/wp-blocks-hub/App/View/Backend/Popup.php
- > /wp-content/plugins/wp-blocks-hub/App/View/Backend/Settings/Pages/Hub/Categories.php
- > /wp-content/plugins/wp-blocks-hub/App/View/Backend/Settings/Pages/Hub/Compatibility.php
- > /wp-content/plugins/wp-blocks-hub/App/View/Backend/Settings/Footer.php
- 81× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-blocks-hub/App/View/Backend/CPT/Col_Id.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'WPBlocksHub\\Model\\Database' not found in wp-content/plugins/wp-blocks-hub/App/Model/Cache.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-blocks-hub/App/View/Backend/Pointers/WelcomePointer.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function WPBH() in wp-content/plugins/wp-blocks-hub/App/View/Backend/Settings/Pages/My_Blocks.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-blocks-hub/App/View/Backend/Pointers/Tour/Step2.php:1
- > PHP Notice
Trying to get property 'tags' of non-object in wp-content/plugins/wp-blocks-hub/App/View/Backend/Settings/Pages/Hub/Tags.php on line 10
- > PHP Notice
Trying to get property 'blocks' of non-object in wp-content/plugins/wp-blocks-hub/App/View/Backend/Settings/Pages/Hub/Blocks.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/wp-blocks-hub/vendor/scssphp/scssphp/src/Formatter/Debug.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-blocks-hub/App/View/Backend/Settings/Pages/Settings/Custom_Code.php:8
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/wp-blocks-hub/vendor/scssphp/scssphp/src/Formatter/Expanded.php:22
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- 23 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-blocks-hub-settings
- > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
wpColorPickerL10n.defaultLabel is deprecated since version 5.5.0! Use wp.i18n instead.
- 23 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-blocks-hub-settings
- > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
wpColorPickerL10n.pick is deprecated since version 5.5.0! Use wp.i18n instead.
- 23 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-blocks-hub-settings
- > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
wpColorPickerL10n.clear is deprecated since version 5.5.0! Use wp.i18n instead.
- 23 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-blocks-hub-settings
- > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
wpColorPickerL10n.clearAriaLabel is deprecated since version 5.5.0! Use wp.i18n instead.
- > GET request to /wp-admin/admin.php?page=wp-blocks-hub-settings
- > Network (severe)
https://fonts.googleapis.com/css?family= - Failed to load resource: the server responded with a status of 400 ()
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
5 plugin tags: gutenberg-blocks, block, elementor, shortcode, blocks
wp-blocks-hub/wp-blocks-hub.php 92% from 13 tests
The main PHP file in "WP Blocks Hub" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 510 characters long)
Code Analysis 0% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Please fix the following items
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/wp-blocks-hub/vendor/bin/pscss.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 136 | 4,485 | 4,931 | 14,642 |
CSS | 37 | 3,820 | 117 | 12,849 |
SVG | 17 | 12 | 13 | 4,601 |
PO File | 1 | 1,045 | 10,280 | 2,413 |
JavaScript | 95 | 596 | 286 | 1,623 |
Sass | 8 | 45 | 6 | 1,016 |
JSON | 5 | 0 | 0 | 213 |
Markdown | 6 | 55 | 0 | 115 |
XML | 2 | 2 | 1 | 23 |
YAML | 1 | 0 | 0 | 17 |
Bourne Shell | 1 | 3 | 1 | 10 |
DOS Batch | 1 | 0 | 0 | 4 |
PHP code 0% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 1,083)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 155)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 31.99 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,083.00 |
Average method complexity | 4.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 155.00 |
Code structure | ||
---|---|---|
Namespaces | 16 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 77 | |
▷ Abstract classes | 3 | 3.90% |
▷ Concrete classes | 74 | 96.10% |
▷ Final classes | 0 | 0.00% |
Methods | 683 | |
▷ Static methods | 62 | 9.08% |
▷ Public methods | 366 | 53.59% |
▷ Protected methods | 283 | 41.43% |
▷ Private methods | 34 | 4.98% |
Functions | 34 | |
▷ Named functions | 3 | 8.82% |
▷ Anonymous functions | 31 | 91.18% |
Constants | 70 | |
▷ Global constants | 1 | 1.43% |
▷ Class constants | 69 | 98.57% |
▷ Public constants | 69 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/libs/leaflet/images/layers-2x.png | 1.23KB | 1.67KB | 0.00% |
assets/libs/leaflet/images/marker-icon-2x.png | 2.41KB | 2.52KB | 0.00% |
assets/libs/leaflet/images/marker-shadow.png | 0.60KB | 1.16KB | 0.00% |
assets/libs/leaflet/images/layers.png | 0.68KB | 1.05KB | 0.00% |
assets/libs/swipebox/icons.png | 0.71KB | 0.43KB | ▼ 39.64% |