Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.64MB] [CPU: ▼2.76ms] Passed 4 tests
An overview of server-side resources used by SCM - Smart Currency Manager - Premium Variant for WcVendor
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.27 | 39.40 ▼2.60 |
Dashboard /wp-admin | 4.06 ▲0.76 | 53.76 ▼4.63 |
Posts /wp-admin/edit.php | 4.17 ▲0.82 | 56.51 ▲2.04 |
Add New Post /wp-admin/post-new.php | 6.66 ▲0.78 | 96.75 ▼5.86 |
Media Library /wp-admin/upload.php | 3.99 ▲0.76 | 50.10 ▲15.09 |
Server storage [IO: ▲1.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 100 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
scd_wcv_first_install_date |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
SCM - Smart Currency Manager - Premium Variant for WcVendor: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,881 ▲110 | 13.90 ▼0.48 | 13.52 ▲11.59 | 41.68 ▼2.13 |
Dashboard /wp-admin | 2,199 ▲28 | 5.57 ▼0.01 | 86.29 ▼10.13 | 44.47 ▼1.35 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 2.02 ▲0.07 | 39.89 ▲3.40 | 42.77 ▲7.25 |
Add New Post /wp-admin/post-new.php | 1,603 ▲75 | 22.42 ▼0.88 | 682.14 ▲36.33 | 39.98 ▼19.02 |
Media Library /wp-admin/upload.php | 1,407 ▲16 | 4.25 ▲0.09 | 116.12 ▲11.06 | 49.71 ▲6.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- scd_wcv_first_install_date
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/scd-smart-currency-detector-premium-variant-for-wcvendor/templates/scd_wcvendors_pro_product_variation.PHP
- 27× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/scd-smart-currency-detector-premium-variant-for-wcvendor/templates/wcv-reports.php:16
- > PHP Fatal error
Uncaught Error: Class 'Puc_v4p6_DebugBar_Panel' not found in wp-content/plugins/scd-smart-currency-detector-premium-variant-for-wcvendor/plugin-update-checker/Puc/v4p6/DebugBar/ThemePanel.php:5
- > PHP Fatal error
Uncaught Error: Class 'Puc_v4p6_Plugin_UpdateChecker' not found in wp-content/plugins/scd-smart-currency-detector-premium-variant-for-wcvendor/plugin-update-checker/Puc/v4p6/Vcs/PluginUpdateChecker.php:4
- > PHP Fatal error
Uncaught Error: Class 'Puc_v4p6_DebugBar_Extension' not found in wp-content/plugins/scd-smart-currency-detector-premium-variant-for-wcvendor/plugin-update-checker/Puc/v4p6/DebugBar/PluginExtension.php:4
- > PHP Fatal error
Uncaught Error: Class 'Puc_v4p6_Vcs_Api' not found in wp-content/plugins/scd-smart-currency-detector-premium-variant-for-wcvendor/plugin-update-checker/Puc/v4p6/Vcs/GitLabApi.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/scd-smart-currency-detector-premium-variant-for-wcvendor/scd_pro_currencies.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/scd-smart-currency-detector-premium-variant-for-wcvendor/scd_update_checker_wcv.php:14
- > PHP Fatal error
Uncaught Error: Class 'Puc_v4p6_Metadata' not found in wp-content/plugins/scd-smart-currency-detector-premium-variant-for-wcvendor/plugin-update-checker/Puc/v4p6/Plugin/Info.php:11
- > PHP Fatal error
Uncaught Error: Class 'Puc_v4p6_Metadata' not found in wp-content/plugins/scd-smart-currency-detector-premium-variant-for-wcvendor/plugin-update-checker/Puc/v4p6/Update.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/scd-smart-currency-detector-premium-variant-for-wcvendor/templates/scd_widget.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (General settings), #2 (Updates of rates), #3 (Vendor dashboard choose currency setting), #4 (WC Vendor Home vendor Dashboard), #5 (WC Vendor orders), #6 (Admin dashboard), #7 (Mobile widget), #8 (Shipping), #9 (Currency settings)
- Tags: There are too many tags (12 tag instead of maximum 10)
scd-smart-currency-detector-premium-variant-for-wcvendor/index.php 92% from 13 tests
The primary PHP file in "SCM - Smart Currency Manager - Premium Variant for WcVendor" version 4.8.0.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("scd-smart-currency-detector-premium-variant-for-wcvendor.php" instead of "index.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
No dangerous file extensions were detected8,334 lines of code in 74 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 50 | 1,911 | 2,443 | 7,242 |
PO File | 13 | 71 | 74 | 415 |
JavaScript | 4 | 61 | 28 | 300 |
Markdown | 2 | 88 | 0 | 246 |
JSON | 4 | 8 | 0 | 76 |
CSS | 1 | 14 | 1 | 55 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 23.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 159.00 |
Average method complexity | 3.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 35 | |
▷ Abstract classes | 5 | 14.29% |
▷ Concrete classes | 30 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 398 | |
▷ Static methods | 24 | 6.03% |
▷ Public methods | 230 | 57.79% |
▷ Protected methods | 156 | 39.20% |
▷ Private methods | 12 | 3.02% |
Functions | 73 | |
▷ Named functions | 64 | 87.67% |
▷ Anonymous functions | 9 | 12.33% |
Constants | 5 | |
▷ Global constants | 2 | 40.00% |
▷ Class constants | 3 | 60.00% |
▷ Public constants | 3 | 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
3 PNG files occupy 0.45MB with 0.24MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/flags1.png | 380.75KB | 97.67KB | ▼ 74.35% |
images/scd_remove.png | 2.04KB | 1.55KB | ▼ 24.26% |
images/flags.png | 74.75KB | 25.52KB | ▼ 65.86% |