Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/embed-power-bi/includes/class-power-bi-schedule-resources.php+37
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.60MB] [CPU: ▼49.22ms] Passed 4 tests
This is a short check of server-side resources used by Power BI Embedded for WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.39 ▼1.08 | 6.23 ▼33.07 |
Dashboard /wp-admin | 2.41 ▼0.90 | 9.07 ▼39.80 |
Posts /wp-admin/edit.php | 2.41 ▼0.95 | 11.95 ▼32.47 |
Add New Post /wp-admin/post-new.php | 2.41 ▼3.48 | 8.32 ▼91.54 |
Media Library /wp-admin/upload.php | 2.41 ▼0.83 | 10.50 ▼23.46 |
Settings /wp-admin/edit.php?post_type=powerbi&page=powerbi | 2.41 | 9.65 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=powerbi | 2.41 | 9.26 |
All Power BI Items /wp-admin/edit.php?post_type=powerbi | 2.41 | 7.64 |
Add New /wp-admin/post-new.php?post_type=powerbi | 2.41 | 8.55 |
Server storage [IO: ▲4.57MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 427 new files
Database: no new tables, 8 new options
New WordPress options |
---|
power_bi_credentials |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
category_children |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Power BI Embedded for WordPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,947 ▲176 | 14.11 ▼0.26 | 11.19 ▲9.36 | 36.82 ▼1.73 |
Dashboard /wp-admin | 2,255 ▲63 | 4.94 ▼0.02 | 106.47 ▲1.61 | 40.97 ▼2.70 |
Posts /wp-admin/edit.php | 2,135 ▲46 | 2.06 ▲0.05 | 37.17 ▲3.85 | 33.75 ▼0.94 |
Add New Post /wp-admin/post-new.php | 1,560 ▲37 | 23.68 ▲0.66 | 675.85 ▼38.53 | 56.62 ▼4.20 |
Media Library /wp-admin/upload.php | 1,434 ▲46 | 4.31 ▲0.07 | 94.11 ▼0.69 | 40.94 ▼2.06 |
Settings /wp-admin/edit.php?post_type=powerbi&page=powerbi | 3,835 | 2.10 | 27.02 | 29.16 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=powerbi | 1,491 | 2.22 | 29.91 | 32.36 |
All Power BI Items /wp-admin/edit.php?post_type=powerbi | 1,162 | 2.00 | 32.96 | 30.17 |
Add New /wp-admin/post-new.php?post_type=powerbi | 4,169 | 4.94 | 96.80 | 41.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/embed-power-bi/includes/class-power-bi-schedule-resources.php+37
Trying to access array offset on value of type bool
- The uninstall procedure has failed, leaving 8 options in the database
- widget_theysaidso_widget
- db_upgraded
- category_children
- can_compress_scripts
- power_bi_credentials
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 141 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=powerbi
- > Notice in wp-content/plugins/embed-power-bi/includes/class-power-bi-oauth.php+152
Trying to access array offset on value of type bool
- > GET request to /wp-admin/edit.php?post_type=powerbi&page=powerbi
- > Notice in wp-content/plugins/embed-power-bi/includes/class-power-bi-schedule-resources.php+223
Undefined index: properties
- > GET request to /wp-admin/edit.php?post_type=powerbi&page=powerbi
- > Notice in wp-content/plugins/embed-power-bi/includes/class-power-bi-schedule-resources.php+223
Trying to access array offset on value of type null
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/embed-power-bi/lib/cmb2/apigen/hook-docs.php
- 49× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Select' not found in wp-content/plugins/embed-power-bi/lib/cmb2/includes/types/CMB2_Type_Select_Timezone.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/embed-power-bi/lib/cmb2/includes/CMB2_Field.php:17
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/embed-power-bi/lib/cmb2/includes/types/CMB2_Type_Multi_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text_Date' not found in wp-content/plugins/embed-power-bi/lib/cmb2/includes/types/CMB2_Type_Text_Time.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/embed-power-bi/lib/cmb2/includes/types/CMB2_Type_Text_Date.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/embed-power-bi/lib/cmb2/includes/CMB2_hookup.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/embed-power-bi/includes/class-power-bi-schedule-resources.php:36
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/embed-power-bi/lib/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp_Timezone.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/embed-power-bi/lib/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/embed-power-bi/lib/cmb2/includes/types/CMB2_Type_Radio.php:13
- > PHP Fatal error
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)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: powerbi-embedded, powerbi, wordpress-plugin, wordpress
embed-power-bi/power-bi.php 77% from 13 tests
The main file in "Power BI Embedded for WordPress" v. 1.1.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and 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
- Domain Path: The domain path is invalid: folder "/languages/" does not exist
- Main file name: It is recommended to name the main PHP file as the plugin slug ("embed-power-bi.php" instead of "power-bi.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected65,300 lines of code in 246 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
JavaScript | 16 | 557 | 2,246 | 11,747 |
PHP | 67 | 2,211 | 6,489 | 9,096 |
CSS | 14 | 1,271 | 1,164 | 5,098 |
JSON | 2 | 0 | 0 | 4,244 |
Sass | 16 | 300 | 25 | 1,379 |
Markdown | 8 | 318 | 0 | 902 |
TypeScript | 1 | 0 | 1,195 | 470 |
YAML | 1 | 9 | 51 | 33 |
XML | 1 | 4 | 2 | 8 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 19.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 183.00 |
Average method complexity | 3.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 74 | |
▷ Abstract classes | 8 | 10.81% |
▷ Concrete classes | 66 | 89.19% |
▷ Final classes | 0 | 0.00% |
Methods | 574 | |
▷ Static methods | 96 | 16.72% |
▷ Public methods | 465 | 81.01% |
▷ Protected methods | 92 | 16.03% |
▷ Private methods | 17 | 2.96% |
Functions | 64 | |
▷ Named functions | 63 | 98.44% |
▷ Anonymous functions | 1 | 1.56% |
Constants | 16 | |
▷ Global constants | 8 | 50.00% |
▷ Class constants | 8 | 50.00% |
▷ Public constants | 8 | 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
22 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
lib/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
lib/cmb2/apigen/theme-bootstrap/src/resources/collapsed.png | 0.24KB | 0.14KB | ▼ 41.77% |
lib/cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
lib/cmb2/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |