Benchmarks
Plugin footprint 83% 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.08MB] [CPU: ▼2.76ms] Passed 4 tests
This is a short check of server-side resources used by Mortgage Calculator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 35.52 ▼6.40 |
Dashboard /wp-admin | 3.45 ▲0.15 | 48.15 ▼5.81 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 51.32 ▲2.44 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 89.93 ▼1.26 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 40.46 ▲6.07 |
Mortgage Calculator /wp-admin/options-general.php?page=mc_setting_page | 3.29 | 35.49 |
Server storage [IO: ▲0.13MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
mc_settings |
widget_mortgage-calculator |
widget_recent-posts |
misc_settings |
mc_defaults |
Browser metrics Passed 4 tests
A check of browser resources used by Mortgage Calculator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,046 ▲284 | 15.17 ▲0.77 | 6.51 ▲4.89 | 41.54 ▼6.09 |
Dashboard /wp-admin | 2,356 ▲178 | 6.33 ▲0.56 | 117.13 ▲5.58 | 40.07 ▼3.69 |
Posts /wp-admin/edit.php | 2,287 ▲190 | 3.48 ▲1.46 | 56.77 ▲18.07 | 37.00 ▲1.13 |
Add New Post /wp-admin/post-new.php | 1,541 ▲15 | 23.47 ▲0.29 | 634.16 ▼54.39 | 38.04 ▼19.93 |
Media Library /wp-admin/upload.php | 1,415 ▲18 | 4.28 ▲0.06 | 83.68 ▼18.69 | 43.08 ▼2.46 |
Mortgage Calculator /wp-admin/options-general.php?page=mc_setting_page | 1,242 | 3.45 | 47.53 | 26.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 10 options
- widget_recent-posts
- widget_theysaidso_widget
- mc_settings
- misc_settings
- can_compress_scripts
- widget_recent-comments
- widget_mortgage-calculator
- db_upgraded
- theysaidso_admin_options
- mc_defaults
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
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/mortgage-calculator/mc-layout.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots lack descriptions #2, #3, #4, #5 in mortgage-calculator/assets to your readme.txt
mortgage-calculator/mortgage-calculator.php 92% from 13 tests
"Mortgage Calculator" version 1.1.12's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,698 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 111 | 272 | 761 |
PO File | 6 | 287 | 344 | 689 |
JavaScript | 2 | 57 | 37 | 170 |
CSS | 1 | 3 | 0 | 78 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 33.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 2.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 40 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/chart_icon.png | 0.80KB | 0.15KB | ▼ 81.14% |