Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼7.17ms] 75% from 4 tests
Analyzing server-side resources used by Myanmar Currency Exchange Rates
The following require your attention
- CPU: You should keep total CPU usage under 500.00ms (currently 2,238.06ms on /wp-admin/options-general.php?page=mwd_mcer)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 34.47 ▼7.56 |
Dashboard /wp-admin | 3.44 ▲0.09 | 43.78 ▼21.14 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 48.09 ▲1.86 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 91.58 ▼1.83 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 34.38 ▲2.31 |
Myanmar Currency Exchange Rates /wp-admin/options-general.php?page=mwd_mcer | 3.36 | 2,238.06 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_mfr |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Myanmar Currency Exchange Rates
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 13.54 ▼0.81 | 1.75 ▼0.63 | 39.39 ▼2.35 |
Dashboard /wp-admin | 2,212 ▲24 | 4.87 ▼1.15 | 108.05 ▲1.96 | 38.85 ▼4.96 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.00 ▲0.00 | 41.41 ▲3.80 | 34.75 ▼0.71 |
Add New Post /wp-admin/post-new.php | 1,542 ▼0 | 18.59 ▲0.15 | 605.82 ▼15.53 | 54.27 ▲2.11 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.19 ▼0.15 | 92.42 ▼7.06 | 40.95 ▼3.84 |
Myanmar Currency Exchange Rates /wp-admin/options-general.php?page=mwd_mcer | 1,132 | 1.82 | 26.25 | 36.27 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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 require attention:
- Tested up to: Invalid version format
myanmar-currency-exchange-rates/myanmar-exchange-rates.php 92% from 13 tests
The main PHP file in "Myanmar Currency Exchange Rates" ver. 2.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("myanmar-currency-exchange-rates.php" instead of "myanmar-exchange-rates.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
There were no executable files found in this plugin754 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 185 | 679 | 681 |
Markdown | 1 | 15 | 0 | 44 |
JavaScript | 1 | 5 | 3 | 29 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 12.83 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 1 | 16.67% |
Methods | 41 | |
▷ Static methods | 2 | 4.88% |
▷ Public methods | 35 | 85.37% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 14.63% |
Functions | 7 | |
▷ Named functions | 7 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin