Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼3.10ms] Passed 4 tests
A check of server-side resources used by Bitcoin & Crypto Prices Shortcode
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.20 | 197.10 ▲150.75 |
Dashboard /wp-admin | 3.43 ▲0.12 | 45.35 ▼6.70 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 47.86 ▼0.13 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 95.88 ▼4.97 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 34.99 ▼0.61 |
KVP settings /wp-admin/options-general.php?page=kvp-setting | 3.32 | 32.15 |
Server storage [IO: ▲0.94MB] [DB: ▲0.06MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
kv_last_update |
can_compress_scripts |
crypto_table_data |
Browser metrics Passed 4 tests
Bitcoin & Crypto Prices Shortcode: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲48 | 13.67 ▼1.08 | 2.02 ▲0.14 | 42.86 ▼0.92 |
Dashboard /wp-admin | 2,213 ▲25 | 4.86 ▼1.00 | 105.35 ▼11.83 | 41.99 ▼0.70 |
Posts /wp-admin/edit.php | 2,090 ▼2 | 2.05 ▲0.06 | 38.89 ▲1.42 | 34.35 ▲0.07 |
Add New Post /wp-admin/post-new.php | 1,517 ▲3 | 17.36 ▼0.33 | 647.67 ▼30.14 | 54.04 ▲8.68 |
Media Library /wp-admin/upload.php | 1,386 ▲1 | 4.23 ▲0.05 | 96.00 ▼6.29 | 42.13 ▼3.36 |
KVP settings /wp-admin/options-general.php?page=kvp-setting | 870 | 2.05 | 21.70 | 25.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.06MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 8 options in the database
- kv_last_update
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- crypto_table_data
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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 take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/bitcoin-crypto-prices-shortcode/settings.php:191
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: crypto, crypto shortcode, bitcoin shortcode, bitcoin, shortco
bitcoin-crypto-prices-shortcode/index.php 77% from 13 tests
The entry point to "Bitcoin & Crypto Prices Shortcode" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("bitcoin-crypto-prices-shortcode.php" instead of "index.php")
- Description: The description should be shorter than 140 characters (currently 177 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected382 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 63 | 59 | 282 |
CSS | 2 | 12 | 0 | 100 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 16.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 94.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.88% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.85MB with 0.41MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/crypto.png | 2.41KB | 1.90KB | ▼ 21.20% |
assets/images/spritesheet.png | 867.75KB | 215.50KB | ▼ 75.17% |