Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.21ms] Passed 4 tests
An overview of server-side resources used by Euro FxRef Currency Converter
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.99 ▼6.07 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.88 ▼1.57 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.19 ▼2.39 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 96.56 ▼4.14 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.49 ▼4.25 |
Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Euro FxRef Currency Converter
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.28 ▼0.04 | 1.88 ▲0.13 | 42.64 ▼1.06 |
Dashboard /wp-admin | 2,189 ▲12 | 5.58 ▼0.11 | 87.79 ▼0.57 | 39.51 ▼7.52 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.01 ▼0.02 | 39.54 ▼1.54 | 35.31 ▼3.17 |
Add New Post /wp-admin/post-new.php | 1,595 ▲69 | 17.71 ▲0.19 | 623.79 ▼56.61 | 58.13 ▲6.40 |
Media Library /wp-admin/upload.php | 1,391 ▼12 | 4.24 ▼0.01 | 101.08 ▲5.19 | 42.03 ▼2.65 |
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 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/euro-fxref-currency-converter/eurofxref.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: foreign exchange conversion, converter, fx rate converter, currency, ecb...
euro-fxref-currency-converter/eurofxref.php 85% from 13 tests
The principal PHP file in "Euro FxRef Currency Converter" v. 2.0.2 is loaded by WordPress automatically on each request
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 275 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("euro-fxref-currency-converter.php" instead of "eurofxref.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin264 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 50 | 66 | 264 |
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.57 |
Average class complexity | 45.00 |
▷ Minimum class complexity | 45.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.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 | 11 | |
▷ Static methods | 4 | 36.36% |
▷ Public methods | 9 | 81.82% |
▷ Protected methods | 1 | 9.09% |
▷ Private methods | 1 | 9.09% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected