Benchmarks
Plugin footprint 39% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- Install procedure had errors
- > Warning in wp-content/plugins/blox-page-builder/inc_php/framework/functions.class.php+1649
mkdir(): File exists
Server metrics [RAM: ▲5.98MB] [CPU: ▲35.96ms] 25% from 4 tests
This is a short check of server-side resources used by Blox Page Builder
Please take the time to fix the following items
- RAM: The total memory usage must be kept under 10MB (currently 12.09MB on /wp-admin/admin.php?page=bloxbuilder)
- CPU: Total CPU usage should be kept under 500.00ms (currently 2,502.66ms on /wp-admin/admin.php?page=bloxbuilder)
- Extra RAM: Extra memory usage should kept under 5MB (currently 5.98MB on /wp-admin/admin.php?page=bloxbuilder)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.79 ▲5.33 | 69.65 ▲32.15 |
Dashboard /wp-admin | 9.55 ▲6.24 | 83.84 ▲35.46 |
Posts /wp-admin/edit.php | 9.60 ▲6.24 | 91.99 ▲44.83 |
Add New Post /wp-admin/post-new.php | 12.06 ▲6.18 | 123.10 ▲34.16 |
Media Library /wp-admin/upload.php | 9.40 ▲6.18 | 78.55 ▲42.07 |
License /wp-admin/admin.php?page=bloxbuilder_license | 9.55 | 71.79 |
My Library /wp-admin/admin.php?page=bloxbuilder_library | 9.53 | 71.32 |
General Settings /wp-admin/admin.php?page=bloxbuilder_settings | 9.52 | 72.50 |
Layouts Settings /wp-admin/admin.php?page=bloxbuilder_layouts_settings | 9.49 | 73.04 |
My Layouts /wp-admin/admin.php?page=bloxbuilder_layouts_general | 9.63 | 80.28 |
My Addons /wp-admin/admin.php?page=bloxbuilder | 12.09 | 2,502.66 |
Server storage [IO: ▲13.29MB] [DB: ▲0.28MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 951 new files
Database: 2 new tables, 9 new options
New tables |
---|
wp_addonlibrary_categories |
wp_addonlibrary_addons |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
untecreator_state |
widget_blox-layout-widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
addon_library_catalog |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Blox Page Builder
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,905 ▲134 | 13.52 ▼1.06 | 4.42 ▲2.53 | 34.68 ▼8.64 |
Dashboard /wp-admin | 2,308 ▲117 | 5.08 ▼0.80 | 111.68 ▲13.08 | 86.23 ▲43.48 |
Posts /wp-admin/edit.php | 2,136 ▲47 | 2.01 ▲0.04 | 37.95 ▲0.12 | 35.06 ▼2.62 |
Add New Post /wp-admin/post-new.php | 1,712 ▲198 | 22.29 ▲4.66 | 702.73 ▼27.98 | 58.54 ▲3.02 |
Media Library /wp-admin/upload.php | 1,426 ▲38 | 4.12 ▼0.04 | 98.39 ▼15.26 | 67.03 ▲18.10 |
License /wp-admin/admin.php?page=bloxbuilder_license | 1,313 | 3.92 | 48.29 | 97.47 |
My Library /wp-admin/admin.php?page=bloxbuilder_library | 1,251 | 3.95 | 43.47 | 77.80 |
General Settings /wp-admin/admin.php?page=bloxbuilder_settings | 1,785 | 3.64 | 51.67 | 89.62 |
Layouts Settings /wp-admin/admin.php?page=bloxbuilder_layouts_settings | 1,382 | 4.00 | 47.03 | 85.28 |
My Layouts /wp-admin/admin.php?page=bloxbuilder_layouts_general | 1,787 | 4.10 | 62.67 | 34.58 |
My Addons /wp-admin/admin.php?page=bloxbuilder | 3,336 | 5.25 | 79.48 | 107.49 |
Uninstaller [IO: ▲0.07MB] [DB: ▲0.28MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_addonlibrary_categories
- wp_addonlibrary_addons
- This plugin does not fully uninstall, leaving 9 options in the database
- untecreator_state
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_blox-layout-widget
- addon_library_catalog
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 155× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/blox-page-builder/views/addons.php
- > /wp-content/plugins/blox-page-builder/views/objects/mappicker_view.class.php
- > /wp-content/plugins/blox-page-builder/inc_php/manager/unitecreator_manager_pages.class.php
- > /wp-content/plugins/blox-page-builder/inc_php/unitecreator_web_library.class.php
- > /wp-content/plugins/blox-page-builder/inc_php/framework/settings_output_wide.class.php
- > /wp-content/plugins/blox-page-builder/inc_php/unitecreator_actions.class.php
- > /wp-content/plugins/blox-page-builder/inc_php/framework/settings_output_sidebar.class.php
- > /wp-content/plugins/blox-page-builder/inc_php/manager/unitecreator_manager_inline.class.php
- > /wp-content/plugins/blox-page-builder/inc_php/framework/cssparser.class.php
- > /wp-content/plugins/blox-page-builder/inc_php/unitecreator_settingsview.class.php
- 181× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/blox-page-builder/vendor/twig/twig/src/Node/Expression/Binary/NotEqualBinary.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Twig_CompilerInterface' not found in wp-content/plugins/blox-page-builder/vendor/twig/twig/src/Compiler.php:22
- > PHP Fatal error
Uncaught Error: Class 'Twig_Test' not found in wp-content/plugins/blox-page-builder/vendor/twig/twig/lib/Twig/Test/Node.php:21
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/blox-page-builder/vendor/twig/twig/src/Node/WithNode.php:21
- > PHP Fatal error
Uncaught Error: Class 'Twig\odeVisitor\\AbstractNodeVisitor' not found in wp-content/plugins/blox-page-builder/vendor/twig/twig/src/NodeVisitor/SandboxNodeVisitor.php:33
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/blox-page-builder/vendor/twig/twig/src/Node/DoNode.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/blox-page-builder/provider/views/stand_alone_broken_error.php:59
- > PHP Fatal error
Uncaught Error: Class 'Twig\\TokenParser\\AbstractTokenParser' not found in wp-content/plugins/blox-page-builder/vendor/twig/twig/src/TokenParser/FromTokenParser.php:26
- > PHP Fatal error
Uncaught Error: Interface 'Twig\\RuntimeLoader\\RuntimeLoaderInterface' not found in wp-content/plugins/blox-page-builder/vendor/twig/twig/src/RuntimeLoader/FactoryRuntimeLoader.php:19
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/blox-page-builder/provider/provider_alt_loader.php on line 13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Plugin Name: Please specify the plugin name on the first line (
=== blox-page-builder ===
) - Tags: You are using too many tags: 12 tag instead of maximum 10
blox-page-builder/blox_builder.php 92% from 13 tests
The primary PHP file in "Blox Page Builder" version 1.0.65 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("blox-page-builder.php" instead of "blox_builder.php")
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 plugin145,217 lines of code in 722 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 74 | 23,506 | 13,654 | 60,547 |
PHP | 567 | 23,528 | 16,894 | 49,154 |
CSS | 38 | 3,479 | 479 | 20,459 |
SVG | 6 | 0 | 16 | 11,533 |
XML | 20 | 437 | 34 | 1,979 |
HTML | 9 | 115 | 1 | 725 |
Markdown | 3 | 145 | 0 | 645 |
JSON | 4 | 0 | 0 | 168 |
INI | 1 | 1 | 1 | 7 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 13.15 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 553.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 69.00 |
Code structure | ||
---|---|---|
Namespaces | 24 | |
Interfaces | 26 | |
Traits | 0 | |
Classes | 503 | |
▷ Abstract classes | 14 | 2.78% |
▷ Concrete classes | 489 | 97.22% |
▷ Final classes | 4 | 0.82% |
Methods | 3,523 | |
▷ Static methods | 509 | 14.45% |
▷ Public methods | 2,227 | 63.21% |
▷ Protected methods | 576 | 16.35% |
▷ Private methods | 720 | 20.44% |
Functions | 84 | |
▷ Named functions | 78 | 92.86% |
▷ Anonymous functions | 6 | 7.14% |
Constants | 507 | |
▷ Global constants | 69 | 13.61% |
▷ Class constants | 438 | 86.39% |
▷ Public constants | 438 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
148 PNG files occupy 0.20MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets_libraries/unitegallery/skins/default/tile_bullets_blue.png | 0.38KB | 0.27KB | ▼ 28.61% |
images/timeline.png | 0.25KB | 0.12KB | ▼ 54.02% |
assets_libraries/unitegallery/skins/default/tile_bullets_gray.png | 0.39KB | 0.27KB | ▼ 31.17% |
provider/assets/images/icon_default_addon.png | 2.38KB | 1.35KB | ▼ 43.40% |
provider/assets/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.21KB | 0.08KB | ▼ 58.96% |