Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼0.53MB] [CPU: ▼36.00ms] Passed 4 tests
An overview of server-side resources used by Stock Market Overview
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.34 | 42.23 ▲4.33 |
Dashboard /wp-admin | 3.42 ▲0.07 | 26.38 ▼34.47 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 27.52 ▼23.26 |
Add New Post /wp-admin/post-new.php | 3.42 ▼2.47 | 25.71 ▼77.72 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 26.41 ▼8.53 |
Stock Market Overview /wp-admin/options-general.php?page=stockdio-market-overview-settings-config | 3.43 | 25.41 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_widget_stockdio_market_overview |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Stock Market Overview
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,859 ▲113 | 17.09 ▲2.74 | 1.75 ▼0.02 | 41.43 ▲3.75 |
Dashboard /wp-admin | 2,263 ▲88 | 7.56 ▲1.78 | 214.73 ▲108.40 | 42.70 ▲3.61 |
Posts /wp-admin/edit.php | 2,187 ▲87 | 7.22 ▲5.26 | 76.99 ▲36.33 | 34.61 ▲0.78 |
Add New Post /wp-admin/post-new.php | 6,388 ▲4,853 | 23.47 ▲5.51 | 854.29 ▲239.97 | 41.39 ▼25.74 |
Media Library /wp-admin/upload.php | 1,544 ▲144 | 8.99 ▲4.77 | 123.09 ▲27.67 | 41.31 ▼2.14 |
Stock Market Overview /wp-admin/options-general.php?page=stockdio-market-overview-settings-config | 887 | 6.87 | 62.76 | 26.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/stock-market-overview/stockdio_market_overview_stockdioplugin.php+115
Trying to access array offset on value of type bool
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_widget_stockdio_market_overview
- can_compress_scripts
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-market-overview-settings-config
- > Notice in wp-content/plugins/stock-market-overview/stockdio_market_overview_stockdioplugin.php+38
Trying to access array offset on value of type bool
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/stock-market-overview/stockdio_market_overview_activate_plugin_settings.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/stock-market-overview/stockdio_market_overview_stockdioplugin.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/stock-market-overview/stockdio_market_overview_activate_plugin_admin.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/stock-market-overview/stockdio_market_overview_widget.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 20 tag instead of maximum 10
stock-market-overview/stockdio_market_overview_stockdioplugin.php 92% from 13 tests
Analyzing the main PHP file in "Stock Market Overview" version 1.6.10
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("stock-market-overview.php" instead of "stockdio_market_overview_stockdioplugin.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin4,933 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 233 | 100 | 1,944 |
JavaScript | 5 | 197 | 51 | 1,870 |
CSS | 5 | 90 | 28 | 1,109 |
SVG | 1 | 1 | 0 | 10 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 124)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 147.00 |
▷ Minimum class complexity | 142.00 |
▷ Maximum class complexity | 152.00 |
Average method complexity | 5.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 124.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 | 61 | |
▷ Static methods | 5 | 8.20% |
▷ Public methods | 61 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 16 | 88.89% |
▷ Anonymous functions | 2 | 11.11% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 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-logo-full-dark.png | 14.07KB | 5.39KB | ▼ 61.70% |