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.34MB] [CPU: ▼6.71ms] Passed 4 tests
This is a short check of server-side resources used by Stock Ticker
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 40.77 ▼3.46 |
Dashboard /wp-admin | 3.68 ▲0.37 | 52.90 ▼5.68 |
Posts /wp-admin/edit.php | 3.79 ▲0.44 | 53.71 ▲8.83 |
Add New Post /wp-admin/post-new.php | 6.26 ▲0.37 | 85.12 ▼23.77 |
Media Library /wp-admin/upload.php | 3.60 ▲0.37 | 36.31 ▲6.08 |
Stock Ticker /wp-admin/options-general.php?page=stock-ticker | 3.61 | 33.33 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 23 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_stock_ticker_data |
New WordPress options |
---|
stockticker_db_ver |
db_upgraded |
widget_stock_ticker |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
stockticker_version |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Stock Ticker
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,924 ▲178 | 13.70 ▼0.59 | 9.06 ▲7.46 | 41.86 ▼2.49 |
Dashboard /wp-admin | 2,211 ▲37 | 5.56 ▲0.03 | 80.35 ▼3.42 | 37.79 ▼0.25 |
Posts /wp-admin/edit.php | 2,119 ▲19 | 2.09 ▲0.10 | 40.04 ▼2.74 | 36.45 ▼0.50 |
Add New Post /wp-admin/post-new.php | 1,542 ▲16 | 23.39 ▼0.25 | 655.46 ▲39.40 | 50.25 ▲0.52 |
Media Library /wp-admin/upload.php | 1,422 ▲19 | 4.17 ▼0.11 | 96.42 ▼0.36 | 42.92 ▲2.32 |
Stock Ticker /wp-admin/options-general.php?page=stock-ticker | 1,961 | 2.58 | 50.83 | 42.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie tables detected upon uninstall: 1 table
- wp_stock_ticker_data
- The uninstall procedure has failed, leaving 9 options in the database
- can_compress_scripts
- stockticker_db_ver
- widget_stock_ticker
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- stockticker_version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/stock-ticker/inc/widget.php:21
- > 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 Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: trading, ticker, stock ticker, forex, sotck quote...
stock-ticker/stock-ticker.php Passed 13 tests
"Stock Ticker" version 3.23.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
100 characters long description:
Easy add customizable moving or static ticker tapes with stock information for custom stock symbols.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin3,068 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 315 | 585 | 2,204 |
JavaScript | 6 | 50 | 131 | 566 |
Sass | 2 | 20 | 31 | 249 |
CSS | 2 | 1 | 2 | 49 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 68.00 |
▷ Minimum class complexity | 44.00 |
▷ Maximum class complexity | 98.00 |
Average method complexity | 4.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 4 | 7.69% |
▷ Public methods | 48 | 92.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 7.69% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/paypal.png | 1.57KB | 1.58KB | 0.00% |