Benchmarks
Plugin footprint 82% 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼0.27ms] 75% from 4 tests
A check of server-side resources used by Open Currency Converter
Please take the time to fix the following items
- CPU: Total CPU usage must kept under 500.00ms (currently 581.32ms on /wp-admin/tools.php?page=rates)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 41.21 ▲3.43 |
Dashboard /wp-admin | 3.38 ▲0.08 | 50.45 ▲7.15 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 47.59 ▲1.47 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 85.20 ▼4.31 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 37.07 ▼1.66 |
Open Currency /wp-admin/options-general.php?page=options | 3.31 | 606.87 |
Currency Rates /wp-admin/tools.php?page=rates | 3.31 | 581.32 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 189 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
open_currency_converter |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Open Currency Converter
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲79 | 14.80 ▲0.38 | 1.65 ▼0.21 | 44.81 ▲3.74 |
Dashboard /wp-admin | 2,220 ▲35 | 5.90 ▲0.87 | 93.82 ▼9.71 | 39.21 ▼2.95 |
Posts /wp-admin/edit.php | 2,102 ▲13 | 2.03 ▲0.04 | 33.93 ▼1.61 | 33.73 ▲3.69 |
Add New Post /wp-admin/post-new.php | 1,526 ▲12 | 17.68 ▼0.04 | 672.59 ▲4.58 | 55.54 ▲3.25 |
Media Library /wp-admin/upload.php | 1,405 ▲17 | 4.20 ▼0.07 | 104.20 ▼15.84 | 45.92 ▼3.83 |
Open Currency /wp-admin/options-general.php?page=options | 984 | 2.02 | 22.30 | 27.52 |
Currency Rates /wp-admin/tools.php?page=rates | 823 | 2.05 | 23.38 | 23.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
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
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/artiss-currency-converter/artiss-currency-converter.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/artiss-currency-converter/includes/shortcodes.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function occ_get_options() in wp-content/plugins/artiss-currency-converter/includes/rates.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/artiss-currency-converter/includes/options.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/artiss-currency-converter/includes/admin-config.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: currency, cash, convert, money, conversion
artiss-currency-converter/artiss-currency-converter.php Passed 13 tests
The main PHP file in "Open Currency Converter" ver. 1.4.6 adds more information about the plugin and also serves as the entry point for this plugin
53 characters long description:
Convert currencies within the text of a post or page.
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 plugin473 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 248 | 325 | 473 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
178 compressed PNG files occupy 0.06MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/flags/dop.png | 0.35KB | 0.67KB | 0.00% |
images/flags/imp.png | 0.42KB | 0.60KB | 0.00% |
images/flags/rsd.png | 0.35KB | 0.58KB | 0.00% |
images/flags/yer.png | 0.28KB | 0.58KB | 0.00% |
images/flags/ttd.png | 0.45KB | 0.68KB | 0.00% |