Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.62ms] Passed 4 tests
This is a short check of server-side resources used by Currency Rates of Russian Ruble
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.12 ▼2.98 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.99 ▼0.09 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.92 ▼11.01 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 82.06 ▼14.06 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 36.40 ▼2.41 |
Currency rates of ruble /wp-admin/options-general.php?page=cur-rates-submenu | 3.26 | 114.83 |
Server storage [IO: ▲0.60MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Currency Rates of Russian Ruble
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲49 | 13.24 ▼1.30 | 1.63 ▼0.90 | 43.55 ▼4.32 |
Dashboard /wp-admin | 2,212 ▲21 | 4.89 ▲0.00 | 127.46 ▲28.59 | 48.03 ▲4.11 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.06 ▲0.09 | 35.20 ▼0.41 | 31.04 ▼4.25 |
Add New Post /wp-admin/post-new.php | 1,519 ▼15 | 17.60 ▼5.46 | 651.93 ▼18.29 | 57.11 ▼3.46 |
Media Library /wp-admin/upload.php | 1,394 ▲12 | 4.24 ▲0.09 | 95.87 ▼3.25 | 42.68 ▼1.26 |
Currency rates of ruble /wp-admin/options-general.php?page=cur-rates-submenu | 1,540 | 2.05 | 25.85 | 30.70 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- 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)
Even though no errors were found, 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
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/currency-rates-of-the-russian-ruble/cur-rates-admin.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 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
Please fix the following attributes:
- Screenshots: Screenshot #3 (Пример отображения курсов в админке) image required
- Tags: You are using too many tags: 11 tag instead of maximum 10
currency-rates-of-the-russian-ruble/cur-rates-cb.php 85% from 13 tests
"Currency Rates of Russian Ruble" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("currency-rates-of-the-russian-ruble.php" instead of "cur-rates-cb.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected563 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 1 | 0 | 0 | 395 |
PHP | 3 | 20 | 39 | 113 |
PO File | 1 | 12 | 13 | 39 |
CSS | 1 | 0 | 0 | 16 |
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.45 |
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 | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.56MB with 0.34MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 28.38KB | 11.63KB | ▼ 59.01% |
screenshot-2.png | 15.79KB | 6.05KB | ▼ 61.66% |
Screenshot2.png | 15.79KB | 6.05KB | ▼ 61.66% |
screenshot-3.png | 487.66KB | 200.66KB | ▼ 58.85% |
Screenshot1.png | 28.39KB | 11.63KB | ▼ 59.01% |