Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.65MB] [CPU: ▲624.17ms] 50% from 4 tests
Analyzing server-side resources used by Financial Stocks & Crypto Market Data Plugin
It is recommended to improve the following
- CPU: The total CPU usage must kept under 500.00ms (currently 890.31ms on /wp-admin/admin.php?page=eod-stock-prices)
- Extra CPU: Extra CPU usage must be kept under 200.00ms (currently 624.17ms on /wp-admin/admin.php?page=eod-stock-prices)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.22 ▲0.76 | 49.96 ▲7.93 |
Dashboard /wp-admin | 3.69 ▲0.38 | 885.11 ▲829.66 |
Posts /wp-admin/edit.php | 4.13 ▲0.77 | 896.09 ▲838.83 |
Add New Post /wp-admin/post-new.php | 6.71 ▲0.83 | 941.52 ▲831.57 |
Media Library /wp-admin/upload.php | 3.94 ▲0.71 | 866.59 ▲827.51 |
Shortcode Generator /wp-admin/admin.php?page=eod-examples | 3.93 | 875.97 |
Settings /wp-admin/admin.php?page=eod-settings | 3.94 | 878.60 |
Financial Table presets /wp-admin/edit.php?post_type=financials | 4.04 | 861.83 |
Fundamental Data presets /wp-admin/edit.php?post_type=fundamental-data | 4.04 | 890.99 |
Quick Start & Samples /wp-admin/admin.php?page=eod-stock-prices | 3.94 | 890.31 |
Server storage [IO: ▲0.72MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 69 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_eod_financial_widget |
widget_eod_fundamental_widget |
can_compress_scripts |
widget_eod_stock_prices_widget |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_eod_converter_widget |
widget_recent-comments |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Financial Stocks & Crypto Market Data Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,030 ▲244 | 14.25 ▼0.48 | 20.66 ▲18.77 | 39.56 ▼1.30 |
Dashboard /wp-admin | 2,304 ▲124 | 4.99 ▼0.62 | 94.88 ▲5.35 | 40.01 ▼0.57 |
Posts /wp-admin/edit.php | 2,216 ▲116 | 2.39 ▲0.44 | 37.02 ▼2.15 | 32.39 ▼4.65 |
Add New Post /wp-admin/post-new.php | 1,477 ▼49 | 18.44 ▼4.70 | 632.63 ▼3.84 | 48.68 ▼5.94 |
Media Library /wp-admin/upload.php | 1,512 ▲115 | 4.50 ▲0.30 | 100.80 ▲1.77 | 45.22 ▲2.37 |
Shortcode Generator /wp-admin/admin.php?page=eod-examples | 2,186 | 4.59 | 61.50 | 85.40 |
Settings /wp-admin/admin.php?page=eod-settings | 1,449 | 4.46 | 57.25 | 49.00 |
Financial Table presets /wp-admin/edit.php?post_type=financials | 1,180 | 2.38 | 36.56 | 31.67 |
Fundamental Data presets /wp-admin/edit.php?post_type=fundamental-data | 1,180 | 2.39 | 33.50 | 27.17 |
Quick Start & Samples /wp-admin/admin.php?page=eod-stock-prices | 1,499 | 4.03 | 41.62 | 53.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 11 options in the database
- widget_eod_stock_prices_widget
- widget_theysaidso_widget
- widget_recent-posts
- widget_eod_news_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_eod_fundamental_widget
- widget_eod_financial_widget
- ...
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
These errors were triggered by the plugin
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eod-stock-prices
- > Notice in wp-content/plugins/live-stock-prices-for-wordpress/admin/template/sidebar.php+45
Trying to access array offset on value of type bool
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 take a closer look at the following
- 7× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/live-stock-prices-for-wordpress/admin/template/examples/converter.php
- > /wp-content/plugins/live-stock-prices-for-wordpress/template/realtime_ticker.php
- > /wp-content/plugins/live-stock-prices-for-wordpress/template/financials.php
- > /wp-content/plugins/live-stock-prices-for-wordpress/widget/template/ticker-widget.php
- > /wp-content/plugins/live-stock-prices-for-wordpress/template/ticker.php
- > /wp-content/plugins/live-stock-prices-for-wordpress/template/converter.php
- > /wp-content/plugins/live-stock-prices-for-wordpress/template/news.php
- 99× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: _this in wp-content/plugins/live-stock-prices-for-wordpress/widget/template/fundamental-widget-form.php on line 1
- > PHP Fatal error
Uncaught Error: Call to a member function get_field_id() on null in wp-content/plugins/live-stock-prices-for-wordpress/widget/template/ticker-widget-form.php:1
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/live-stock-prices-for-wordpress/plugins/elementor/widgets/Elementor_EOD_Converter.php:4
- > PHP Notice
Undefined variable: title in wp-content/plugins/live-stock-prices-for-wordpress/template/ticker.php on line 2
- > PHP Notice
Trying to get property 'list' of non-object in wp-content/plugins/live-stock-prices-for-wordpress/template/financials.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/live-stock-prices-for-wordpress/admin/template/general.php:2
- > PHP Notice
Undefined variable: error in wp-content/plugins/live-stock-prices-for-wordpress/template/ticker.php on line 1
- > PHP Fatal error
Uncaught Error: Call to a member function get_news_topics() on null in wp-content/plugins/live-stock-prices-for-wordpress/admin/template/examples/news.php:2
- > PHP Notice
Undefined variable: fd in wp-content/plugins/live-stock-prices-for-wordpress/template/financials.php on line 12
- > PHP Notice
Trying to get property 'group' of non-object in wp-content/plugins/live-stock-prices-for-wordpress/template/financials.php on line 13
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Please describe screenshot #17 in live-stock-prices-for-wordpress/assets to your readme.txt
- Donate link: Invalid url: ""
live-stock-prices-for-wordpress/eod-stock-prices-plugin.php 92% from 13 tests
The primary PHP file in "Financial Stocks & Crypto Market Data Plugin" version 1.10.3 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("live-stock-prices-for-wordpress.php" instead of "eod-stock-prices-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected7,223 lines of code in 58 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 49 | 482 | 541 | 4,067 |
JavaScript | 5 | 347 | 538 | 1,781 |
CSS | 3 | 51 | 47 | 1,348 |
SVG | 1 | 0 | 0 | 27 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 9.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 127 | |
▷ Static methods | 11 | 8.66% |
▷ Public methods | 117 | 92.13% |
▷ Protected methods | 10 | 7.87% |
▷ Private methods | 0 | 0.00% |
Functions | 29 | |
▷ Named functions | 24 | 82.76% |
▷ Anonymous functions | 5 | 17.24% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.29MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/points_field_left.png | 63.75KB | 66.58KB | 0.00% |
img/sample_ticker.png | 7.09KB | 3.75KB | ▼ 47.17% |
img/sample_converter.png | 4.68KB | 2.55KB | ▼ 45.45% |
img/points_field_right.png | 39.97KB | 42.52KB | 0.00% |
img/EOD_logo_w.png | 16.52KB | 10.15KB | ▼ 38.57% |