Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.08MB] [CPU: ▲1.74ms] Passed 4 tests
This is a short check of server-side resources used by GenerateBlocks
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.58 ▲1.12 | 47.29 ▲6.94 |
Dashboard /wp-admin | 4.38 ▲1.07 | 48.98 ▼2.48 |
Posts /wp-admin/edit.php | 4.43 ▲1.07 | 59.73 ▲17.15 |
Add New Post /wp-admin/post-new.php | 7.03 ▲1.14 | 89.90 ▼7.47 |
Media Library /wp-admin/upload.php | 4.30 ▲1.07 | 44.36 ▲9.95 |
Settings /wp-admin/admin.php?page=generateblocks-settings | 4.22 | 36.59 |
Dashboard /wp-admin/admin.php?page=generateblocks | 4.20 | 37.04 |
Server storage [IO: ▲1.92MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 395 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
generateblocks_dynamic_css_time |
widget_recent-posts |
db_upgraded |
generateblocks_version |
generateblocks_dynamic_css_posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for GenerateBlocks
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,854 ▲108 | 13.56 ▼0.73 | 5.03 ▲3.35 | 43.52 ▼2.53 |
Dashboard /wp-admin | 2,232 ▲44 | 5.84 ▲0.97 | 98.83 ▼15.17 | 40.54 ▼5.70 |
Posts /wp-admin/edit.php | 2,118 ▲29 | 2.04 ▲0.04 | 40.20 ▲1.12 | 38.24 ▲4.19 |
Add New Post /wp-admin/post-new.php | 6,209 ▲4,674 | 20.08 ▼3.31 | 966.42 ▲346.96 | 55.89 ▲2.94 |
Media Library /wp-admin/upload.php | 1,414 ▲29 | 4.19 ▼0.06 | 99.86 ▼1.19 | 42.77 ▼1.09 |
Settings /wp-admin/admin.php?page=generateblocks-settings | 1,013 | 7.29 | 170.43 | 41.54 |
Dashboard /wp-admin/admin.php?page=generateblocks | 1,069 | 2.02 | 29.48 | 40.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 9 options in the database
- can_compress_scripts
- widget_recent-comments
- generateblocks_version
- widget_recent-posts
- db_upgraded
- generateblocks_dynamic_css_time
- widget_theysaidso_widget
- theysaidso_admin_options
- generateblocks_dynamic_css_posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
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
These attributes need your attention:
- Tags: You are using too many tags: 12 tag instead of maximum 10
generateblocks/plugin.php 92% from 13 tests
The main PHP script in "GenerateBlocks" version 1.8.2 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("generateblocks.php" instead of "plugin.php")
Code Analysis 97% from 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
Everything looks great! No dangerous files found in this plugin37,041 lines of code in 384 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 322 | 2,502 | 983 | 19,911 |
JSON | 3 | 0 | 0 | 9,000 |
PHP | 24 | 1,403 | 1,916 | 6,140 |
Sass | 28 | 352 | 5 | 1,739 |
CSS | 4 | 34 | 0 | 216 |
SVG | 3 | 0 | 0 | 35 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Method cyclomatic complexity should be reduced to less than 100 (currently 138)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 50.24 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 7.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 138.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 124 | |
▷ Static methods | 73 | 58.87% |
▷ Public methods | 122 | 98.39% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.61% |
Functions | 79 | |
▷ Named functions | 69 | 87.34% |
▷ Anonymous functions | 10 | 12.66% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 compressed PNG files occupy 0.08MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/square-image-placeholder.png | 0.13KB | 0.13KB | 0.00% |
assets/images/generatepress-sites.png | 77.45KB | 77.62KB | 0.00% |
assets/images/image-placeholder.png | 0.12KB | 0.13KB | 0.00% |