Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.79MB] [CPU: ▲3.50ms] Passed 4 tests
Server-side resources used by Superb Addons - WordPress Editor Blocks & Patterns and Elementor Sections & Elements
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.28 ▲0.81 | 45.69 ▲4.19 |
Dashboard /wp-admin | 4.09 ▲0.78 | 60.10 ▲12.66 |
Posts /wp-admin/edit.php | 4.14 ▲0.78 | 50.16 ▲3.77 |
Add New Post /wp-admin/post-new.php | 7.00 ▲1.11 | 90.18 ▼1.15 |
Media Library /wp-admin/upload.php | 4.01 ▲0.78 | 37.20 ▲7.17 |
Dashboard /wp-admin/admin.php?page=superbaddons | 4.07 | 35.74 |
Settings /wp-admin/admin.php?page=superbaddons-settings | 4.10 | 37.99 |
Elementor Addons /wp-admin/admin.php?page=superbaddons-element-dashboard | 4.08 | 34.98 |
Get Help /wp-admin/admin.php?page=superbaddons-support | 4.11 | 37.73 |
Gutenberg Addons /wp-admin/admin.php?page=superbaddons-gutenberg-dashboard | 4.15 | 38.31 |
Server storage [IO: ▲2.00MB] [DB: ▲0.03MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 213 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
superbaddons_pre_activation |
widget_theysaidso_widget |
superbaddonslibrary_keydomain |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Superb Addons - WordPress Editor Blocks & Patterns and Elementor Sections & Elements
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲114 | 14.38 ▲0.10 | 1.90 ▲0.08 | 43.34 ▲0.20 |
Dashboard /wp-admin | 2,220 ▲43 | 5.64 ▼0.01 | 96.95 ▲5.44 | 79.89 ▲41.29 |
Posts /wp-admin/edit.php | 2,144 ▲44 | 2.11 ▲0.10 | 36.92 ▼2.18 | 33.88 ▼2.63 |
Add New Post /wp-admin/post-new.php | 1,663 ▲137 | 21.61 ▼1.62 | 686.19 ▲76.90 | 52.41 ▼1.02 |
Media Library /wp-admin/upload.php | 1,440 ▲37 | 4.19 ▲0.03 | 101.89 ▲0.28 | 71.79 ▲29.58 |
Dashboard /wp-admin/admin.php?page=superbaddons | 1,220 | 1.98 | 24.24 | 67.58 |
Settings /wp-admin/admin.php?page=superbaddons-settings | 1,308 | 2.14 | 25.88 | 40.43 |
Elementor Addons /wp-admin/admin.php?page=superbaddons-element-dashboard | 1,011 | 1.82 | 29.22 | 32.09 |
Get Help /wp-admin/admin.php?page=superbaddons-support | 1,469 | 2.02 | 25.34 | 61.40 |
Gutenberg Addons /wp-admin/admin.php?page=superbaddons-gutenberg-dashboard | 1,620 | 2.21 | 36.97 | 78.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- superbaddonslibrary_keydomain
- db_upgraded
- superbaddons_pre_activation
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% 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
Almost there! Just fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/superb-blocks/src/gutenberg/templates/pattern-tab-library-button.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/superb-blocks/src/gutenberg/templates/library-button.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/superb-blocks/src/gutenberg/templates/appender-button.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
superb-blocks/plugin.php 92% from 13 tests
The main PHP file in "Superb Addons - WordPress Editor Blocks & Patterns and Elementor Sections & Elements" ver. 3.1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("superb-blocks.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin6,283 lines of code in 168 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 74 | 692 | 348 | 4,854 |
SVG | 46 | 0 | 0 | 1,138 |
JSON | 7 | 0 | 0 | 209 |
CSS | 21 | 0 | 4 | 62 |
JavaScript | 20 | 0 | 1 | 20 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 8.23 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 20 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 65 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 65 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 241 | |
▷ Static methods | 70 | 29.05% |
▷ Public methods | 188 | 78.01% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 53 | 21.99% |
Functions | 9 | |
▷ Named functions | 1 | 11.11% |
▷ Anonymous functions | 8 | 88.89% |
Constants | 84 | |
▷ Global constants | 6 | 7.14% |
▷ Class constants | 78 | 92.86% |
▷ Public constants | 78 | 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
9 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/pointing_arrow.png | 0.37KB | 0.33KB | ▼ 9.63% |
assets/img/crown.png | 1.19KB | 0.61KB | ▼ 48.40% |
(invalid) blocks/images/defaultAvatar.dda9e675.png | 1.68KB | 0.00KB | ▼ 100.00% |
assets/img/icon-superb-dashboard-menu.png | 1.30KB | 0.79KB | ▼ 39.11% |
assets/img/superb_s_icon.png | 1.20KB | 0.55KB | ▼ 54.02% |