Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.69MB] [CPU: ▼33.43ms] Passed 4 tests
A check of server-side resources used by Stockdio Historical Chart
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.25 | 39.29 ▼1.16 |
Dashboard /wp-admin | 3.27 ▼0.08 | 24.67 ▼40.07 |
Posts /wp-admin/edit.php | 3.27 ▼0.09 | 27.11 ▼21.93 |
Add New Post /wp-admin/post-new.php | 3.27 ▼2.62 | 28.71 ▼62.70 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 26.35 ▼9.00 |
Stockdio Historical Chart /wp-admin/options-general.php?page=stockdio-historical-chart-settings-config | 3.27 | 25.53 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_widget_stockdio_historical_chart |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Stockdio Historical Chart
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,884 ▲138 | 16.88 ▲2.23 | 2.06 ▲0.31 | 37.24 ▼7.94 |
Dashboard /wp-admin | 2,263 ▲82 | 7.61 ▲1.89 | 234.18 ▲134.02 | 43.96 ▼1.18 |
Posts /wp-admin/edit.php | 2,163 ▲66 | 7.26 ▲5.26 | 75.35 ▲36.28 | 33.96 ▼0.76 |
Add New Post /wp-admin/post-new.php | 6,388 ▲4,854 | 23.48 ▲5.32 | 757.57 ▲156.28 | 36.90 ▼34.42 |
Media Library /wp-admin/upload.php | 1,547 ▲144 | 8.99 ▲4.77 | 123.78 ▲26.18 | 41.89 ▼4.57 |
Stockdio Historical Chart /wp-admin/options-general.php?page=stockdio-historical-chart-settings-config | 932 | 6.86 | 68.87 | 26.12 |
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
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/stockdio-historical-chart/stockdioplugin.php+114
Trying to access array offset on value of type bool
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_widget_stockdio_historical_chart
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=stockdio-historical-chart-settings-config
- > Notice in wp-content/plugins/stockdio-historical-chart/stockdioplugin.php+38
Trying to access array offset on value of type bool
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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/stockdio-historical-chart/activate_plugin_settings.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/stockdio-historical-chart/stockdio_historical_chart_widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/stockdio-historical-chart/activate_plugin_admin.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/stockdio-historical-chart/stockdioplugin.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
stockdio-historical-chart/stockdioplugin.php 92% from 13 tests
The main PHP file in "Stockdio Historical Chart" ver. 2.8.11 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("stockdio-historical-chart.php" instead of "stockdioplugin.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
Success! There were no dangerous files found in this plugin4,467 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 197 | 51 | 1,870 |
PHP | 5 | 235 | 96 | 1,478 |
CSS | 5 | 90 | 28 | 1,109 |
SVG | 1 | 1 | 0 | 10 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
These items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 153)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.66 |
Average class complexity | 117.50 |
▷ Minimum class complexity | 62.00 |
▷ Maximum class complexity | 173.00 |
Average method complexity | 7.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 153.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 5 | 13.89% |
▷ Public methods | 36 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 15 | 88.24% |
▷ Anonymous functions | 2 | 11.76% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/stockdio-logo-full-light.png | 11.00KB | 5.38KB | ▼ 51.07% |
assets/stockdio_historical_chart_button.png | 1.31KB | 1.18KB | ▼ 9.61% |
assets/stockdio-logo-full-dark.png | 14.07KB | 5.39KB | ▼ 61.70% |