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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.40MB] [CPU: ▼0.31ms] Passed 4 tests
A check of server-side resources used by CurrencyConverter
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.32 | 36.60 ▼5.99 |
Dashboard /wp-admin | 3.77 ▲0.46 | 47.88 ▼7.61 |
Posts /wp-admin/edit.php | 3.82 ▲0.46 | 50.75 ▲6.61 |
Add New Post /wp-admin/post-new.php | 6.30 ▲0.42 | 96.76 ▲7.17 |
Media Library /wp-admin/upload.php | 3.62 ▲0.40 | 42.99 ▲5.76 |
Currency /wp-admin/options-general.php?page=currencyconverter-general | 4.32 | 191.85 |
Server storage [IO: ▲23.52MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 3,750 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_recent-comments |
currencyconverter_rates |
widget_currencyconverter_table |
currencyconverter |
db_upgraded |
widget_currencyconverter_minimalistic_ver2 |
widget_theysaidso_widget |
can_compress_scripts |
widget_currencyconverter_minimalistic |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
CurrencyConverter: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.35 ▲0.13 | 1.83 ▼0.27 | 40.92 ▼3.24 |
Dashboard /wp-admin | 2,210 ▲19 | 5.85 ▲0.97 | 98.27 ▼7.91 | 39.93 ▼3.81 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▲0.02 | 40.11 ▲4.66 | 35.37 ▼0.83 |
Add New Post /wp-admin/post-new.php | 1,545 ▲12 | 18.37 ▼5.02 | 606.30 ▼66.53 | 62.24 ▼7.76 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.18 ▲0.01 | 96.65 ▼21.63 | 40.73 ▼5.34 |
Currency /wp-admin/options-general.php?page=currencyconverter-general | 3,469 | 1.71 | 26.86 | 227.98 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 9 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_currencyconverter_table
- widget_currencyconverter_minimalistic
- theysaidso_admin_options
- widget_currencyconverter_minimalistic_ver2
- 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
Everything seems fine, however this is by no means 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
Please fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/currencyconverter/source/Widgets/CurrencyMinimalistic2/Widget.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/currencyconverter/source/Widgets/CurrencyTable/Currency_Table.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function Korobochkin\\CurrencyConverter\\add_action() in wp-content/plugins/currencyconverter/source/Plugin.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/currencyconverter/source/Widgets/CurrencyMinimalistic/Widget.php:9
- > 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 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 16 tag instead of maximum 10
currencyconverter/plugin.php 85% from 13 tests
This is the main PHP file of "CurrencyConverter" version 0.5.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("currencyconverter.php" instead of "plugin.php")
- Domain Path: The domain path folder does not exist ("/languages/")
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 plugin3,925 lines of code in 55 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 47 | 600 | 565 | 3,532 |
CSS | 2 | 0 | 2 | 265 |
JavaScript | 3 | 9 | 9 | 69 |
JSON | 2 | 0 | 0 | 56 |
Markdown | 1 | 1 | 0 | 3 |
PHP code Passed 2 tests
An overview of 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 | 8.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 21 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 40 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 40 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 157 | |
▷ Static methods | 49 | 31.21% |
▷ Public methods | 131 | 83.44% |
▷ Protected methods | 1 | 0.64% |
▷ Private methods | 25 | 15.92% |
Functions | 1 | |
▷ Named functions | 1 | 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 Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2635 compressed PNG files occupy 2.32MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
libs/flags/flags-iso/shiny/24/CL.png | 0.68KB | 0.77KB | 0.00% |
libs/flags/flags-iso/shiny/16/_british-antarctic-territory.png | 0.48KB | 0.55KB | 0.00% |
libs/flags/flags-iso/shiny/32/MX.png | 1.06KB | 1.42KB | 0.00% |
libs/flags/flags-iso/flat/24/UG.png | 0.25KB | 0.26KB | 0.00% |
libs/flags/flags-iso/shiny/24/AR.png | 0.61KB | 0.78KB | 0.00% |