Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼1.59ms] Passed 4 tests
This is a short check of server-side resources used by [b-sharpe-converter] shortcode
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 41.36 ▲1.77 |
Dashboard /wp-admin | 3.34 ▲0.04 | 51.86 ▼0.44 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 50.37 ▼2.98 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 93.92 ▼4.71 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 37.11 ▲3.36 |
Server storage [IO: ▲0.68MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
[b-sharpe-converter] shortcode: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 13.55 ▼0.61 | 1.96 ▲0.23 | 45.71 ▲1.03 |
Dashboard /wp-admin | 2,221 ▲18 | 5.79 ▼0.08 | 103.71 ▼12.18 | 40.68 ▼3.83 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.04 ▼0.09 | 35.45 ▼3.93 | 33.42 ▼3.89 |
Add New Post /wp-admin/post-new.php | 1,554 ▲28 | 18.34 ▲0.67 | 673.63 ▼31.30 | 55.75 ▼9.73 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.21 ▲0.01 | 100.04 ▼3.22 | 43.71 ▼4.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: currency, exchange, forex, finance, money
b-sharpe-converter-shortcode/b-sharpe-converter-shortcode.php Passed 13 tests
"[b-sharpe-converter] shortcode" version 5.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
82 characters long description:
Easily insert b-sharpe's currency converter on your pages with a simple shortcode.
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
There were no executable files found in this plugin10,424 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 9 | 2,300 | 703 | 9,559 |
CSS | 5 | 121 | 1 | 727 |
PHP | 2 | 12 | 23 | 138 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.15MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 24.45KB | 8.96KB | ▼ 63.38% |
public/img/logo_bsharpe_comparison.png | 1.10KB | 1.12KB | 0.00% |
assets/screenshot-2.png | 21.78KB | 8.85KB | ▼ 59.36% |
assets/icon-128x128.png | 4.81KB | 2.95KB | ▼ 38.74% |
assets/banner-772x250.png | 32.34KB | 9.46KB | ▼ 70.76% |