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
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼7.70ms] Passed 4 tests
A check of server-side resources used by CbrRate
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.07 | 42.39 ▼3.51 |
Dashboard /wp-admin | 49.19 ▲45.80 | 9,459,841.94 ▲9,459,774.27 |
Posts /wp-admin/edit.php | 3.53 ▲0.13 | 52.75 ▼0.33 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.06 | 94.61 ▼11.49 |
Media Library /wp-admin/upload.php | 3.34 ▲0.06 | 41.60 ▼15.47 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 21 new options
New WordPress options |
---|
widget_recent-comments |
cbrrate_prevdate |
cbrrate_EUR_1697587200 |
cbrrate_JPY_1697587200 |
db_upgraded |
theysaidso_admin_options |
cbrrate_CNY_1697500800 |
cbrrate_JPY_1697500800 |
widget_cbr_widget |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for CbrRate
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲30 | 14.37 ▼0.20 | 1.65 ▼0.37 | 43.64 ▲0.86 |
Dashboard /wp-admin | 2,195 ▲18 | 5.60 ▲0.03 | 93.40 ▲0.35 | 42.39 ▼2.40 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.00 ▼0.11 | 36.44 ▼3.90 | 35.34 ▼1.47 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.02 ▼0.17 | 680.28 ▲76.66 | 60.15 ▲2.88 |
Media Library /wp-admin/upload.php | 1,403 ▲9 | 4.18 ▼0.07 | 95.03 ▼7.66 | 43.22 ▼0.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 21 options in the database
- cbrrate_USD_1697500800
- db_upgraded
- can_compress_scripts
- cbrrate_BYR_1697500800
- cbrrate_BYR_1697587200
- widget_recent-comments
- cbrrate_GBP_1697500800
- widget_recent-posts
- widget_theysaidso_widget
- cbrrate_JPY_1697587200
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/cbrrate/cbrrate.php:79
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add an image for screenshot #1 (This screen shot screenshot-1.jpg of use widget CbrRate on same theme)
cbrrate/cbrrate.php Passed 13 tests
"CbrRate" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
95 characters long description:
Виджет курса валют ЦБ РФ на текущий день c динамикой.
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 plugin245 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 28 | 12 | 221 |
CSS | 1 | 0 | 0 | 24 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 7.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 11 | 91.67% |
▷ Anonymous functions | 1 | 8.33% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/dollar.png | 3.30KB | 0.35KB | ▼ 89.36% |
img/euro.png | 3.24KB | 0.34KB | ▼ 89.53% |