Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.54MB] [CPU: ▲33.92ms] Passed 4 tests
This is a short check of server-side resources used by WP Business Intelligence Lite
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.95 ▲0.49 | 71.97 ▲32.58 |
Dashboard /wp-admin | 3.86 ▲0.56 | 80.41 ▲34.63 |
Posts /wp-admin/edit.php | 3.91 ▲0.55 | 87.38 ▲41.73 |
Add New Post /wp-admin/post-new.php | 6.48 ▲0.59 | 122.57 ▲26.73 |
Media Library /wp-admin/upload.php | 3.78 ▲0.55 | 80.52 ▲49.30 |
Variables /wp-admin/admin.php?page=variable | 3.82 | 74.80 |
Home /wp-admin/admin.php?page=wpbi-lite | 3.79 | 68.71 |
Connections /wp-admin/admin.php?page=database-connection | 4.45 | 77.73 |
Chartjs Line Chart /wp-admin/admin.php?page=chartjs-line-chart | 3.72 | 67.12 |
Charts /wp-admin/admin.php?page=chart | 3.91 | 67.26 |
Data Sources /wp-admin/admin.php?page=data-sources | 3.80 | 66.33 |
Bar Chart /wp-admin/admin.php?page=bar-chart | 3.72 | 62.04 |
WordPress Data /wp-admin/admin.php?page=wordpress-data-connection | 3.91 | 67.55 |
Queries /wp-admin/admin.php?page=query | 4.06 | 67.89 |
Grouped Bar Chart /wp-admin/admin.php?page=grouped-bar-chart | 3.72 | 65.03 |
Server storage [IO: ▲3.95MB] [DB: ▲0.02MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 1,088 new files
Database: 14 new tables, 7 new options
New tables |
---|
wp_wpbi_pie_charts |
wp_wpbi_wp_data_queries |
wp_wpbi_radar_charts |
wp_wpbi_wordpress_data_connections |
wp_wpbi_chartjs_doughnut_charts |
wp_wpbi_database_connections |
wp_wpbi_grouped_bar_charts |
wp_wpbi_chartjs_line_charts |
wp_wpbi_queries3 |
wp_wpbi_bar_charts |
... |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
recovery_mode_email_last_sent |
widget_recent-comments |
Browser metrics Passed 4 tests
WP Business Intelligence Lite: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,967 ▲210 | 13.90 ▼0.47 | 4.18 ▲2.19 | 35.42 ▼12.79 |
Dashboard /wp-admin | 2,346 ▲155 | 5.48 ▲0.65 | 98.92 ▼3.42 | 41.58 ▲2.89 |
Posts /wp-admin/edit.php | 2,232 ▲143 | 2.34 ▲0.33 | 42.88 ▲7.53 | 44.15 ▲9.03 |
Add New Post /wp-admin/post-new.php | 1,442 ▼91 | 21.05 ▼2.19 | 589.54 ▼74.99 | 49.06 ▼12.29 |
Media Library /wp-admin/upload.php | 1,531 ▲146 | 4.83 ▲0.69 | 96.92 ▼3.45 | 44.68 ▲1.29 |
Variables /wp-admin/admin.php?page=variable | 900 | 2.22 | 31.32 | 33.57 |
Home /wp-admin/admin.php?page=wpbi-lite | 897 | 2.19 | 26.25 | 30.43 |
Connections /wp-admin/admin.php?page=database-connection | 1,035 | 2.13 | 37.97 | 40.37 |
Chartjs Line Chart /wp-admin/admin.php?page=chartjs-line-chart | 789 | 1.71 | 9.07 | 27.40 |
Charts /wp-admin/admin.php?page=chart | 1,020 | 2.35 | 27.83 | 30.22 |
Data Sources /wp-admin/admin.php?page=data-sources | 945 | 2.23 | 29.29 | 30.62 |
Bar Chart /wp-admin/admin.php?page=bar-chart | 790 | 1.89 | 9.11 | 20.83 |
WordPress Data /wp-admin/admin.php?page=wordpress-data-connection | 1,044 | 2.22 | 25.39 | 30.94 |
Queries /wp-admin/admin.php?page=query | 1,036 | 2.20 | 25.65 | 28.33 |
Grouped Bar Chart /wp-admin/admin.php?page=grouped-bar-chart | 789 | 1.71 | 9.13 | 24.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure failed, leaving 14 tables in the database
- wp_wpbi_chartjs_doughnut_charts
- wp_wpbi_wordpress_data_connections
- wp_wpbi_database_connections
- wp_wpbi_grouped_bar_charts
- wp_wpbi_bar_charts
- wp_wpbi_wp_data_queries
- wp_wpbi_queries3
- wp_wpbi_chartjs_line_charts
- wp_wpbi_line_charts
- wp_wpbi_datatables
- ...
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- db_upgraded
- recovery_mode_email_last_sent
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wordpress-data-connection
- > User deprecated in wp-content/plugins/wp-business-intelligence-lite/vendor/doctrine/inflector/lib/Doctrine/Common/Inflector/Inflector.php+261
The "Doctrine\Common\Inflector\Inflector::pluralize" method is deprecated and will be dropped in doctrine/inflector 2.0. Please update to the new Inflector API.
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=grouped-bar-chart
- > Notice in wp-content/plugins/wp-business-intelligence-lite/Admin/Menu/AbstractChart.php+20
Undefined index: library
- > GET request to /wp-admin/admin.php?page=chartjs-line-chart
- > Warning in wp-content/plugins/wp-business-intelligence-lite/autoload.php+13
require(wp-content/plugins/wp-business-intelligence-lite/Admin/Url//ChartjsLineChart.php): failed to open stream: No such file or directory
- > GET request to /wp-admin/admin.php?page=chartjs-line-chart
- > Compile error in wp-content/plugins/wp-business-intelligence-lite/autoload.php+13
require(): Failed opening required 'wp-content/plugins/wp-business-intelligence-lite/Admin/Url//ChartjsLineChart.php' (include_path='.:/usr/share/php')
- > GET request to /wp-admin/admin.php?page=bar-chart
- > Warning in wp-content/plugins/wp-business-intelligence-lite/autoload.php+13
require(wp-content/plugins/wp-business-intelligence-lite/Admin/Url//BarChart.php): failed to open stream: No such file or directory
- > GET request to /wp-admin/admin.php?page=bar-chart
- > Compile error in wp-content/plugins/wp-business-intelligence-lite/autoload.php+13
require(): Failed opening required 'wp-content/plugins/wp-business-intelligence-lite/Admin/Url//BarChart.php' (include_path='.:/usr/share/php')
- > GET request to /wp-admin/admin.php?page=grouped-bar-chart
- > Warning in wp-content/plugins/wp-business-intelligence-lite/autoload.php+13
require(wp-content/plugins/wp-business-intelligence-lite/Admin/Url//GroupedBarChart.php): failed to open stream: No such file or directory
- > GET request to /wp-admin/admin.php?page=grouped-bar-chart
- > Compile error in wp-content/plugins/wp-business-intelligence-lite/autoload.php+13
require(): Failed opening required 'wp-content/plugins/wp-business-intelligence-lite/Admin/Url//GroupedBarChart.php' (include_path='.:/usr/share/php')
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 12× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/wp-business-intelligence-lite/templates/chart/chartjs/line-chart.php
- > /wp-content/plugins/wp-business-intelligence-lite/templates/chart/pie-chart.php
- > /wp-content/plugins/wp-business-intelligence-lite/templates/chart/chartjs/doughnut-chart.php
- > /wp-content/plugins/wp-business-intelligence-lite/templates/chart/chartjs/vertical-bar-chart.php
- > /wp-content/plugins/wp-business-intelligence-lite/templates/admin/partials/QuerySelector.php
- > /wp-content/plugins/wp-business-intelligence-lite/vendor/league/plates/example/templates/sidebar.php
- > /wp-content/plugins/wp-business-intelligence-lite/vendor/symfony/translation/Resources/bin/translation-status.php
- > /wp-content/plugins/wp-business-intelligence-lite/templates/chart/grouped-bar-chart.php
- > /wp-content/plugins/wp-business-intelligence-lite/templates/chart/line-chart.php
- > /wp-content/plugins/wp-business-intelligence-lite/templates/admin/partials/QueryInstructions.php
- 511× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Console\\Output\\OutputInterface' not found in wp-content/plugins/wp-business-intelligence-lite/vendor/symfony/console/Output/NullOutput.php:25
- > PHP Fatal error
Uncaught Error: Interface 'Phinx\\Config\\ConfigInterface' not found in wp-content/plugins/wp-business-intelligence-lite/vendor/robmorgan/phinx/src/Phinx/Config/Config.php:39
- > PHP Fatal error
Uncaught Error: Class 'Wpbi\\Database\\BaseMigration' not found in wp-content/plugins/wp-business-intelligence-lite/Database/migrations/20210830170141_create_wordpress_data_connection.php:3
- > PHP Fatal error
Uncaught Error: Class 'Phinx\\Console\\Command\\AbstractCommand' not found in wp-content/plugins/wp-business-intelligence-lite/vendor/robmorgan/phinx/src/Phinx/Console/Command/SeedCreate.php:40
- > PHP Notice
Undefined variable: options in wp-content/plugins/wp-business-intelligence-lite/templates/chart/pie-chart.php on line 24
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Config\\Exception\\LoaderLoadException' not found in wp-content/plugins/wp-business-intelligence-lite/vendor/symfony/config/Exception/FileLoaderImportCircularReferenceException.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface' not found in wp-content/plugins/wp-business-intelligence-lite/vendor/symfony/console/DependencyInjection/AddConsoleCommandPass.php:27
- > PHP Fatal error
Uncaught Error: Class 'Illuminate\\Database\\Schema\\Grammars\\Grammar' not found in wp-content/plugins/wp-business-intelligence-lite/vendor/illuminate/database/Schema/Grammars/PostgresGrammar.php:8
- > PHP Fatal error
Uncaught Error: Class 'Wpbi\\Database\\BaseMigration' not found in wp-content/plugins/wp-business-intelligence-lite/Database/Update/UpdateLineCharts.php:4
- > PHP Fatal error
Uncaught Error: Interface 'Doctrine\\Inflector\\WordInflector' not found in wp-content/plugins/wp-business-intelligence-lite/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/Transformation.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tags: You are using too many tags: 13 tag instead of maximum 10
wp-business-intelligence-lite/index.php 92% from 13 tests
"WP Business Intelligence Lite" version 3.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-business-intelligence-lite.php" instead of "index.php")
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
It is important to fix the following items
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/wp-business-intelligence-lite/vendor/robmorgan/phinx/bin/phinx.bat
- ☣ wp-content/plugins/wp-business-intelligence-lite/vendor/nesbot/carbon/bin/upgrade-carbon.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 932 | 15,884 | 42,139 | 65,886 |
Markdown | 63 | 1,594 | 0 | 4,774 |
JSON | 29 | 0 | 0 | 3,019 |
XSD | 3 | 92 | 48 | 2,803 |
JavaScript | 3 | 10 | 40 | 238 |
HTML | 5 | 11 | 2 | 120 |
XML | 4 | 6 | 0 | 84 |
reStructuredText | 1 | 74 | 78 | 74 |
YAML | 2 | 8 | 0 | 62 |
DOS Batch | 2 | 12 | 6 | 27 |
CSS | 2 | 2 | 0 | 22 |
TOML | 1 | 3 | 0 | 12 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Method cyclomatic complexity should be reduced to less than 100 (currently 158)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 11.03 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 293.00 |
Average method complexity | 2.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 158.00 |
Code structure | ||
---|---|---|
Namespaces | 157 | |
Interfaces | 140 | |
Traits | 12 | |
Classes | 580 | |
▷ Abstract classes | 39 | 6.72% |
▷ Concrete classes | 541 | 93.28% |
▷ Final classes | 34 | 6.28% |
Methods | 6,101 | |
▷ Static methods | 837 | 13.72% |
▷ Public methods | 4,821 | 79.02% |
▷ Protected methods | 920 | 15.08% |
▷ Private methods | 360 | 5.90% |
Functions | 369 | |
▷ Named functions | 140 | 37.94% |
▷ Anonymous functions | 229 | 62.06% |
Constants | 276 | |
▷ Global constants | 11 | 3.99% |
▷ Class constants | 265 | 96.01% |
▷ Public constants | 256 | 96.60% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/league/plates/doc/static/favicon/apple-touch-icon-precomposed.png | 5.40KB | 2.79KB | ▼ 48.42% |
vendor/league/plates/doc/static/images/logo.png | 2.25KB | 1.53KB | ▼ 32.22% |