Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.68ms] Passed 4 tests
Server-side resources used by Crypto-Currency Shortcode
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 44.99 ▲4.77 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.50 ▼6.13 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 52.01 ▼5.08 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 87.49 ▼17.19 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.59 ▲1.68 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Crypto-Currency Shortcode
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,874 ▲113 | 13.86 ▼0.58 | 8.36 ▲6.61 | 44.40 ▲4.38 |
Dashboard /wp-admin | 2,197 ▲20 | 5.62 ▼0.03 | 105.39 ▼1.15 | 45.52 ▼2.68 |
Posts /wp-admin/edit.php | 2,102 ▼1 | 1.99 ▲0.03 | 40.38 ▼1.41 | 35.29 ▼2.72 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 23.01 ▼0.08 | 664.30 ▼16.28 | 59.18 ▲1.26 |
Media Library /wp-admin/upload.php | 1,402 ▲5 | 4.22 ▲0.05 | 96.66 ▼1.22 | 41.37 ▼4.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/cryptocurrency-shortcode/coin_js_wrapper.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/cryptocurrency-shortcode/cryptocurrency-shortcode.php:16
- > 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 96% from 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
7 plugin tags: litecoin, kumacoin, ringo, coinwidget, dogecoin...
cryptocurrency-shortcode/cryptocurrency-shortcode.php 92% from 13 tests
The main PHP script in "Crypto-Currency Shortcode" version 1.4 is automatically included on every request by WordPress
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 159 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin2,767 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 609 | 517 | 2,378 |
JavaScript | 1 | 15 | 35 | 288 |
CSS | 1 | 14 | 30 | 53 |
Markdown | 1 | 22 | 0 | 27 |
HTML | 1 | 11 | 24 | 21 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 22.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 3.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 137 | |
▷ Static methods | 61 | 44.53% |
▷ Public methods | 135 | 98.54% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.46% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 32 | |
▷ Global constants | 32 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
coinwidget.com/icon_wallet.png | 0.62KB | 0.60KB | ▼ 3.13% |
coinwidget.com/icon_kumacoin.png | 0.89KB | 0.96KB | 0.00% |
coinwidget.com/icon_ringo.png | 0.49KB | 0.19KB | ▼ 61.72% |
coinwidget.com/icon_litecoin.png | 1.67KB | 0.78KB | ▼ 53.54% |
coinwidget.com/icon_bitcoin.png | 1.78KB | 1.05KB | ▼ 40.82% |