Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.03MB] [CPU: ▼17.84ms] Passed 4 tests
This is a short check of server-side resources used by WP Breadcrumb
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.94 ▲0.48 | 31.91 ▼12.11 |
Dashboard /wp-admin | 3.56 ▲0.26 | 49.93 ▼2.98 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 53.27 ▲1.99 |
Add New Post /wp-admin/post-new.php | 5.06 ▼0.83 | 54.09 ▼57.08 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 37.97 ▲0.83 |
All Breadcrumbs /wp-admin/admin.php?page=sgbb_showAll | 3.77 | 47.11 |
More Plugins /wp-admin/admin.php?page=sgbb_sgPlugins | 3.77 | 38.05 |
Add Breadcrumb /wp-admin/admin.php?page=sgbb_add | 3.77 | 38.28 |
Server storage [IO: ▲1.11MB] [DB: ▲0.02MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 70 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_sgbb_theme |
wp_sgbb_position |
wp_sgbb_breadcrumb |
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by WP Breadcrumb
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,852 ▲91 | 14.28 ▼0.09 | 1.92 ▲0.23 | 46.71 ▲0.02 |
Dashboard /wp-admin | 2,228 ▲48 | 5.62 ▲0.00 | 94.94 ▲5.90 | 44.06 ▼0.95 |
Posts /wp-admin/edit.php | 2,133 ▲36 | 2.04 ▲0.07 | 42.58 ▲5.10 | 35.89 ▼1.49 |
Add New Post /wp-admin/post-new.php | 1,562 ▲36 | 24.65 ▲1.57 | 615.78 ▼53.86 | 76.65 ▲17.72 |
Media Library /wp-admin/upload.php | 1,430 ▲30 | 4.15 ▼0.10 | 95.51 ▼9.42 | 45.05 ▼0.93 |
All Breadcrumbs /wp-admin/admin.php?page=sgbb_showAll | 1,166 | 3.35 | 42.14 | 24.88 |
More Plugins /wp-admin/admin.php?page=sgbb_sgPlugins | 986 | 2.00 | 25.40 | 26.10 |
Add Breadcrumb /wp-admin/admin.php?page=sgbb_add | 2,570 | 3.98 | 69.72 | 168.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=sgbb_add
- > Warning in wp-content/plugins/breadcrumbs-builder/com/core/ActiveRecord.php+121
count(): Parameter must be an array or an object that implements Countable
- > GET request to /wp-admin/admin.php?page=sgbb_add
- > Notice in wp-content/plugins/breadcrumbs-builder/com/layouts/Breadcrumb/save.php+25
Undefined index: title
- > GET request to /wp-admin/admin.php?page=sgbb_add
- > Notice in wp-content/plugins/breadcrumbs-builder/com/layouts/Breadcrumb/save.php+28
Undefined index: id
- 11 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sgbb_add
- > Notice in wp-content/plugins/breadcrumbs-builder/com/layouts/Breadcrumb/save.php+343
Undefined index: addYouHere
- 25 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sgbb_add
- > Notice in wp-content/plugins/breadcrumbs-builder/com/layouts/Breadcrumb/save.php+386
Undefined index: addHomeText
- 11 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sgbb_add
- > Notice in wp-content/plugins/breadcrumbs-builder/com/layouts/Breadcrumb/save.php+364
Undefined index: addHomeAndText
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sgbb_add
- > Notice in wp-content/plugins/breadcrumbs-builder/com/layouts/Breadcrumb/save.php+263
Undefined index: theme
- > GET request to /wp-admin/admin.php?page=sgbb_add
- > Notice in wp-content/plugins/breadcrumbs-builder/com/layouts/Breadcrumb/save.php+340
Undefined index: addYouHereChecked
- > GET request to /wp-admin/admin.php?page=sgbb_add
- > Notice in wp-content/plugins/breadcrumbs-builder/com/layouts/Breadcrumb/save.php+351
Undefined index: showOnHomePage
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sgbb_add
- > Notice in wp-content/plugins/breadcrumbs-builder/com/layouts/Breadcrumb/save.php+422
Undefined index: addAlignement
- > GET request to /wp-admin/admin.php?page=sgbb_add
- > Notice in wp-content/plugins/breadcrumbs-builder/com/layouts/Breadcrumb/save.php+437
Undefined index: addMarginTop
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sgbb_add
- > Notice in wp-content/plugins/breadcrumbs-builder/com/layouts/Breadcrumb/save.php+442
Undefined index: addMarginTopType
- > GET request to /wp-admin/admin.php?page=sgbb_add
- > Notice in wp-content/plugins/breadcrumbs-builder/com/layouts/Breadcrumb/save.php+452
Undefined index: addMarginRight
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sgbb_add
- > Notice in wp-content/plugins/breadcrumbs-builder/com/layouts/Breadcrumb/save.php+457
Undefined index: addMarginRightType
- > GET request to /wp-admin/admin.php?page=sgbb_add
- > Notice in wp-content/plugins/breadcrumbs-builder/com/layouts/Breadcrumb/save.php+466
Undefined index: addMarginBottom
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sgbb_add
- > Notice in wp-content/plugins/breadcrumbs-builder/com/layouts/Breadcrumb/save.php+471
Undefined index: addMarginBottomType
- > GET request to /wp-admin/admin.php?page=sgbb_add
- > Notice in wp-content/plugins/breadcrumbs-builder/com/layouts/Breadcrumb/save.php+480
Undefined index: addMarginLeft
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sgbb_add
- > Notice in wp-content/plugins/breadcrumbs-builder/com/layouts/Breadcrumb/save.php+485
Undefined index: addMarginLeftType
- > GET request to /wp-admin/admin.php?page=sgbb_add
- > Notice in wp-content/plugins/breadcrumbs-builder/com/layouts/Breadcrumb/save.php+509
Undefined index: addPositionBefore
- > GET request to /wp-admin/admin.php?page=sgbb_add
- > Notice in wp-content/plugins/breadcrumbs-builder/com/layouts/Breadcrumb/save.php+517
Undefined index: addPositionAfter
- > GET request to /wp-admin/admin.php?page=sgbb_add
- > Notice in wp-content/plugins/breadcrumbs-builder/com/layouts/Breadcrumb/save.php+533
Undefined index: addPositionPrBottom
- > GET request to /wp-admin/admin.php?page=sgbb_add
- > Notice in wp-content/plugins/breadcrumbs-builder/com/layouts/Breadcrumb/save.php+541
Undefined index: addPositionSeBottom
- > GET request to /wp-admin/admin.php?page=sgbb_add
- > Notice in wp-content/plugins/breadcrumbs-builder/com/layouts/Breadcrumb/save.php+557
Undefined index: addPositionPrTop
- > GET request to /wp-admin/admin.php?page=sgbb_add
- > Notice in wp-content/plugins/breadcrumbs-builder/com/layouts/Breadcrumb/save.php+565
Undefined index: addPositionSeTop
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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/breadcrumbs-builder/com/layouts/Breadcrumb/morePlugins.php
- 14× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to a member function includeLib() on null in wp-content/plugins/breadcrumbs-builder/com/views/Theme.php:4
- > PHP Fatal error
Uncaught Error: Call to a member function includeModel() on null in wp-content/plugins/breadcrumbs-builder/com/models/Theme.php:4
- > PHP Fatal error
Uncaught Error: Call to a member function includeController() on null in wp-content/plugins/breadcrumbs-builder/com/controllers/Breadcrumb.php:3
- > PHP Fatal error
Uncaught Error: Call to a member function includeCore() on null in wp-content/plugins/breadcrumbs-builder/com/models/Model.php:4
- > PHP Fatal error
Uncaught Error: Call to a member function includeView() on null in wp-content/plugins/breadcrumbs-builder/com/views/Admin.php:4
- > PHP Fatal error
Uncaught Error: Call to a member function includeModel() on null in wp-content/plugins/breadcrumbs-builder/com/models/Breadcrumb.php:4
- > PHP Fatal error
Uncaught Error: Call to a member function includeLib() on null in wp-content/plugins/breadcrumbs-builder/com/lib/Breadcrumb.php:4
- > PHP Fatal error
Uncaught Error: Call to a member function includeController() on null in wp-content/plugins/breadcrumbs-builder/com/controllers/Setup.php:4
- > PHP Fatal error
Uncaught Error: Call to a member function includeStyle() on null in wp-content/plugins/breadcrumbs-builder/com/layouts/Breadcrumb/save.php:3
- > PHP Notice
Undefined variable: sgbb in wp-content/plugins/breadcrumbs-builder/com/layouts/Breadcrumb/morePlugins.php on line 72
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=sgbb_sgPlugins
- > Network (severe)
http://ps.w.org/review-builder/assets/icon-128x128.png?rev=1489430 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=sgbb_sgPlugins
- > Network (severe)
http://ps.w.org/social-media-builder/assets/icon-128x128.png?rev=1315835 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=sgbb_sgPlugins
- > Network (severe)
http://ps.w.org/popup-builder/assets/icon-128x128.png?rev=1489424 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=sgbb_add
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: this._addClass is not a function" "TypeError: this._addClass is not a function\n at $.\u003Ccomputed>.\u003Ccomputed>._create (/wp-includes/js/jquery/ui/slider.min.js?ver=1.13.2:9:687)\n at $.\u003Ccomputed>.\u003Ccomputed>._create (/wp-content/plugins/breadcrumbs-builder/assets/core/scripts/jquery-ui-dialog.js?ver=1.0.7:415:25)\n at $.\u003Ccomputed>.\u003Ccomputed>._createWidget (/wp-content/plugins/breadcrumbs-builder/assets/core/scripts/jquery-ui-dialog.js?ver=1.0.7:585:8)\n at new $.\u003Ccomputed>.\u003Ccomputed> (/wp-content/plugins/breadcrumbs-builder/assets/core/scripts/jquery-ui-dialog.js?ver=1.0.7:376:9)\n at HTMLDivElement.\u003Canonymous> (/wp-content/plugins/breadcrumbs-builder/assets/core/scripts/jquery-ui-dialog.js?ver=1.0.7:531:30)\n at Function.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:3129)\n at e.\u003Ccomputed>.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:1594)\n at $.fn.\u003Ccomputed> [as slider] (/wp-content/plugins/breadcrumbs-builder/assets/core/scripts/jquery-ui-dialog.js?ver=1.0.7:523:9)\n at x.\u003Ccomputed>.\u003Ccomputed>._initControls (/wp-admin/js/iris.min.js?ver=1.1.1:5:12139)\n at r.\u003Ccomputed> [as _initControls] (/wp-includes/js/jquery/ui/core.min.js?ver=1.13.2:116:967)" undefined
- > GET request to /wp-admin/admin.php?page=sgbb_add
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: this._addClass is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: breadcrumb, nav, breadcrumbs nav, navigation, breadcrumb trail...
breadcrumbs-builder/app.php 85% from 13 tests
The principal PHP file in "WP Breadcrumb" v. 1.0.7 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("breadcrumbs-builder.php" instead of "app.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
Good job! No executable or dangerous file extensions detected10,283 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 1,143 | 765 | 6,173 |
PHP | 22 | 502 | 712 | 3,187 |
CSS | 4 | 155 | 68 | 923 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 21.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 117.00 |
Average method complexity | 2.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 4 | 25.00% |
▷ Concrete classes | 12 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 165 | |
▷ Static methods | 16 | 9.70% |
▷ Public methods | 133 | 80.61% |
▷ Protected methods | 22 | 13.33% |
▷ Private methods | 10 | 6.06% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 27 | |
▷ Global constants | 23 | 85.19% |
▷ Class constants | 4 | 14.81% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
19 PNG files occupy 0.25MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/page/styles/images/ui-bg_diagonal-maze_40_000000_10x10.png | 0.13KB | 0.11KB | ▼ 14.39% |
assets/page/styles/images/ui-bg_fine-grain_10_f8f7f6_60x60.png | 3.08KB | 1.39KB | ▼ 54.84% |
assets/page/styles/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
assets/page/styles/images/ui-bg_fine-grain_65_654b24_60x60.png | 7.20KB | 2.25KB | ▼ 68.67% |
assets/page/styles/images/ui-icons_fbdb93_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |