Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼0.03ms] Passed 4 tests
Analyzing server-side resources used by Mortgage Calculator Plus
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 41.38 ▼0.49 |
Dashboard /wp-admin | 3.43 ▲0.13 | 51.06 ▲1.97 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 58.10 ▲6.23 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 94.05 ▼3.63 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 38.85 ▲2.05 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_mcplus_widget |
can_compress_scripts |
widget_recent-comments |
mc_plus_settings |
Browser metrics Passed 4 tests
A check of browser resources used by Mortgage Calculator Plus
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,911 ▲150 | 13.54 ▼0.88 | 8.76 ▲7.04 | 40.40 ▼5.09 |
Dashboard /wp-admin | 2,226 ▲20 | 5.88 ▼0.02 | 107.64 ▼0.36 | 41.63 ▲1.17 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 2.06 ▲0.05 | 41.10 ▼0.96 | 41.32 ▲4.52 |
Add New Post /wp-admin/post-new.php | 1,371 ▼174 | 16.65 ▼6.37 | 518.45 ▼164.23 | 48.73 ▼7.08 |
Media Library /wp-admin/upload.php | 1,411 ▲14 | 4.26 ▲0.09 | 100.70 ▼11.75 | 41.26 ▼9.80 |
Mortgage Calculator Plus /wp-admin/mc-plus.php | 26 | 0.44 | 0.07 | 16.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 8 options
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- mc_plus_settings
- db_upgraded
- widget_mcplus_widget
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/mortgage-calculator-plus/inc/widget.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mortgage-calculator-plus/mc-plus.php:25
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
- > GET request to /wp-admin/mc-plus.php
- > Network (severe)
wp-admin/mc-plus.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (The mortgage calculator can be used as a widget to be placed easily anywhere on your website.), #2 (The mortgage calculator can also be used as a shortcode.), #3 (Fields and default values are customizable.)
mortgage-calculator-plus/mc-plus.php 92% from 13 tests
"Mortgage Calculator Plus" version 1.38's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mortgage-calculator-plus.php" instead of "mc-plus.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected684 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 88 | 45 | 566 |
CSS | 1 | 16 | 0 | 76 |
JavaScript | 1 | 3 | 1 | 42 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 11.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/mcs.png | 0.91KB | 0.93KB | 0.00% |