Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼4.83ms] Passed 4 tests
Analyzing server-side resources used by WP Currency Exchange Rate
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 41.95 ▼7.77 |
Dashboard /wp-admin | 3.44 ▲0.14 | 48.70 ▼4.53 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 52.93 ▲2.16 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 88.42 ▼7.72 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 41.58 ▲0.70 |
WP Currency Exchange Rate /wp-admin/options-general.php?page=wpcer-options-page | 3.35 | 35.87 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
wp_currency_exchange_rate |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Currency Exchange Rate
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,909 ▲123 | 13.63 ▼1.17 | 9.01 ▲6.76 | 44.09 ▼2.37 |
Dashboard /wp-admin | 2,229 ▲26 | 5.88 ▼0.02 | 109.48 ▲1.71 | 40.75 ▼4.67 |
Posts /wp-admin/edit.php | 2,108 ▲11 | 1.99 ▼0.02 | 34.96 ▼2.22 | 31.84 ▼7.97 |
Add New Post /wp-admin/post-new.php | 1,538 ▼16 | 23.18 ▲5.04 | 624.76 ▼19.06 | 64.86 ▼2.94 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.21 ▲0.01 | 110.42 ▼8.62 | 46.55 ▼3.77 |
WP Currency Exchange Rate /wp-admin/options-general.php?page=wpcer-options-page | 1,287 | 2.02 | 25.90 | 29.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- wp_currency_exchange_rate
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-currency-exchange-rate/admin/partials/wp-currency-exchange-rate-admin-usage-tab.php
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-currency-exchange-rate/admin/partials/wp-currency-exchange-rate-admin-settings-tab.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/wp-currency-exchange-rate/admin/partials/wp-currency-exchange-rate-admin-display.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-currency-exchange-rate/admin/partials/wp-currency-exchange-rate-admin-tabs.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp-currency-exchange-rate/public/partials/wp-currency-exchange-rate-public-display.php:21
- > 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
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: currency, exchange, rate
wp-currency-exchange-rate/wp-currency-exchange-rate.php Passed 13 tests
The main PHP script in "WP Currency Exchange Rate" version 1.0.0 is automatically included on every request by WordPress
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin812 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 277 | 1,088 | 720 |
JavaScript | 2 | 27 | 92 | 65 |
CSS | 2 | 8 | 11 | 27 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 4.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 1.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 63 | |
▷ Static methods | 17 | 26.98% |
▷ Public methods | 47 | 74.60% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 25.40% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
PNG images were not found in this plugin