Benchmarks
Plugin footprint 65% 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 gracefully, with no errors
Server metrics [RAM: ▲2.85MB] [CPU: ▲24.38ms] Passed 4 tests
This is a short check of server-side resources used by All Bootstrap Blocks
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.01 ▲2.55 | 56.01 ▲20.05 |
Dashboard /wp-admin | 6.26 ▲2.92 | 76.40 ▲18.83 |
Posts /wp-admin/edit.php | 6.26 ▲2.91 | 85.83 ▲40.21 |
Add New Post /wp-admin/post-new.php | 9.01 ▲3.13 | 116.64 ▲20.45 |
Media Library /wp-admin/upload.php | 6.26 ▲3.03 | 69.77 ▲38.18 |
Import / Export /wp-admin/admin.php?page=areoi-import-export | 6.26 | 64.21 |
Reset Settings /wp-admin/admin.php?page=areoi-reset_settings | 6.26 | 61.31 |
Dashboard /wp-admin/admin.php?page=areoi-dashboard | 6.47 | 70.03 |
Components /wp-admin/admin.php?page=areoi-components | 6.47 | 80.18 |
Forms /wp-admin/admin.php?page=areoi-forms | 6.47 | 75.82 |
Content /wp-admin/admin.php?page=areoi-content | 6.47 | 78.59 |
Customize /wp-admin/admin.php?page=areoi-customize | 6.47 | 69.49 |
Layout /wp-admin/admin.php?page=areoi-layout | 6.47 | 71.95 |
Credits /wp-admin/admin.php?page=areoi-credits | 6.26 | 63.49 |
Server storage [IO: ▲71.94MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Please try to fix the following items
- Try to limit filesystem usage to 25MB (currently using 71.94MB)
Filesystem: 994 new files
Database: no new tables, 11 new options
New WordPress options |
---|
areoi-version |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
areoi-theme-json-updated |
areoi-dashboard-global-bootstrap-js |
areoi-bootstrap-version |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for All Bootstrap Blocks
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,138 ▲377 | 15.60 ▲1.04 | 9.10 ▲7.53 | 50.34 ▲10.98 |
Dashboard /wp-admin | 2,429 ▲252 | 6.68 ▲1.02 | 126.43 ▲36.66 | 56.68 ▲16.18 |
Posts /wp-admin/edit.php | 2,361 ▲258 | 3.83 ▲1.88 | 63.17 ▲27.78 | 50.00 ▲17.06 |
Add New Post /wp-admin/post-new.php | 6,526 ▲4,998 | 26.83 ▲3.72 | 995.00 ▲325.56 | 66.51 ▲7.80 |
Media Library /wp-admin/upload.php | 1,504 ▲101 | 4.63 ▲0.38 | 84.58 ▼25.89 | 54.83 ▲9.01 |
Import / Export /wp-admin/admin.php?page=areoi-import-export | 1,119 | 3.57 | 59.90 | 38.10 |
Reset Settings /wp-admin/admin.php?page=areoi-reset_settings | 1,085 | 3.68 | 58.90 | 41.02 |
Dashboard /wp-admin/admin.php?page=areoi-dashboard | 2,280 | 4.04 | 78.17 | 75.17 |
Components /wp-admin/admin.php?page=areoi-components | 5,667 | 6.28 | 215.99 | 89.92 |
Forms /wp-admin/admin.php?page=areoi-forms | 3,950 | 4.86 | 121.37 | 101.32 |
Content /wp-admin/admin.php?page=areoi-content | 4,180 | 5.40 | 142.75 | 99.16 |
Customize /wp-admin/admin.php?page=areoi-customize | 2,547 | 5.15 | 104.13 | 78.67 |
Layout /wp-admin/admin.php?page=areoi-layout | 2,494 | 4.58 | 84.15 | 79.70 |
Credits /wp-admin/admin.php?page=areoi-credits | 1,255 | 3.70 | 82.55 | 44.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/all-bootstrap-blocks/uninstall.php+7
Constant AREOI__VERSION already defined
- This plugin does not fully uninstall, leaving 8 options in the database
- db_upgraded
- areoi-version
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- areoi-theme-json-updated
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 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
Please take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/all-bootstrap-blocks/views/partials/mailchimp.php
- > /wp-content/plugins/all-bootstrap-blocks/lightspeed/patterns/grid.php
- 562× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
include(): Failed opening 'AREOI__PLUGIN_LIGHTSPEED_DIRpartials/pattern.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/all-bootstrap-blocks/lightspeed/patterns/half-circle-outline.php on line 9
- > PHP Warning
include(): Failed opening 'AREOI__PLUGIN_LIGHTSPEED_DIRpartials/pattern.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/all-bootstrap-blocks/lightspeed/patterns/square.php on line 9
- > PHP Warning
Use of undefined constant AREOI__PLUGIN_LIGHTSPEED_DIR - assumed 'AREOI__PLUGIN_LIGHTSPEED_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/all-bootstrap-blocks/lightspeed/patterns/triangle-fill-and-outline.php on line 20
- > PHP Warning
Use of undefined constant AREOI__PLUGIN_LIGHTSPEED_DIR - assumed 'AREOI__PLUGIN_LIGHTSPEED_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/all-bootstrap-blocks/lightspeed/patterns/shapey-fill-and-outline.php on line 14
- > PHP Warning
include(AREOI__PLUGIN_LIGHTSPEED_DIRpartials/pattern.php): failed to open stream: No such file or directory in wp-content/plugins/all-bootstrap-blocks/lightspeed/patterns/circle-fill-and-outline.php on line 11
- > PHP Warning
Use of undefined constant AREOI__PLUGIN_LIGHTSPEED_DIR - assumed 'AREOI__PLUGIN_LIGHTSPEED_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/all-bootstrap-blocks/lightspeed/patterns/speech-fill-and-outline.php on line 25
- > PHP Warning
include(AREOI__PLUGIN_LIGHTSPEED_DIRpartials/pattern.php): failed to open stream: No such file or directory in wp-content/plugins/all-bootstrap-blocks/lightspeed/patterns/3d-square-fill-and-outline.php on line 10
- > PHP Notice
Undefined variable: pattern_color in wp-content/plugins/all-bootstrap-blocks/lightspeed/patterns/speech-fill-and-outline.php on line 5
- > PHP Warning
include(AREOI__PLUGIN_LIGHTSPEED_DIRpartials/pattern.php): failed to open stream: No such file or directory in wp-content/plugins/all-bootstrap-blocks/lightspeed/patterns/shapey.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function lightspeed_get_posts() in wp-content/plugins/all-bootstrap-blocks/lightspeed/blocks/posts/templates/3-column-alt.php:2
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Requires php: The plugin version is formatted incorrectly
- Requires at least: The plugin version is formatted incorrectly
- Screenshots: Please add descriptions for these screenshots #6, #8, #9 in all-bootstrap-blocks/assets to your readme.txt
all-bootstrap-blocks/areoi.php 85% from 13 tests
The main PHP script in "All Bootstrap Blocks" version 1.3.11 is automatically included on every request by WordPress
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 151 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("all-bootstrap-blocks.php" instead of "areoi.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin123,559 lines of code in 791 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 291 | 5,283 | 5,444 | 32,813 |
JSON | 68 | 173 | 0 | 31,581 |
JavaScript | 161 | 5,209 | 4,528 | 28,051 |
Sass | 174 | 2,907 | 2,431 | 23,528 |
CSS | 53 | 63 | 74 | 5,940 |
SVG | 34 | 0 | 33 | 1,460 |
HTML | 6 | 7 | 0 | 92 |
Markdown | 2 | 28 | 0 | 63 |
XML | 2 | 9 | 5 | 31 |
PHP code 0% from 2 tests
An overview of cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 1,431)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 199)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 53.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,431.00 |
Average method complexity | 5.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 199.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 51 | |
▷ Abstract classes | 2 | 3.92% |
▷ Concrete classes | 49 | 96.08% |
▷ Final classes | 3 | 6.12% |
Methods | 576 | |
▷ Static methods | 94 | 16.32% |
▷ Public methods | 224 | 38.89% |
▷ Protected methods | 305 | 52.95% |
▷ Private methods | 47 | 8.16% |
Functions | 228 | |
▷ Named functions | 177 | 77.63% |
▷ Anonymous functions | 51 | 22.37% |
Constants | 89 | |
▷ Global constants | 17 | 19.10% |
▷ Class constants | 72 | 80.90% |
▷ Public constants | 72 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
50 PNG files occupy 2.44MB with 1.73MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
blocks/alert/cover.png | 4.34KB | 1.83KB | ▼ 57.98% |
blocks/collapse/cover.png | 7.84KB | 2.99KB | ▼ 61.90% |
blocks/button/cover.png | 5.44KB | 2.68KB | ▼ 50.78% |
blocks/spinner/cover.png | 18.45KB | 0.58KB | ▼ 96.84% |
blocks/offcanvas/cover.png | 42.00KB | 5.22KB | ▼ 87.58% |