Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- This plugin did not install gracefully
- > User deprecated in wp-includes/functions.php+5453
Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.
Server metrics [RAM: ▲0.78MB] [CPU: ▼2.80ms] Passed 4 tests
A check of server-side resources used by SCM - Smart Currency Manager
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.21 ▲0.74 | 46.74 ▲6.50 |
Dashboard /wp-admin | 4.15 ▲0.80 | 53.67 ▼4.66 |
Posts /wp-admin/edit.php | 4.20 ▲0.84 | 53.88 ▲0.65 |
Add New Post /wp-admin/post-new.php | 6.67 ▲0.78 | 85.60 ▼13.68 |
Media Library /wp-admin/upload.php | 4.01 ▲0.78 | 42.26 ▲6.64 |
Server storage [IO: ▲1.75MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 226 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
scd_first_install_date |
scd_activation_notif_sent |
Browser metrics Passed 4 tests
An overview of browser requirements for SCM - Smart Currency Manager
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲46 | 14.36 ▼0.24 | 1.68 ▲0.11 | 44.84 ▼0.55 |
Dashboard /wp-admin | 2,213 ▲36 | 5.50 ▼0.04 | 83.45 ▼11.25 | 41.47 ▼3.38 |
Posts /wp-admin/edit.php | 2,122 ▲22 | 2.04 ▲0.05 | 35.70 ▼5.19 | 33.82 ▼7.20 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.24 ▲0.32 | 620.87 ▲23.35 | 48.49 ▼11.97 |
Media Library /wp-admin/upload.php | 1,415 ▲18 | 4.19 ▼0.04 | 103.54 ▼0.86 | 51.74 ▲9.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5453
Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.
- Zombie WordPress options were found after uninstall: 9 options
- widget_recent-comments
- scd_deactivation_notif_sent
- db_upgraded
- widget_theysaidso_widget
- scd_activation_notif_sent
- theysaidso_admin_options
- scd_first_install_date
- can_compress_scripts
- widget_recent-posts
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scd-smart-currency-detector/scd_renders.php:986
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/scd-smart-currency-detector/index.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/scd-smart-currency-detector/scd_widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/scd-smart-currency-detector/scd_settings.php:426
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/scd-smart-currency-detector/templates/scd_widget.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scd-smart-currency-detector/scd_inofs.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/scd-smart-currency-detector/templates/scd_vertical_flag.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots need descriptions #1, #10, #11, #12, #2, #3, #4, #5, #6, #7, #8, #9 in scd-smart-currency-detector/assets to your readme.txt
scd-smart-currency-detector/index.php 85% from 13 tests
The main PHP file in "SCM - Smart Currency Manager" ver. 4.7.10.6 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("scd-smart-currency-detector.php" instead of "index.php")
- Text Domain: Please use dashes and lowercase characters for text domains
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
Success! There were no dangerous files found in this plugin15,895 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 17 | 1,139 | 1,313 | 8,546 |
PHP | 15 | 1,567 | 1,085 | 5,550 |
CSS | 6 | 129 | 45 | 1,591 |
JSON | 1 | 0 | 0 | 179 |
Markdown | 1 | 16 | 0 | 29 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 172 | |
▷ Named functions | 171 | 99.42% |
▷ Anonymous functions | 1 | 0.58% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
177 PNG files occupy 0.56MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/chosen-sprite@2x.png | 0.85KB | 0.83KB | ▼ 3.10% |
images/flags/AFN.png | 0.71KB | 0.32KB | ▼ 55.13% |
images/flags/FJD.png | 0.84KB | 0.65KB | ▼ 23.17% |
images/flags/ISK.png | 0.43KB | 0.24KB | ▼ 44.16% |
images/scd_remove.png | 2.04KB | 1.55KB | ▼ 24.26% |