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
This plugin's installer ran successfully
Server metrics [RAM: ▼0.58MB] [CPU: ▼28.10ms] Passed 4 tests
Server-side resources used by Stock Quotes List
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 41.47 ▼1.73 |
Dashboard /wp-admin | 3.37 ▲0.06 | 27.86 ▼22.27 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 28.79 ▼19.26 |
Add New Post /wp-admin/post-new.php | 3.37 ▼2.52 | 26.95 ▼63.39 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 27.77 ▼7.46 |
Stock Quotes List /wp-admin/options-general.php?page=stockdio-quotes-board-settings-config | 3.37 | 26.33 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_widget_stock_quotes |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Stock Quotes List
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,858 ▲97 | 16.86 ▲2.59 | 1.69 ▼0.33 | 41.43 ▼2.51 |
Dashboard /wp-admin | 2,259 ▲79 | 7.64 ▲1.98 | 230.96 ▲135.96 | 42.72 ▼0.29 |
Posts /wp-admin/edit.php | 2,162 ▲62 | 7.13 ▲5.15 | 71.93 ▲35.32 | 34.90 ▲0.60 |
Add New Post /wp-admin/post-new.php | 6,387 ▲4,859 | 23.38 ▲0.37 | 763.26 ▲122.88 | 33.96 ▼12.96 |
Media Library /wp-admin/upload.php | 1,546 ▲146 | 8.98 ▲4.72 | 127.59 ▲31.20 | 40.84 ▼2.99 |
Stock Quotes List /wp-admin/options-general.php?page=stockdio-quotes-board-settings-config | 1,193 | 7.57 | 93.36 | 52.53 |
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
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/stock-quotes-list/stockdio_quotes_stockdioplugin.php+115
Trying to access array offset on value of type bool
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_widget_stock_quotes
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
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)
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=stockdio-quotes-board-settings-config
- > Notice in wp-content/plugins/stock-quotes-list/stockdio_quotes_stockdioplugin.php+38
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 fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/stock-quotes-list/stockdio_quotes_activate_plugin_settings.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/stock-quotes-list/stockdio_quotes_stockdioplugin.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/stock-quotes-list/stockdio_quotes_widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/stock-quotes-list/stockdio_quotes_activate_plugin_admin.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Tags: There are too many tags (14 tag instead of maximum 10)
stock-quotes-list/stockdio_quotes_stockdioplugin.php 92% from 13 tests
"Stock Quotes List" version 2.9.11's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("stock-quotes-list.php" instead of "stockdio_quotes_stockdioplugin.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin4,638 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 200 | 51 | 1,870 |
PHP | 5 | 190 | 96 | 1,649 |
CSS | 5 | 90 | 28 | 1,109 |
SVG | 1 | 1 | 0 | 10 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
These items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 124)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 123.50 |
▷ Minimum class complexity | 109.00 |
▷ Maximum class complexity | 138.00 |
Average method complexity | 6.10 |
▷ 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 | 48 | |
▷ Static methods | 5 | 10.42% |
▷ Public methods | 48 | 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
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-dark.png | 14.07KB | 5.39KB | ▼ 61.70% |
assets/stockdio-logo-full-light.png | 11.00KB | 5.38KB | ▼ 51.07% |