Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼5.65ms] Passed 4 tests
An overview of server-side resources used by Currency Converter Widget - Exchange Rates
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 40.93 ▼6.66 |
Dashboard /wp-admin | 3.50 ▲0.15 | 49.36 ▼17.36 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 52.84 ▲1.32 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 102.84 ▲0.11 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 39.41 ▲2.27 |
Server storage [IO: ▲0.93MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_bcc_currency_widget |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Currency Converter Widget - Exchange Rates
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲80 | 14.22 ▼0.51 | 1.72 ▼0.15 | 44.13 ▼1.62 |
Dashboard /wp-admin | 2,247 ▲70 | 5.71 ▲0.14 | 85.97 ▼4.27 | 82.57 ▲42.53 |
Posts /wp-admin/edit.php | 2,158 ▲58 | 2.15 ▲0.20 | 41.62 ▲5.39 | 34.70 ▼1.81 |
Add New Post /wp-admin/post-new.php | 1,574 ▲48 | 23.06 ▼0.43 | 717.22 ▲47.33 | 63.72 ▲5.27 |
Media Library /wp-admin/upload.php | 1,452 ▲52 | 4.26 ▲0.04 | 114.68 ▲12.00 | 80.14 ▲36.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_bcc_currency_widget
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/currency-converter-widget/bcc-widget.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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: These screenshots require images: #1 (Example of Currency Converter widget for sidebar to change the color, size, language, and default currency pair.), #2 (Example parameters to generate shorcode w/specific color.), #3 (Example of manual size input for width and height.), #4 (Color change example by customizing font as black and style as white.), #5 (Example of random color selection.), #6 (Example of language selection.)
- Contributors: Plugin contributors not specified
currency-converter-widget/currency-converter-widget.php 92% from 13 tests
Analyzing the main PHP file in "Currency Converter Widget - Exchange Rates" version 3.0.2
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 287 characters long)
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
Good job! No executable or dangerous file extensions detected5,988 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 100 | 45 | 3,754 |
JavaScript | 5 | 58 | 48 | 2,116 |
CSS | 2 | 0 | 3 | 118 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 66.50 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 120.00 |
Average method complexity | 9.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 78.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 2 | 12.50% |
▷ Public methods | 14 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 12.50% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.63MB with 0.40MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-6.png | 105.50KB | 36.86KB | ▼ 65.06% |
screenshot-4.png | 94.16KB | 33.82KB | ▼ 64.09% |
img/rating_logo.png | 12.56KB | 4.78KB | ▼ 61.94% |
screenshot-1.png | 98.71KB | 37.22KB | ▼ 62.29% |
screenshot-3.png | 97.79KB | 34.63KB | ▼ 64.59% |