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
Install script ran successfully
Server metrics [RAM: ▼0.71MB] [CPU: ▼33.64ms] Passed 4 tests
This is a short check of server-side resources used by Stock Market Ticker
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.22 | 42.13 ▲0.41 |
Dashboard /wp-admin | 3.24 ▼0.10 | 24.47 ▼41.37 |
Posts /wp-admin/edit.php | 3.25 ▼0.12 | 26.19 ▼19.38 |
Add New Post /wp-admin/post-new.php | 3.24 ▼2.65 | 25.71 ▼64.11 |
Media Library /wp-admin/upload.php | 3.25 ▲0.01 | 26.41 ▼9.69 |
Stock Market Ticker /wp-admin/options-general.php?page=stockdio-ticker-settings-config | 3.25 | 25.65 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_widget_stockdio_ticker |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Stock Market Ticker
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,858 ▲112 | 16.75 ▲2.31 | 1.82 ▲0.12 | 42.25 ▼1.08 |
Dashboard /wp-admin | 2,259 ▲82 | 7.63 ▲1.99 | 228.58 ▲128.09 | 41.95 ▼0.04 |
Posts /wp-admin/edit.php | 2,165 ▲68 | 7.15 ▲5.19 | 79.55 ▲43.14 | 38.10 ▲5.40 |
Add New Post /wp-admin/post-new.php | 6,217 ▲4,691 | 19.38 ▼3.96 | 812.29 ▲134.50 | 38.01 ▼30.25 |
Media Library /wp-admin/upload.php | 1,540 ▲137 | 8.95 ▲4.78 | 123.76 ▲26.22 | 48.35 ▲1.67 |
Stock Market Ticker /wp-admin/options-general.php?page=stockdio-ticker-settings-config | 867 | 6.82 | 67.15 | 25.74 |
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
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/stock-market-ticker/stockdio_ticker_stockdioplugin.php+112
Trying to access array offset on value of type bool
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_widget_stockdio_ticker
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=stockdio-ticker-settings-config
- > Notice in wp-content/plugins/stock-market-ticker/stockdio_ticker_stockdioplugin.php+35
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/stock-market-ticker/stockdio_ticker_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/stock-market-ticker/stockdio_ticker_widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/stock-market-ticker/stockdio_ticker_stockdioplugin.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/stock-market-ticker/stockdio_ticker_activate_plugin_admin.php:2
- > 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 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 19 tag instead of maximum 10
- Screenshots: A description for screenshot #8 is missing in stock-market-ticker/assets to your readme.txt
stock-market-ticker/stockdio_ticker_stockdioplugin.php 92% from 13 tests
Analyzing the main PHP file in "Stock Market Ticker" version 1.9.13
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("stock-market-ticker.php" instead of "stockdio_ticker_stockdioplugin.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin4,424 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 208 | 66 | 1,943 |
PHP | 5 | 184 | 104 | 1,300 |
CSS | 6 | 91 | 28 | 1,171 |
SVG | 1 | 1 | 0 | 10 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 122)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 97.50 |
▷ Minimum class complexity | 62.00 |
▷ Maximum class complexity | 133.00 |
Average method complexity | 6.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 122.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 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
18 PNG files occupy 0.14MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/layout/ticker13-400.png | 8.92KB | 4.35KB | ▼ 51.19% |
assets/layout/ticker4-400.png | 5.14KB | 2.94KB | ▼ 42.87% |
assets/layout/ticker11-400.png | 7.79KB | 4.09KB | ▼ 47.44% |
assets/layout/ticker3-400.png | 4.90KB | 2.85KB | ▼ 41.77% |
assets/layout/ticker16-400.png | 9.62KB | 4.36KB | ▼ 54.62% |