Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.95MB] [CPU: ▼1.46ms] Passed 4 tests
Analyzing server-side resources used by Cosmic Blocks (40+) Content Editor Blocks Collection
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.52 ▲1.05 | 44.45 ▲3.85 |
Dashboard /wp-admin | 4.22 ▲0.87 | 49.50 ▼13.03 |
Posts /wp-admin/edit.php | 4.33 ▲0.97 | 49.42 ▲2.28 |
Add New Post /wp-admin/post-new.php | 7.09 ▲1.19 | 100.10 ▲1.73 |
Media Library /wp-admin/upload.php | 4.16 ▲0.93 | 41.70 ▲3.18 |
Cosmic Blocks /wp-admin/options-general.php?page=cosmic_wp_blocks | 4.13 | 34.95 |
Server storage [IO: ▲8.79MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 160 new files
Database: no new tables, 71 new options
New WordPress options |
---|
cosmic_blocks_front_block_simple_small |
cosmic_blocks_mobile_main_padding_top |
widget_recent-comments |
cosmic_blocks_linklist_images_slide |
cosmic_blocks_inline_notice |
db_upgraded |
cosmic_blocks_main_padding_top |
cosmic_blocks_countup |
cosmic_blocks_front_block_simple_wide |
cosmic_blocks_progress |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Cosmic Blocks (40+) Content Editor Blocks Collection
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,923 ▲152 | 13.91 ▼0.44 | 9.55 ▲7.44 | 35.91 ▼7.02 |
Dashboard /wp-admin | 2,204 ▲30 | 5.60 ▲0.09 | 81.59 ▼9.68 | 38.17 ▼0.47 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.06 ▲0.05 | 35.25 ▼2.56 | 32.17 ▼5.10 |
Add New Post /wp-admin/post-new.php | 6,339 ▲4,813 | 19.99 ▼3.15 | 887.46 ▲233.82 | 35.07 ▼21.53 |
Media Library /wp-admin/upload.php | 1,412 ▲9 | 4.22 ▲0.02 | 96.38 ▼1.48 | 44.08 ▲2.51 |
Cosmic Blocks /wp-admin/options-general.php?page=cosmic_wp_blocks | 1,510 | 1.83 | 25.31 | 44.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 20 options in the database
- cosmic_blocks_front_block_simple_small
- cosmic_blocks_mobile_main_padding_top
- cosmic_blocks_mobile_main_intro_padding_bottom
- cosmic_blocks_main_padding_bottom
- cosmic_blocks_editor_block_wide_width
- cosmic_blocks_permalinks_flushed
- can_compress_scripts
- cosmic_blocks_main_intro_padding_bottom
- db_upgraded
- widget_recent-posts
- ...
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/cosmic-blocks/custompages/fix-noopener.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: No descriptions were found for these screenshots #68, #69 in cosmic-blocks/assets to your readme.txt
- Tags: There are too many tags (32 tag instead of maximum 10)
cosmic-blocks/cosmic-blocks.php Passed 13 tests
The main PHP file in "Cosmic Blocks (40+) Content Editor Blocks Collection" ver. 1.3.0 adds more information about the plugin and also serves as the entry point for this plugin
115 characters long description:
High quality blocks collection of 40+ customizable WordPress 5.0 gutenberg content blocks for the new block editor.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin86,811 lines of code in 75 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 55 | 811 | 302 | 75,459 |
PHP | 5 | 244 | 201 | 2,935 |
JSON | 2 | 0 | 0 | 2,796 |
SVG | 4 | 1 | 0 | 2,733 |
CSS | 8 | 396 | 337 | 1,855 |
PO File | 1 | 496 | 1,673 | 1,033 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 88.50 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 188.00 |
Average method complexity | 11.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 99.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 7 | 20.00% |
▷ Public methods | 34 | 97.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.86% |
Functions | 25 | |
▷ Named functions | 15 | 60.00% |
▷ Anonymous functions | 10 | 40.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
58 PNG files occupy 1.22MB with 0.59MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/block-advantages.png | 16.19KB | 7.33KB | ▼ 54.74% |
assets/images/block-donations.png | 11.98KB | 6.33KB | ▼ 47.11% |
assets/images/block-image.png | 4.79KB | 2.62KB | ▼ 45.21% |
assets/images/block-social-share.png | 44.28KB | 27.08KB | ▼ 38.85% |
assets/images/block-countup.png | 10.99KB | 4.96KB | ▼ 54.88% |