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
Installer ran successfully
Server metrics [RAM: ▼0.13MB] [CPU: ▼15.65ms] Passed 4 tests
Analyzing server-side resources used by Mortgage Rates
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▼0.03 | 38.29 ▼27.78 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.96 ▼10.76 |
Posts /wp-admin/edit.php | 3.36 ▼0.49 | 47.00 ▼8.30 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.70 ▼15.76 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.33 ▼2.32 |
Server storage [IO: ▲0.04MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Mortgage Rates: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.24 ▼1.14 | 4.26 ▲2.30 | 40.96 ▼3.91 |
Dashboard /wp-admin | 2,206 ▲15 | 4.86 ▼0.20 | 109.18 ▲4.90 | 38.22 ▼4.16 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▼0.01 | 38.43 ▼1.67 | 34.48 ▼1.11 |
Add New Post /wp-admin/post-new.php | 1,534 ▲6 | 23.00 ▲0.08 | 589.94 ▼32.94 | 49.22 ▼0.75 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.23 ▲0.15 | 92.62 ▼7.03 | 41.85 ▼0.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/mortgage-rates/mlcalc_rates.php:38
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/mortgage-rates/form-narrow.inc.php on line 1
- > PHP Notice
Undefined variable: SECTION in wp-content/plugins/mortgage-rates/form-narrow.inc.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/mortgage-rates/form-narrow.inc.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/mortgage-rates/form-wide.inc.php:1
- > PHP Notice
Undefined variable: SECTION in wp-content/plugins/mortgage-rates/form-wide.inc.php on line 1
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/mortgage-rates/form-wide.inc.php on line 1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
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
These attributes need to be fixed:
- Screenshots: Add descriptions for screenshots #1, #2, #3 in mortgage-rates/assets to your readme.txt
mortgage-rates/mlcalc_rates.php 92% from 13 tests
The primary PHP file in "Mortgage Rates" version 1.3.11 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mortgage-rates.php" instead of "mlcalc_rates.php")
Code Analysis Passed 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 detected225 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 27 | 61 | 112 |
JavaScript | 1 | 16 | 36 | 61 |
CSS | 2 | 9 | 0 | 52 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
7 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/right-bg.png | 0.20KB | 0.12KB | ▼ 40.69% |
images/left-bg.png | 0.20KB | 0.12KB | ▼ 41.26% |
images/bottom-small.png | 0.65KB | 0.54KB | ▼ 17.10% |
images/top-small.png | 0.54KB | 0.53KB | ▼ 1.80% |
images/arrows.png | 0.12KB | 0.12KB | ▼ 1.60% |