Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/cryptocurrency-ticker/crypto-ticker.php+14
Methods with the same name as their class will not be constructors in a future version of PHP; CryptoTickerWidget has a deprecated constructor
Server metrics [RAM: ▼1.84MB] [CPU: ▼52.41ms] Passed 4 tests
An overview of server-side resources used by Cryptocurrency Ticker
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.15 ▼1.31 | 4.66 ▼32.17 |
Dashboard /wp-admin | 2.17 ▼1.13 | 7.35 ▼41.90 |
Posts /wp-admin/edit.php | 2.17 ▼1.18 | 5.70 ▼42.46 |
Add New Post /wp-admin/post-new.php | 2.17 ▼3.72 | 5.47 ▼93.11 |
Media Library /wp-admin/upload.php | 2.17 ▼1.06 | 5.04 ▼29.55 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_cryptotickerwidget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Cryptocurrency Ticker
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲56 | 13.26 ▼0.98 | 1.65 ▼0.20 | 45.00 ▼0.79 |
Dashboard /wp-admin | 2,206 ▲24 | 4.88 ▼0.99 | 103.56 ▼3.29 | 40.87 ▼0.08 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▼0.02 | 35.25 ▼2.18 | 36.77 ▼1.17 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.48 ▲0.29 | 578.40 ▼115.58 | 55.78 ▲0.97 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.20 ▲0.07 | 93.56 ▼8.86 | 42.65 ▼1.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/cryptocurrency-ticker/crypto-ticker.php+14
Methods with the same name as their class will not be constructors in a future version of PHP; CryptoTickerWidget has a deprecated constructor
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_cryptotickerwidget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cryptocurrency-ticker/crypto-ticker.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
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
These attributes need to be fixed:
- Screenshots: A description for screenshot #2 is missing in cryptocurrency-ticker/assets to your readme.txt
cryptocurrency-ticker/crypto-ticker.php 92% from 13 tests
"Cryptocurrency Ticker" version 1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
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 ("cryptocurrency-ticker.php" instead of "crypto-ticker.php")
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 plugin228 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 26 | 16 | 193 |
CSS | 1 | 8 | 0 | 35 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 3.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
3 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/BTC.png | 3.46KB | 0.93KB | ▼ 73.02% |
img/LTC.png | 2.24KB | 0.82KB | ▼ 63.43% |
img/ETH.png | 15.21KB | 0.51KB | ▼ 96.62% |