Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.68MB] [CPU: ▼0.96ms] Passed 4 tests
Server-side resources used by Easy Currency Converter Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.06 ▲0.60 | 45.96 ▲2.97 |
Dashboard /wp-admin | 4.03 ▲0.69 | 60.76 ▼7.19 |
Posts /wp-admin/edit.php | 4.08 ▲0.73 | 58.96 ▲8.02 |
Add New Post /wp-admin/post-new.php | 6.68 ▲0.80 | 91.84 ▼5.92 |
Media Library /wp-admin/upload.php | 3.96 ▲0.73 | 45.10 ▲6.30 |
Add New /wp-admin/post-new.php?post_type=ecc-converters | 5.42 | 56.93 |
All Converters /wp-admin/edit.php?post_type=ecc-converters | 3.96 | 43.06 |
Server storage [IO: ▲5.10MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Please fix the following
- You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/easy-currency-converter/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 255 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Easy Currency Converter Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,877 ▲116 | 13.20 ▼1.55 | 5.30 ▲3.62 | 44.51 ▲1.31 |
Dashboard /wp-admin | 2,251 ▲48 | 4.91 ▼1.07 | 100.14 ▼19.01 | 86.59 ▲39.85 |
Posts /wp-admin/edit.php | 2,130 ▲27 | 1.97 ▼0.06 | 35.87 ▲0.41 | 34.61 ▲2.53 |
Add New Post /wp-admin/post-new.php | 6,235 ▲4,709 | 19.02 ▲1.48 | 962.37 ▲277.57 | 40.92 ▼11.29 |
Media Library /wp-admin/upload.php | 1,424 ▲24 | 4.29 ▲0.05 | 104.44 ▼1.10 | 73.83 ▲25.98 |
Add New /wp-admin/post-new.php?post_type=ecc-converters | 5,798 | 2.91 | 63.82 | 77.66 |
All Converters /wp-admin/edit.php?post_type=ecc-converters | 1,114 | 1.93 | 31.70 | 34.76 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/edit.php?post_type=ecc-converters
- > Warning in wp-content/plugins/easy-currency-converter/inc/posttypes/ecc-converter.php+61
Use of undefined constant FF_PLG_NAME - assumed 'FF_PLG_NAME' (this will throw an Error in a future version of PHP)
SRP 50% 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
Please fix the following items
- 123× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
Use of undefined constant VP_PUBLIC_URL - assumed 'VP_PUBLIC_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/easy-currency-converter/framework/config/dependencies.php on line 172
- > PHP Notice
Undefined variable: is_compact in wp-content/plugins/easy-currency-converter/framework/views/control/codeeditor.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'VP_Control_FieldMulti' not found in wp-content/plugins/easy-currency-converter/framework/classes/control/field/fontawesome.php:3
- > PHP Fatal error
Uncaught Error: Class 'VP_View' not found in wp-content/plugins/easy-currency-converter/framework/views/control/date.php:1
- > PHP Warning
Use of undefined constant VP_PUBLIC_URL - assumed 'VP_PUBLIC_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/easy-currency-converter/framework/config/dependencies.php on line 100
- > PHP Fatal error
Uncaught Error: Class 'VP_Security' not found in wp-content/plugins/easy-currency-converter/framework/data/sources.php:97
- > PHP Notice
Undefined variable: type in wp-content/plugins/easy-currency-converter/framework/views/control/html.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'VP_Util_Text' not found in wp-content/plugins/easy-currency-converter/framework/views/option/section.php:1
- > PHP Fatal error
Uncaught Error: Class 'VP_Control_Field' not found in wp-content/plugins/easy-currency-converter/framework/classes/control/field/codeeditor.php:3
- > PHP Fatal error
Uncaught Error: Class 'VP_FileSystem' not found in wp-content/plugins/easy-currency-converter/framework/classes/metabox/alchemy.php:14
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/post-new.php?post_type=ecc-converters
- > Javascript (severe) in unknown
/wp-content/plugins/easy-currency-converter/framework/public/js/vendor/jquery.tipsy.js?ver=1.0.0a 179:24 Uncaught TypeError: this[binder] is not a function
- > GET request to /wp-admin/post-new.php?post_type=ecc-converters
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: vp.init_ace_editor is not a function" "TypeError: vp.init_ace_editor is not a function\n at vp.init_controls (/wp-content/plugins/easy-currency-converter/framework/public/js/shared.min.js?ver=1.1:1:18433)\n at HTMLDivElement.\u003Canonymous> (/wp-content/plugins/easy-currency-converter/framework/public/js/metabox.min.js?ver=6.3.1:1:975)\n at Function.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:3129)\n at e.\u003Ccomputed>.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:1594)\n at e (/wp-content/plugins/easy-currency-converter/framework/public/js/metabox.min.js?ver=6.3.1:1:915)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/easy-currency-converter/framework/public/js/metabox.min.js?ver=6.3.1:1:2532)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/post-new.php?post_type=ecc-converters
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: vp.init_ace_editor is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: currency, converter, currency value, currency converter, real time converter
easy-currency-converter/ecc-easy-currency-converter.php 85% from 13 tests
This is the main PHP file of "Easy Currency Converter Plugin" version 1.5.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 270 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("easy-currency-converter.php" instead of "ecc-easy-currency-converter.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected40,180 lines of code in 200 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 5 | 0 | 0 | 13,061 |
JavaScript | 59 | 1,546 | 1,770 | 11,630 |
PHP | 100 | 2,149 | 2,491 | 9,355 |
CSS | 21 | 178 | 217 | 3,597 |
Vuejs Component | 5 | 33 | 5 | 1,509 |
PO File | 1 | 205 | 298 | 453 |
SVG | 1 | 0 | 0 | 414 |
Markdown | 3 | 39 | 0 | 106 |
Sass | 3 | 3 | 1 | 38 |
HTML | 2 | 0 | 1 | 17 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 102)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 21.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 272.00 |
Average method complexity | 3.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 102.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 57 | |
▷ Abstract classes | 4 | 7.02% |
▷ Concrete classes | 53 | 92.98% |
▷ Final classes | 0 | 0.00% |
Methods | 508 | |
▷ Static methods | 89 | 17.52% |
▷ Public methods | 475 | 93.50% |
▷ Protected methods | 19 | 3.74% |
▷ Private methods | 14 | 2.76% |
Functions | 42 | |
▷ Named functions | 42 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 40 | |
▷ Global constants | 37 | 92.50% |
▷ Class constants | 3 | 7.50% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
25 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
framework/public/css/vendor/jqueryui/themes/smoothness/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
framework/public/img/vp_shortcode_icon.png | 1.13KB | 0.18KB | ▼ 84.22% |
framework/public/css/vendor/jqueryui/themes/smoothness/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
framework/public/img/bootstrap-colorpicker/hue.png | 2.90KB | 0.50KB | ▼ 82.71% |
framework/public/css/vendor/jqueryui/themes/smoothness/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |