Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/moldavian-currency-widget/mdl-currency.php+253
Function create_function() is deprecated
Server metrics [RAM: ▼1.97MB] [CPU: ▼58.63ms] Passed 4 tests
This is a short check of server-side resources used by Moldavian Currency Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.28 ▼35.88 |
Dashboard /wp-admin | 2.05 ▼1.30 | 5.33 ▼56.05 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.00 ▼44.18 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.21 ▼98.42 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.24 ▼28.81 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_mdl-currency |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Moldavian Currency Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,888 ▲142 | 13.91 ▼0.66 | 8.10 ▲6.38 | 39.55 ▼4.08 |
Dashboard /wp-admin | 2,206 ▲29 | 4.82 ▼0.75 | 88.79 ▼2.31 | 38.32 ▼2.31 |
Posts /wp-admin/edit.php | 2,114 ▲11 | 2.25 ▲0.22 | 41.09 ▲0.04 | 37.96 ▲1.53 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.13 ▼0.30 | 654.42 ▼5.15 | 58.10 ▼4.31 |
Media Library /wp-admin/upload.php | 1,414 ▲14 | 4.48 ▲0.33 | 110.88 ▲3.87 | 47.48 ▼0.78 |
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
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/moldavian-currency-widget/mdl-currency.php+253
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- widget_mdl-currency
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% 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 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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/moldavian-currency-widget/views/widget.php
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/moldavian-currency-widget/views/widget.php on line 9
- > PHP Notice
Undefined variable: mdl_title_id in wp-content/plugins/moldavian-currency-widget/views/admin.php on line 4
- > PHP Notice
Undefined variable: currencies in wp-content/plugins/moldavian-currency-widget/views/widget.php on line 9
- > PHP Notice
Undefined variable: title in wp-content/plugins/moldavian-currency-widget/views/widget.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/moldavian-currency-widget/views/admin.php:4
- > PHP Warning
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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Requires php: Version format is invalid
moldavian-currency-widget/mdl-currency.php 85% from 13 tests
The entry point to "Moldavian Currency Widget" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("moldavian-currency-widget.php" instead of "mdl-currency.php")
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 plugin5,127 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 2 | 22 | 4,564 |
SVG | 1 | 0 | 0 | 288 |
PHP | 3 | 72 | 91 | 143 |
PO File | 3 | 15 | 15 | 81 |
JavaScript | 5 | 21 | 33 | 48 |
LESS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 0 | 0.00% |
▷ Public methods | 10 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 9.09% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin