Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼3.83ms] Passed 4 tests
Server-side resources used by Russian Currency
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 34.38 ▼0.36 |
Dashboard /wp-admin | 3.38 ▲0.07 | 44.88 ▼1.78 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 46.29 ▲1.22 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 80.29 ▼13.69 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 33.57 ▲0.52 |
Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_russian_currency |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Russian Currency
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲30 | 14.34 ▼0.05 | 1.55 ▼0.16 | 44.04 ▲2.10 |
Dashboard /wp-admin | 2,198 ▲21 | 5.58 ▼0.09 | 83.27 ▼3.21 | 39.31 ▼1.18 |
Posts /wp-admin/edit.php | 2,103 ▲6 | 1.96 ▼0.07 | 36.31 ▼0.68 | 32.28 ▼5.92 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.37 ▲0.25 | 681.43 ▲10.05 | 58.65 ▲0.81 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.17 ▼0.03 | 97.30 ▼8.90 | 40.23 ▼14.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_russian_currency
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/russian-currency/russian-currency.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: exchange, eur, currency, rub, widget...
russian-currency/russian-currency.php Passed 13 tests
This is the main PHP file of "Russian Currency" version 1.53, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
89 characters long description:
Виджет с официальными и биржевыми курсами валют.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin320 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 72 | 10 | 311 |
CSS | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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 Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin