Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.32MB] [CPU: ▲0.36ms] Passed 4 tests
An overview of server-side resources used by UberChart
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 36.53 ▼2.29 |
Dashboard /wp-admin | 3.73 ▲0.43 | 45.88 ▼0.61 |
Posts /wp-admin/edit.php | 3.78 ▲0.42 | 47.32 ▲3.86 |
Add New Post /wp-admin/post-new.php | 6.27 ▲0.39 | 90.94 ▲1.66 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 34.95 ▲2.68 |
Pro Version /wp-admin/admin.php?page=daextubch-pro-version | 3.56 | 36.52 |
Export to Pro /wp-admin/admin.php?page=daextubch-export_to_pro | 3.55 | 33.05 |
Charts /wp-admin/admin.php?page=daextubch-charts | 5.91 | 55.73 |
Maintenance /wp-admin/admin.php?page=daextubch-maintenance | 3.58 | 32.17 |
Options /wp-admin/admin.php?page=daextubch-options | 3.56 | 32.46 |
Help /wp-admin/admin.php?page=daextubch-help | 3.55 | 32.59 |
Server storage [IO: ▲4.76MB] [DB: ▲0.11MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 138 new files
Database: 2 new tables, 13 new options
New tables |
---|
wp_daextubch_chart |
wp_daextubch_data |
New WordPress options |
---|
daextubch_chartjs_adapter_date_fns_url |
daextubch_database_version |
daextubch_max_execution_time |
daextubch_assets_mode |
widget_recent-posts |
daextubch_memory_limit |
daextubch_verify_single_shortcode |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
A check of browser resources used by UberChart
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,933 ▲162 | 14.32 ▲0.02 | 13.13 ▲11.08 | 37.57 ▼9.53 |
Dashboard /wp-admin | 2,248 ▲57 | 4.86 ▼0.07 | 139.64 ▲33.40 | 42.10 ▼0.60 |
Posts /wp-admin/edit.php | 2,134 ▲45 | 1.99 ▲0.00 | 36.57 ▼0.03 | 33.45 ▼0.34 |
Add New Post /wp-admin/post-new.php | 6,241 ▲4,713 | 22.50 ▲4.27 | 849.29 ▲251.62 | 80.70 ▲21.13 |
Media Library /wp-admin/upload.php | 1,433 ▲45 | 4.16 ▼0.06 | 102.53 ▼4.31 | 43.86 ▼5.76 |
Pro Version /wp-admin/admin.php?page=daextubch-pro-version | 865 | 2.03 | 25.10 | 24.97 |
Export to Pro /wp-admin/admin.php?page=daextubch-export_to_pro | 819 | 2.03 | 25.41 | 25.30 |
Charts /wp-admin/admin.php?page=daextubch-charts | 11,986 | 6.54 | 406.62 | 73.87 |
Maintenance /wp-admin/admin.php?page=daextubch-maintenance | 997 | 2.66 | 55.43 | 28.16 |
Options /wp-admin/admin.php?page=daextubch-options | 1,042 | 2.62 | 39.55 | 30.90 |
Help /wp-admin/admin.php?page=daextubch-help | 841 | 2.05 | 24.06 | 26.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Please take a closer look at the following
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/daext-uberchart/admin/view/help.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/daext-uberchart/admin/view/pro_version.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/daext-uberchart/admin/view/export_to_pro.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/daext-uberchart/admin/view/maintenance.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/daext-uberchart/admin/view/options.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/daext-uberchart/admin/view/charts.php:3
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
daext-uberchart/init.php 92% from 13 tests
This is the main PHP file of "UberChart" version 1.03, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("daext-uberchart.php" instead of "init.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected68,452 lines of code in 118 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 80 | 6,546 | 5,426 | 53,926 |
PHP | 16 | 1,811 | 944 | 10,165 |
CSS | 18 | 827 | 254 | 4,333 |
Markdown | 3 | 12 | 0 | 27 |
XML | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 165)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 61.17 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 224.00 |
Average method complexity | 5.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 165.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 81 | |
▷ Static methods | 7 | 8.64% |
▷ Public methods | 72 | 88.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 11.11% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
16 PNG files occupy 0.16MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/img/update-hover.png | 15.48KB | 0.51KB | ▼ 96.73% |
admin/assets/img/clone-hover.png | 18.71KB | 0.12KB | ▼ 99.34% |
admin/assets/img/search-hover.png | 0.21KB | 0.21KB | 0.00% |
admin/assets/img/search.png | 0.21KB | 0.21KB | 0.00% |
admin/assets/img/clone.png | 18.71KB | 0.12KB | ▼ 99.34% |