Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- This plugin did not install gracefully
- > Warning in wp-content/plugins/ls-wp-currency-byn/ls-wp-currency-byn.php+36
Illegal string offset 'Cur_Abbreviation'
Server metrics [RAM: ▲0.01MB] [CPU: ▼16.03ms] Passed 4 tests
A check of server-side resources used by LS WP Currency BYN
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.61 ▼8.48 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.36 ▼12.37 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.84 ▼11.94 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 86.63 ▼31.34 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 39.83 ▼4.80 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
ls_cb_kurs |
widget_recent-posts |
Browser metrics Passed 4 tests
LS WP Currency BYN: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲24 | 13.16 ▼1.24 | 1.73 ▼1.03 | 42.53 ▼15.66 |
Dashboard /wp-admin | 2,230 ▲21 | 5.82 ▲0.94 | 103.91 ▼9.67 | 74.05 ▲22.20 |
Posts /wp-admin/edit.php | 2,110 ▲18 | 1.97 ▼0.04 | 36.90 ▼5.79 | 38.51 ▼2.74 |
Add New Post /wp-admin/post-new.php | 1,548 ▲34 | 23.14 ▲1.37 | 695.64 ▼30.04 | 60.63 ▼6.01 |
Media Library /wp-admin/upload.php | 1,403 ▲15 | 4.13 ▼0.09 | 119.85 ▼8.91 | 83.42 ▲20.68 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ls-wp-currency-byn/ls-wp-currency-byn-page.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ls-wp-currency-byn/ls-wp-currency-byn.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% 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
2 plugin tags: currency, byn
ls-wp-currency-byn/ls-wp-currency-byn.php 92% from 13 tests
The primary PHP file in "LS WP Currency BYN" version 1.0.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected110 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 15 | 10 | 105 |
SVG | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
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 | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
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
2 PNG files occupy 0.31MB with 0.20MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon-256x256.png | 14.59KB | 4.99KB | ▼ 65.81% |
images/banner-772x250.png | 301.56KB | 118.64KB | ▼ 60.66% |