Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲1.49MB] [CPU: ▲5.33ms] Passed 4 tests
Server-side resources used by Flexblocks
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.89 ▲1.43 | 43.92 ▲2.91 |
Dashboard /wp-admin | 4.79 ▲1.49 | 54.66 ▲6.36 |
Posts /wp-admin/edit.php | 4.84 ▲1.48 | 50.46 ▲7.18 |
Add New Post /wp-admin/post-new.php | 7.87 ▲1.99 | 94.50 ▲4.85 |
Media Library /wp-admin/upload.php | 4.77 ▲1.54 | 49.00 ▲12.35 |
All Products /wp-admin/edit.php?post_type=cabezi_product | 4.71 | 44.88 |
Pattern Category /wp-admin/edit-tags.php?taxonomy=cabezi-cpb-category&post_type=cabezi-cpb | 4.81 | 40.75 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=cabezi_product | 4.70 | 39.59 |
Add New /wp-admin/post-new.php?post_type=cabezi_product | 7.94 | 94.59 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=cabezi_product | 4.71 | 46.69 |
Flexblocks Pattern Archive /wp-admin/edit.php?post_type=cabezi-cpb | 4.70 | 38.92 |
Server storage [IO: ▲17.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 494 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
category_children |
acf_version |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Flexblocks: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,886 ▲140 | 13.25 ▼1.14 | 5.35 ▲3.70 | 43.78 ▲3.54 |
Dashboard /wp-admin | 2,274 ▲89 | 5.80 ▼0.05 | 98.43 ▼2.23 | 40.14 ▼1.29 |
Posts /wp-admin/edit.php | 2,139 ▲50 | 2.03 ▲0.02 | 35.18 ▼2.05 | 32.46 ▲0.14 |
Add New Post /wp-admin/post-new.php | 7,043 ▲5,524 | 29.28 ▲6.30 | 1,076.43 ▲396.41 | 48.43 ▼6.88 |
Media Library /wp-admin/upload.php | 2,009 ▲621 | 8.39 ▲4.12 | 227.28 ▲123.14 | 50.00 ▲5.65 |
All Products /wp-admin/edit.php?post_type=cabezi_product | 1,173 | 1.95 | 31.55 | 27.70 |
Pattern Category /wp-admin/edit-tags.php?taxonomy=cabezi-cpb-category&post_type=cabezi-cpb | 1,396 | 3.00 | 40.65 | 26.98 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=cabezi_product | 1,441 | 2.97 | 43.13 | 29.96 |
Add New /wp-admin/post-new.php?post_type=cabezi_product | 7,481 | 26.76 | 1,036.38 | 85.01 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=cabezi_product | 1,577 | 3.35 | 39.45 | 31.38 |
Flexblocks Pattern Archive /wp-admin/edit.php?post_type=cabezi-cpb | 1,147 | 1.93 | 30.09 | 30.76 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 8 options
- category_children
- can_compress_scripts
- theysaidso_admin_options
- acf_version
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- 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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 95× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function acf_register_store() in wp-content/plugins/flexblocks/inc/acf/includes/local-fields.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/flexblocks/inc/acf/includes/admin/views/html-admin-form-top.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/flexblocks/inc/acf/includes/admin/views/html-admin-tools.php:19
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/flexblocks/inc/acf/includes/fields/class-acf-field-text.php:5
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/flexblocks/inc/acf/includes/fields/class-acf-field-message.php:5
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/flexblocks/inc/acf/includes/fields/class-acf-field-select.php:5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/flexblocks/inc/acf/includes/admin/views/html-location-rule.php on line 4
- > PHP Notice
Undefined variable: active in wp-content/plugins/flexblocks/inc/acf/includes/admin/views/html-admin-tools.php on line 16
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/flexblocks/inc/acf/includes/fields/class-acf-field-wysiwyg.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function acf_add_deprecated_filter() in wp-content/plugins/flexblocks/inc/acf/includes/deprecated.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: page builder, block-editor, block library, flexbox, gutenberg blocks...
flexblocks/cabezi.php 77% from 13 tests
The main PHP script in "Flexblocks" version 1.2.3 is automatically included on every request by WordPress
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: The description should be shorter than 140 characters (currently 141 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("flexblocks.php" instead of "cabezi.php")
Code Analysis Passed 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
No dangerous file extensions were detected197,131 lines of code in 418 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 77 | 60,217 | 108,580 | 108,358 |
JavaScript | 61 | 6,827 | 10,259 | 52,341 |
PHP | 173 | 10,363 | 21,627 | 24,873 |
CSS | 22 | 705 | 1,590 | 11,289 |
SVG | 77 | 0 | 0 | 150 |
JSON | 8 | 0 | 0 | 120 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 18.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 145.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 115 | |
▷ Abstract classes | 2 | 1.74% |
▷ Concrete classes | 113 | 98.26% |
▷ Final classes | 0 | 0.00% |
Methods | 941 | |
▷ Static methods | 1 | 0.11% |
▷ Public methods | 921 | 97.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 20 | 2.13% |
Functions | 529 | |
▷ Named functions | 520 | 98.30% |
▷ Anonymous functions | 9 | 1.70% |
Constants | 16 | |
▷ Global constants | 16 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/acf/assets/inc/datepicker/images/ui-icons_DDDDDD_256x240.png | 3.68KB | 4.17KB | 0.00% |
inc/acf/assets/images/acf-logo.png | 3.40KB | 3.39KB | 0.23% |
inc/acf/assets/inc/select2/3/select2.png | 0.51KB | 0.99KB | 0.00% |
inc/acf/assets/inc/datepicker/images/ui-icons_ffffff_256x240.png | 3.68KB | 4.17KB | 0.00% |
inc/acf/assets/inc/datepicker/images/ui-icons_444444_256x240.png | 3.68KB | 4.17KB | 0.00% |