Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▲1.14ms] Passed 4 tests
Server-side resources used by Russian Currency Chart
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 40.93 ▼0.63 |
Dashboard /wp-admin | 3.36 ▲0.06 | 53.48 ▲2.22 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 47.26 ▲2.01 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 107.02 ▲2.17 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.81 ▲1.02 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
rucurrency_chart_data |
widget_ru_currency_chart |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Russian Currency Chart
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 14.12 ▼0.32 | 9.95 ▲7.99 | 42.02 ▼0.25 |
Dashboard /wp-admin | 2,206 ▲18 | 5.83 ▼0.06 | 99.91 ▼3.19 | 39.97 ▲1.65 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.05 ▼0.10 | 35.88 ▼5.79 | 32.52 ▼7.17 |
Add New Post /wp-admin/post-new.php | 1,542 ▲14 | 18.53 ▲0.21 | 602.31 ▼11.53 | 51.25 ▼7.31 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.20 ▲0.01 | 96.54 ▼2.20 | 42.29 ▼3.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_ru_currency_chart
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/russian-currency-chart/rucurrency.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Plugin Name: Please specify the plugin name on the first line (
=== russian-currency-chart ===
)
russian-currency-chart/rucurrency.php 85% from 13 tests
Analyzing the main PHP file in "Russian Currency Chart" version 0.6
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 142 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("russian-currency-chart.php" instead of "rucurrency.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin324 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 48 | 11 | 158 |
JavaScript | 2 | 20 | 9 | 101 |
PO File | 1 | 10 | 19 | 39 |
CSS | 1 | 5 | 0 | 23 |
SVG | 3 | 0 | 12 | 3 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected