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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.91MB] [CPU: ▼31.43ms] Passed 4 tests
This is a short check of server-side resources used by Economic & Market News
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.59 ▲0.71 |
Dashboard /wp-admin | 3.04 ▼0.30 | 26.36 ▼31.27 |
Posts /wp-admin/edit.php | 3.04 ▼0.31 | 25.39 ▼21.95 |
Add New Post /wp-admin/post-new.php | 3.04 ▼2.84 | 24.40 ▼64.02 |
Media Library /wp-admin/upload.php | 3.04 ▼0.18 | 25.74 ▼8.49 |
Economic & Market News /wp-admin/options-general.php?page=stockdio-economic-news-board-settings-config | 3.05 | 24.49 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_widget_stockdio_market_economic_news |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Economic & Market News
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,884 ▲138 | 16.91 ▲2.62 | 2.13 ▲0.37 | 37.79 ▼6.59 |
Dashboard /wp-admin | 2,260 ▲82 | 7.70 ▲1.98 | 219.55 ▲109.61 | 42.82 ▼1.44 |
Posts /wp-admin/edit.php | 2,187 ▲90 | 7.40 ▲5.43 | 67.69 ▲31.41 | 31.12 ▼3.89 |
Add New Post /wp-admin/post-new.php | 6,390 ▲4,864 | 23.47 ▲0.40 | 915.35 ▲197.53 | 39.73 ▼18.00 |
Media Library /wp-admin/upload.php | 1,538 ▲138 | 9.09 ▲4.85 | 123.06 ▲5.00 | 40.79 ▼6.91 |
Economic & Market News /wp-admin/options-general.php?page=stockdio-economic-news-board-settings-config | 887 | 6.91 | 63.92 | 26.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/economic-market-news/stockdio_economic_news_stockdioplugin.php+115
Trying to access array offset on value of type bool
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_widget_stockdio_market_economic_news
- widget_recent-comments
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 server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=stockdio-economic-news-board-settings-config
- > Notice in wp-content/plugins/economic-market-news/stockdio_economic_news_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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/economic-market-news/stockdio_economic_news_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/economic-market-news/stockdio_economic_news_overview_widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/economic-market-news/stockdio_economic_news_activate_plugin_admin.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/economic-market-news/stockdio_economic_news_stockdioplugin.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Tags: There are too many tags (22 tag instead of maximum 10)
economic-market-news/stockdio_economic_news_stockdioplugin.php 92% from 13 tests
"Economic & Market News" version 1.0.10's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("economic-market-news.php" instead of "stockdio_economic_news_stockdioplugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin4,305 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 200 | 51 | 1,870 |
PHP | 5 | 232 | 113 | 1,316 |
CSS | 5 | 90 | 28 | 1,109 |
SVG | 1 | 1 | 0 | 10 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 88.50 |
▷ Minimum class complexity | 69.00 |
▷ Maximum class complexity | 108.00 |
Average method complexity | 5.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 85.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 | 38 | |
▷ Static methods | 5 | 13.16% |
▷ Public methods | 38 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
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% |