Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼2.31ms] Passed 4 tests
Server-side resources used by Stock Quote
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 42.64 ▲6.94 |
Dashboard /wp-admin | 3.37 ▲0.07 | 46.40 ▼3.00 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 46.90 ▼3.58 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 94.39 ▼9.61 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 42.51 ▲10.24 |
Stock Quote /wp-admin/options-general.php?page=stock-quote | 3.33 | 31.41 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 18 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_stock_quote_data |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
stockquote_db_ver |
db_upgraded |
stockquote_version |
Browser metrics Passed 4 tests
A check of browser resources used by Stock Quote
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲87 | 13.35 ▼1.04 | 1.63 ▼0.15 | 39.70 ▼0.59 |
Dashboard /wp-admin | 2,226 ▲40 | 4.88 ▼0.08 | 119.34 ▲12.29 | 43.61 ▲2.40 |
Posts /wp-admin/edit.php | 2,108 ▲19 | 1.98 ▼0.04 | 44.44 ▲3.27 | 37.31 ▲2.35 |
Add New Post /wp-admin/post-new.php | 1,531 ▼11 | 17.40 ▼0.75 | 679.29 ▲71.40 | 50.47 ▼2.70 |
Media Library /wp-admin/upload.php | 1,411 ▲20 | 4.21 ▲0.00 | 111.17 ▲12.95 | 48.20 ▲6.06 |
Stock Quote /wp-admin/options-general.php?page=stock-quote | 1,843 | 2.57 | 52.68 | 40.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_stock_quote_data
- Zombie WordPress options were found after uninstall: 8 options
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- stockquote_version
- db_upgraded
- stockquote_db_ver
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: stock, trading, exchange, stock quote, finance
stock-quote/stock-quote.php Passed 13 tests
The main file in "Stock Quote" v. 0.2.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
87 characters long description:
Insert static inline stock ticker for known exchange symbols by customizable shortcode.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected2,139 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 209 | 443 | 1,566 |
PO File | 1 | 113 | 173 | 353 |
Sass | 1 | 10 | 0 | 137 |
JavaScript | 4 | 1 | 6 | 82 |
CSS | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 70.00 |
▷ Minimum class complexity | 55.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 3.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.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 | 3 | 6.25% |
▷ Public methods | 44 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 8.33% |
Functions | 3 | |
▷ Named functions | 3 | 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% |