Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/currencyr/libs/class-currencyr.php+101
Function create_function() is deprecated
Server metrics [RAM: ▼1.94MB] [CPU: ▼50.97ms] Passed 4 tests
Server-side resources used by Currencyr
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.05 ▼1.41 | 5.12 ▼36.18 |
Dashboard /wp-admin | 2.07 ▼1.24 | 5.93 ▼41.56 |
Posts /wp-admin/edit.php | 2.07 ▼1.29 | 7.98 ▼38.75 |
Add New Post /wp-admin/post-new.php | 2.07 ▼3.82 | 6.53 ▼87.39 |
Media Library /wp-admin/upload.php | 2.07 ▼1.16 | 6.94 ▼26.61 |
Server storage [IO: ▲0.60MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_currencyr |
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_currencyr |
currencyr_db_version |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Currencyr
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,160 ▲425 | 14.31 ▼0.33 | 14.19 ▲12.39 | 58.10 ▲10.28 |
Dashboard /wp-admin | 2,226 ▲38 | 4.85 ▼1.04 | 104.34 ▼10.42 | 42.82 ▼4.17 |
Posts /wp-admin/edit.php | 2,106 ▲17 | 2.05 ▲0.02 | 34.15 ▼2.01 | 34.07 ▼5.44 |
Add New Post /wp-admin/post-new.php | 1,624 ▲82 | 18.14 ▼0.08 | 660.53 ▲30.74 | 56.59 ▼3.41 |
Media Library /wp-admin/upload.php | 1,408 ▲17 | 4.23 ▼0.08 | 95.07 ▼5.69 | 44.58 ▼2.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/currencyr/libs/class-currencyr.php+101
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_currencyr
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
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
Even though no errors were found, 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 take a closer look at the following
- 10× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/currencyr/currencyr.php:14
- > PHP Fatal error
Uncaught Error: Class 'Currencyr_Provider' not found in wp-content/plugins/currencyr/libs/class-currencyr-provider-google.php:22
- > PHP Fatal error
Uncaught Error: Class 'Currencyr_Provider' not found in wp-content/plugins/currencyr/libs/class-currencyr-provider-foxrate.php:22
- > PHP Fatal error
Uncaught Error: Class 'Currencyr_Provider' not found in wp-content/plugins/currencyr/libs/class-currencyr-provider-yahoo.php:22
- > PHP Fatal error
Uncaught Error: Class 'Currencyr_Provider' not found in wp-content/plugins/currencyr/libs/class-currencyr-provider-ecb.php:22
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/currencyr/libs/class-currencyr-widget.php:22
- > PHP Fatal error
Uncaught Error: Class 'Currencyr_Provider' not found in wp-content/plugins/currencyr/libs/class-currencyr-provider-openexchangerates.php:22
- > PHP Warning
Use of undefined constant CURRENCYR_LIBS - assumed 'CURRENCYR_LIBS' (this will throw an Error in a future version of PHP) in wp-content/plugins/currencyr/libs/class-currencyr.php on line 15
- > PHP Fatal error
require_once(): Failed opening required 'CURRENCYR_LIBS/abstract-currencyr-provider.php' (include_path='.:/usr/share/php') in wp-content/plugins/currencyr/libs/class-currencyr.php on line 15
- > PHP Warning
require_once(CURRENCYR_LIBS/abstract-currencyr-provider.php): failed to open stream: No such file or directory in wp-content/plugins/currencyr/libs/class-currencyr.php on line 15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Converter tooltip), #2 (The settings page), #3 (The widget)
currencyr/currencyr.php 92% from 13 tests
The primary PHP file in "Currencyr" version 1.0.4 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 343 characters long)
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Almost there! Just fix the following issues
- Do not distribute dangerous files with your plugin
- .bin - Binary Executable in Windows, macOS, Linux
- ☣ wp-content/plugins/currencyr/libs/ip2c/ip-to-country.bin
- .bin - Binary Executable in Windows, macOS, Linux
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 288 | 785 | 2,428 |
CSS | 3 | 7 | 39 | 289 |
JavaScript | 4 | 25 | 70 | 146 |
PO File | 1 | 35 | 42 | 89 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 19.30 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 83.00 |
Average method complexity | 3.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 1 | 10.00% |
▷ Concrete classes | 9 | 90.00% |
▷ Final classes | 0 | 0.00% |
Methods | 82 | |
▷ Static methods | 12 | 14.63% |
▷ Public methods | 66 | 80.49% |
▷ Protected methods | 16 | 19.51% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 15 | |
▷ Global constants | 7 | 46.67% |
▷ Class constants | 8 | 53.33% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/menuicon-sprite-2x.png | 4.08KB | 2.51KB | ▼ 38.47% |
assets/images/menuicon-sprite.png | 1.56KB | 1.43KB | ▼ 7.97% |
assets/images/pageicon32-2x.png | 4.40KB | 3.10KB | ▼ 29.59% |
assets/css/themes/light/sprite.png | 1.71KB | 0.71KB | ▼ 58.65% |
assets/images/pageicon32.png | 1.83KB | 1.64KB | ▼ 10.49% |