Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.73ms] Passed 4 tests
An overview of server-side resources used by Block Collection for You – WP Block Pack
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 36.13 ▼2.21 |
Dashboard /wp-admin | 3.33 ▼0.01 | 45.20 ▼11.90 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 46.92 ▼2.74 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 89.35 ▼14.05 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 32.98 ▼0.56 |
WP Block Pack /wp-admin/options-general.php?page=wp-block-pack | 3.22 | 31.76 |
Server storage [IO: ▲0.87MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 62 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Block Collection for You – WP Block Pack: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,870 ▲124 | 13.77 ▼0.84 | 5.17 ▲3.58 | 37.31 ▼5.72 |
Dashboard /wp-admin | 2,213 ▲25 | 4.86 ▼0.03 | 108.29 ▲3.78 | 43.47 ▲2.89 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 1.97 ▼0.07 | 39.50 ▲1.37 | 34.19 ▲2.93 |
Add New Post /wp-admin/post-new.php | 6,200 ▲4,686 | 19.06 ▲1.57 | 870.95 ▲180.89 | 37.02 ▼17.36 |
Media Library /wp-admin/upload.php | 1,395 ▲16 | 4.25 ▲0.01 | 96.95 ▼4.60 | 42.29 ▼5.67 |
WP Block Pack /wp-admin/options-general.php?page=wp-block-pack | 1,651 | 1.73 | 25.53 | 47.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 13 tag instead of maximum 10
wp-block-pack/wp-block-pack.php Passed 13 tests
The main PHP file in "Block Collection for You – WP Block Pack" ver. 1.1.6 adds more information about the plugin and also serves as the entry point for this plugin
96 characters long description:
A pack of clean, useful and, customizable blocks for the new WordPress block editor (Gutenberg).
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected12,729 lines of code in 49 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 19 | 550 | 164 | 7,620 |
CSS | 19 | 149 | 60 | 3,822 |
PHP | 10 | 269 | 339 | 1,250 |
SVG | 1 | 0 | 0 | 37 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 106)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 26.62 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 125.00 |
Average method complexity | 5.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 106.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 6 | 75.00% |
Methods | 44 | |
▷ Static methods | 6 | 13.64% |
▷ Public methods | 44 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icons/wpblockicons/favicon.png | 0.16KB | 0.12KB | ▼ 24.40% |
assets/icons/wpblockicons/favicon-pro.png | 0.13KB | 0.11KB | ▼ 14.81% |