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: ▲4.34MB] [CPU: ▲35.26ms] 75% from 4 tests
A check of server-side resources used by Spectra - WordPress Gutenberg Blocks
It is recommended to improve the following
- CPU: The total CPU usage must kept under 500.00ms (currently 843.00ms on /wp-admin/admin.php?page=spectra&path=settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.49 ▲4.02 | 73.69 ▲35.89 |
Dashboard /wp-admin | 7.74 ▲4.43 | 75.08 ▲27.02 |
Posts /wp-admin/edit.php | 7.79 ▲4.43 | 83.73 ▲34.87 |
Add New Post /wp-admin/post-new.php | 21.51 ▲15.62 | 466.95 ▲366.47 |
Media Library /wp-admin/upload.php | 7.69 ▲4.45 | 76.80 ▲43.25 |
Settings /wp-admin/admin.php?page=spectra&path=settings | 8.54 | 843.00 |
AI Features /wp-admin/admin.php?page=spectra&path=ai-features | 8.12 | 121.02 |
Dashboard /wp-admin/admin.php?page=spectra | 8.12 | 137.42 |
Blocks /wp-admin/admin.php?page=spectra&path=blocks | 8.12 | 139.46 |
Popup Builder /wp-admin/edit.php?post_type=spectra-popup | 7.73 | 64.55 |
Server storage [IO: ▲15.08MB] [DB: ▲1.21MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 548 new files
Database: no new tables, 19 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
uag_enable_dynamic_content |
widget_theysaidso_widget |
widget_recent-comments |
_uagb_allow_file_generation |
uag_enable_animations_extension |
uagb-version |
__uagb_asset_version |
... |
Browser metrics Passed 4 tests
Spectra - WordPress Gutenberg Blocks: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,858 ▲86 | 14.20 ▼0.51 | 1.92 ▲0.07 | 41.95 ▲4.58 |
Dashboard /wp-admin | 2,254 ▲77 | 5.64 ▲0.03 | 97.53 ▲4.99 | 41.82 ▼0.89 |
Posts /wp-admin/edit.php | 2,162 ▲62 | 2.00 ▼0.03 | 40.94 ▲2.83 | 35.62 ▼0.67 |
Add New Post /wp-admin/post-new.php | 3,049 ▲1,523 | 38.10 ▲14.96 | 1,192.08 ▲599.16 | 78.31 ▲25.71 |
Media Library /wp-admin/upload.php | 1,461 ▲61 | 4.12 ▼0.08 | 108.12 ▲9.28 | 44.42 ▲1.09 |
Settings /wp-admin/admin.php?page=spectra&path=settings | 1,199 | 4.34 | 86.88 | 98.70 |
AI Features /wp-admin/admin.php?page=spectra&path=ai-features | 1,192 | 4.19 | 87.33 | 45.88 |
Dashboard /wp-admin/admin.php?page=spectra | 1,604 | 11.35 | 332.37 | 87.43 |
Blocks /wp-admin/admin.php?page=spectra&path=blocks | 1,728 | 5.17 | 69.00 | 62.44 |
Popup Builder /wp-admin/edit.php?post_type=spectra-popup | 1,128 | 1.90 | 32.26 | 30.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲1.21MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 19 options
- uag_enable_block_condition
- theysaidso_admin_options
- widget_recent-comments
- uagb_site_url
- widget_theysaidso_widget
- can_compress_scripts
- _uagb_allow_file_generation
- __uagb_asset_version
- uag_enable_dynamic_content
- uag_enable_animations_extension
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following items
- 345× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/ultimate-addons-for-gutenberg/includes/blocks/taxonomy-list/block.php:16
- > PHP Fatal error
Uncaught Error: Class 'UAGB_Block_JS' not found in wp-content/plugins/ultimate-addons-for-gutenberg/includes/blocks/post-carousel/frontend.css.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/ultimate-addons-for-gutenberg/includes/blocks/post-timeline/block.php:16
- > PHP Fatal error
Uncaught Error: Class 'UAGB_Block_JS' not found in wp-content/plugins/ultimate-addons-for-gutenberg/includes/blocks/separator/frontend.css.php:12
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ultimate-addons-for-gutenberg/includes/blocks/table-of-contents/frontend.js.php on line 16
- > PHP Notice
Undefined variable: attr in wp-content/plugins/ultimate-addons-for-gutenberg/includes/blocks/social-share/frontend.css.php on line 12
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ultimate-addons-for-gutenberg/includes/blocks/slider-child/frontend.css.php on line 25
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/ultimate-addons-for-gutenberg/includes/blocks/icon-list/attributes.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/ultimate-addons-for-gutenberg/includes/blocks/post-button/block.php:14
- > PHP Fatal error
Uncaught Error: Class 'UAGB_Block_Helper' not found in wp-content/plugins/ultimate-addons-for-gutenberg/includes/blocks/cf7-styler/attributes.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: gutenberg blocks, blocks, block, gutenberg, editor
ultimate-addons-for-gutenberg/ultimate-addons-for-gutenberg.php Passed 13 tests
The main PHP file in "Spectra - WordPress Gutenberg Blocks" ver. 2.10.3 adds more information about the plugin and also serves as the entry point for this plugin
124 characters long description:
The Spectra extends the Gutenberg functionality with several unique and feature-rich blocks that help build websites faster.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected105,743 lines of code in 532 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 13 | 0 | 0 | 50,532 |
PHP | 273 | 5,294 | 8,946 | 42,432 |
JavaScript | 95 | 631 | 450 | 6,325 |
CSS | 68 | 557 | 384 | 5,171 |
SVG | 78 | 2 | 5 | 1,016 |
XML | 2 | 2 | 0 | 141 |
Bourne Shell | 2 | 23 | 11 | 125 |
HTML | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 104)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 44.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 285.00 |
Average method complexity | 5.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 104.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 64 | |
▷ Abstract classes | 2 | 3.12% |
▷ Concrete classes | 62 | 96.88% |
▷ Final classes | 11 | 17.74% |
Methods | 680 | |
▷ Static methods | 222 | 32.65% |
▷ Public methods | 646 | 95.00% |
▷ Protected methods | 5 | 0.74% |
▷ Private methods | 29 | 4.26% |
Functions | 29 | |
▷ Named functions | 17 | 58.62% |
▷ Anonymous functions | 12 | 41.38% |
Constants | 44 | |
▷ Global constants | 43 | 97.73% |
▷ Class constants | 1 | 2.27% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/gutenberg-templates/dist/placeholder.png | 50.74KB | 25.55KB | ▼ 49.64% |
admin/assets/images/placeholder.png | 4.18KB | 2.05KB | ▼ 50.90% |
lib/gutenberg-templates/dist/placeholder_200_200.png | 2.78KB | 2.55KB | ▼ 8.23% |
admin/assets/images/uagb-10.png | 12.31KB | 12.17KB | ▼ 1.16% |