Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲1.29MB] [CPU: ▲5.21ms] Passed 4 tests
An overview of server-side resources used by B Blocks - The ultimate block collection
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.83 ▲1.37 | 44.11 ▲2.59 |
Dashboard /wp-admin | 4.57 ▲1.27 | 62.85 ▲4.04 |
Posts /wp-admin/edit.php | 4.63 ▲1.27 | 59.06 ▲8.31 |
Add New Post /wp-admin/post-new.php | 7.39 ▲1.50 | 106.38 ▲17.38 |
Media Library /wp-admin/upload.php | 4.50 ▲1.27 | 42.37 ▲5.89 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 4.86 | 39.38 |
B Blocks /wp-admin/admin.php?page=b-blocks | 4.73 | 47.73 |
Server storage [IO: ▲8.35MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 374 new files
Database: no new tables, 9 new options
New WordPress options |
---|
fs_accounts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
fs_active_plugins |
widget_recent-comments |
fs_debug_mode |
Browser metrics Passed 4 tests
This is an overview of browser requirements for B Blocks - The ultimate block collection
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲72 | 14.23 ▼0.50 | 2.02 ▲0.40 | 31.30 ▼11.74 |
Dashboard /wp-admin | 2,212 ▲32 | 5.55 ▼0.03 | 88.51 ▼14.13 | 41.63 ▼2.21 |
Posts /wp-admin/edit.php | 2,121 ▲21 | 1.99 ▲0.03 | 39.76 ▲5.37 | 38.28 ▲2.46 |
Add New Post /wp-admin/post-new.php | 6,301 ▲4,773 | 22.90 ▼0.37 | 977.03 ▲254.55 | 36.59 ▼21.65 |
Media Library /wp-admin/upload.php | 1,417 ▲20 | 4.23 ▼0.07 | 97.46 ▼3.35 | 43.69 ▼3.06 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,085 | 1.69 | 26.75 | 31.34 |
B Blocks /wp-admin/admin.php?page=b-blocks | 976 | 1.65 | 27.84 | 58.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/b-blocks/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 9 options
- fs_accounts
- theysaidso_admin_options
- fs_debug_mode
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- fs_active_plugins
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)
Everything seems fine, however 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
Almost there! Just fix the following items
- 30× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'BBlocks' not found in wp-content/plugins/b-blocks/inc/video/block.php:2
- > PHP Fatal error
Uncaught Error: Class 'BBlocks' not found in wp-content/plugins/b-blocks/inc/lottie-player/block.php:2
- > PHP Fatal error
Uncaught Error: Class 'BBlocks' not found in wp-content/plugins/b-blocks/inc/section-heading/block.php:2
- > PHP Fatal error
Uncaught Error: Class 'BBlocks' not found in wp-content/plugins/b-blocks/inc/row/block.php:2
- > PHP Fatal error
Uncaught Error: Class 'BBlocks' not found in wp-content/plugins/b-blocks/inc/flip-boxes/block.php:2
- > PHP Fatal error
Uncaught Error: Class 'BBlocks' not found in wp-content/plugins/b-blocks/inc/mailto/block.php:2
- > PHP Fatal error
Uncaught Error: Class 'BBlocks' not found in wp-content/plugins/b-blocks/inc/3d-viewer/block.php:2
- > PHP Fatal error
Uncaught Error: Class 'BBlocks' not found in wp-content/plugins/b-blocks/inc/animated-text/block.php:2
- > PHP Fatal error
Uncaught Error: Class 'BBlocks' not found in wp-content/plugins/b-blocks/inc/pricing-table/block.php:2
- > PHP Fatal error
Uncaught Error: Class 'BBlocks' not found in wp-content/plugins/b-blocks/inc/feature-boxes/block.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Requires at least: The plugin version is formatted incorrectly
b-blocks/plugin.php 92% from 13 tests
This is the main PHP file of "B Blocks - The ultimate block collection" version 1.7.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("b-blocks.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
Good job! No executable or dangerous file extensions detected42,067 lines of code in 265 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 150 | 8,315 | 17,272 | 34,914 |
JSON | 31 | 0 | 0 | 4,693 |
PO File | 1 | 774 | 1,878 | 1,711 |
JavaScript | 34 | 84 | 1,010 | 693 |
CSS | 48 | 1 | 45 | 48 |
SVG | 1 | 0 | 0 | 8 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
The following items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 57.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 81 | |
▷ Abstract classes | 2 | 2.47% |
▷ Concrete classes | 79 | 97.53% |
▷ Final classes | 0 | 0.00% |
Methods | 1,386 | |
▷ Static methods | 209 | 15.08% |
▷ Public methods | 997 | 71.93% |
▷ Protected methods | 17 | 1.23% |
▷ Private methods | 372 | 26.84% |
Functions | 104 | |
▷ Named functions | 99 | 95.19% |
▷ Anonymous functions | 5 | 4.81% |
Constants | 150 | |
▷ Global constants | 103 | 68.67% |
▷ Class constants | 47 | 31.33% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/b-blocks.png | 9.65KB | 5.17KB | ▼ 46.45% |