Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲1.05MB] [CPU: ▼0.82ms] Passed 4 tests
Server-side resources used by Elegant Blocks - Amazing Gutenberg Blocks
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.29 | 44.00 ▲7.80 |
Dashboard /wp-admin | 5.29 ▲1.98 | 68.73 ▲12.73 |
Posts /wp-admin/edit.php | 5.42 ▲2.06 | 76.93 ▲22.81 |
Add New Post /wp-admin/post-new.php | 5.76 ▼0.12 | 54.93 ▼46.62 |
Media Library /wp-admin/upload.php | 5.36 ▲2.13 | 65.95 ▲35.65 |
Testimonials /wp-admin/edit.php?post_type=ct_testimonials | 5.40 | 57.98 |
Teams /wp-admin/edit.php?post_type=ct_teams | 5.40 | 58.67 |
Add New /wp-admin/post-new.php?post_type=cp_services | 5.75 | 53.03 |
Add New /wp-admin/post-new.php?post_type=ct_testimonials | 5.75 | 56.42 |
Services /wp-admin/edit.php?post_type=cp_services | 5.40 | 62.76 |
Categories /wp-admin/edit-tags.php?taxonomy=ct_team_category&post_type=ct_teams | 5.29 | 56.61 |
Sliders /wp-admin/edit.php?post_type=ct_slider | 5.40 | 58.83 |
Add New /wp-admin/post-new.php?post_type=ct_gallery | 5.75 | 57.31 |
Add New /wp-admin/post-new.php?post_type=eb_clients | 5.76 | 51.99 |
Add New /wp-admin/post-new.php?post_type=ct_slider | 5.75 | 52.33 |
Server storage [IO: ▲26.20MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
These are issues you should consider
- Try to limit filesystem usage to 25MB (currently using 26.20MB)
Filesystem: 307 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics 75% from 4 tests
This is an overview of browser requirements for Elegant Blocks - Amazing Gutenberg Blocks
Having an awesome user experience is important, so please improve the following
- Nodes: It is recommended to reduce the number of DOM nodes under 25,000 (currently 52,026 on /wp-admin/post-new.php?post_type=cp_services)
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,229 ▲494 | 15.99 ▲1.20 | 40.57 ▲38.80 | 88.64 ▲38.59 |
Dashboard /wp-admin | 2,442 ▲251 | 5.93 ▲1.02 | 113.49 ▲7.52 | 39.60 ▼5.54 |
Posts /wp-admin/edit.php | 2,325 ▲236 | 2.79 ▲0.82 | 39.10 ▼1.98 | 36.92 ▼0.19 |
Add New Post /wp-admin/post-new.php | 47,304 ▲45,790 | 22.43 ▲4.60 | 838.35 ▲183.59 | 871.38 ▲815.65 |
Media Library /wp-admin/upload.php | 1,624 ▲236 | 5.35 ▲1.13 | 103.54 ▼8.83 | 44.70 ▼0.10 |
Testimonials /wp-admin/edit.php?post_type=ct_testimonials | 1,306 | 2.77 | 39.08 | 27.93 |
Teams /wp-admin/edit.php?post_type=ct_teams | 1,294 | 2.84 | 39.37 | 29.01 |
Add New /wp-admin/post-new.php?post_type=cp_services | 52,026 | 24.44 | 1,019.45 | 695.19 |
Add New /wp-admin/post-new.php?post_type=ct_testimonials | 6,516 | 22.34 | 786.73 | 38.25 |
Services /wp-admin/edit.php?post_type=cp_services | 1,294 | 2.84 | 36.46 | 28.82 |
Categories /wp-admin/edit-tags.php?taxonomy=ct_team_category&post_type=ct_teams | 1,498 | 2.90 | 35.34 | 29.26 |
Sliders /wp-admin/edit.php?post_type=ct_slider | 1,294 | 2.74 | 37.96 | 29.22 |
Add New /wp-admin/post-new.php?post_type=ct_gallery | 6,392 | 22.99 | 762.62 | 30.09 |
Add New /wp-admin/post-new.php?post_type=eb_clients | 1,720 | 19.06 | 758.52 | 32.90 |
Add New /wp-admin/post-new.php?post_type=ct_slider | 6,438 | 22.52 | 789.75 | 35.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 10 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=ct_slider
- > User deprecated in wp-includes/functions.php+5828
Hook block_categories is deprecated since version 5.8.0! Use block_categories_all instead.
SRP 50% 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
The following issues need your attention
- 36× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/elegant-blocks/theme/green-eco-planet/functions.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/elegant-blocks/theme/green-eco-planet/demo/demo.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/elegant-blocks/theme/pizza-hub/theme-option.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/elegant-blocks/src/inc/meta_box.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/elegant-blocks/theme/dr-life-saver/demo-pro/demo.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/elegant-blocks/theme/bizberg/theme-option.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/elegant-blocks/theme/education-business/theme-option.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/elegant-blocks/theme/professional-education-consultancy/demo-pro/demo.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/elegant-blocks/src/inc/post_types.php:209
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/elegant-blocks/theme/education-business/demo/demo.php:4
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=ct_slider
- > Console-api (warning) in unknown
http://maps.googleapis.com/maps/api/js?libraries=places&key&ver=1 234:51 "Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading"
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: blocks, gutenberg blocks, block, gutenberg, editor...
elegant-blocks/plugin.php 92% from 13 tests
The primary PHP file in "Elegant Blocks - Amazing Gutenberg Blocks" version 1.7 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("elegant-blocks.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 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
No dangerous file extensions were detected160,067 lines of code in 137 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 13 | 2,606 | 3,587 | 67,903 |
SVG | 5 | 0 | 16 | 32,827 |
PHP | 64 | 3,951 | 1,549 | 19,147 |
JSON | 2 | 0 | 0 | 19,052 |
CSS | 12 | 3,600 | 448 | 15,339 |
JavaScript | 12 | 306 | 191 | 2,262 |
Sass | 15 | 35 | 35 | 1,779 |
LESS | 14 | 34 | 44 | 1,758 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 291 | |
▷ Named functions | 290 | 99.66% |
▷ Anonymous functions | 1 | 0.34% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
55 PNG files occupy 0.70MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/images/shape_divider/7.png | 18.83KB | 6.85KB | ▼ 63.59% |
src/images/map_icons/12.png | 2.08KB | 1.82KB | ▼ 12.22% |
src/images/map_icons/16.png | 1.43KB | 1.14KB | ▼ 20.12% |
src/images/shape_divider/13.png | 12.04KB | 7.33KB | ▼ 39.12% |
src/images/shape_divider/16.png | 34.28KB | 22.86KB | ▼ 33.32% |