Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼1.93MB] [CPU: ▼47.60ms] Passed 4 tests
Analyzing server-side resources used by Simple Affordability Calculator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 4.21 ▼32.44 |
Dashboard /wp-admin | 2.08 ▼1.22 | 5.33 ▼39.82 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 5.57 ▼39.62 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 6.73 ▼78.50 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 5.22 ▼26.54 |
Server storage [IO: ▲0.78MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Simple Affordability Calculator
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,934 ▲188 | 13.72 ▼0.59 | 5.04 ▲3.12 | 38.24 ▼5.25 |
Dashboard /wp-admin | 2,223 ▲31 | 5.89 ▲0.95 | 101.04 ▼12.80 | 38.32 ▼7.12 |
Posts /wp-admin/edit.php | 2,106 ▲14 | 2.07 ▲0.01 | 39.50 ▲5.32 | 35.01 ▲3.13 |
Add New Post /wp-admin/post-new.php | 1,529 ▲10 | 18.18 ▼5.16 | 617.52 ▼67.40 | 47.89 ▼4.39 |
Media Library /wp-admin/upload.php | 1,405 ▲17 | 4.17 ▼0.04 | 95.05 ▼7.78 | 42.01 ▼3.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the affordability-css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/simple-mortgage-and-affordability-calculator/mortgage-calc.php
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Undefined index: years_simple_mortgage_calc in wp-content/plugins/simple-mortgage-and-affordability-calculator/mortgage-calc.php on line 5
- > PHP Warning
Division by zero in wp-content/plugins/simple-mortgage-and-affordability-calculator/mortgage-calc.php on line 11
- > PHP Notice
Undefined index: monthly_mortgage_simple_mortgage_calc in wp-content/plugins/simple-mortgage-and-affordability-calculator/mortgage-calc.php on line 3
- > PHP Notice
Undefined index: rate_simple_mortgage_calc in wp-content/plugins/simple-mortgage-and-affordability-calculator/mortgage-calc.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-mortgage-and-affordability-calculator/affordability-calc.php:94
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: mortgage, affordability, affordability calculator, mortgage widget, affordability widget...
simple-mortgage-and-affordability-calculator/affordability-calc.php 85% from 13 tests
"Simple Affordability Calculator" version 1.11's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 280 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-mortgage-and-affordability-calculator.php" instead of "affordability-calc.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
There were no executable files found in this plugin1,096 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 135 | 109 | 957 |
PHP | 2 | 38 | 31 | 106 |
CSS | 1 | 7 | 1 | 33 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
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 | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.73MB with 0.41MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
shortcode.png | 202.13KB | 90.91KB | ▼ 55.02% |
screenshot-1.png | 202.13KB | 90.91KB | ▼ 55.02% |
widget.png | 160.61KB | 75.65KB | ▼ 52.90% |
logo.png | 24.63KB | 9.39KB | ▼ 61.89% |
screenshot-2.png | 160.61KB | 75.65KB | ▼ 52.90% |