Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼2.33ms] Passed 4 tests
This is a short check of server-side resources used by Mortgage Calculator
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.15 | 51.51 ▲6.79 |
Dashboard /wp-admin | 3.69 ▲0.13 | 56.97 ▼1.07 |
Posts /wp-admin/edit.php | 3.81 ▲0.13 | 54.32 ▲2.53 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.15 | 86.54 ▼13.67 |
Media Library /wp-admin/upload.php | 3.62 ▲0.13 | 41.62 ▲2.91 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Mortgage Calculator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,915 ▲154 | 14.22 ▼0.07 | 23.48 ▲21.65 | 45.71 ▲4.43 |
Dashboard /wp-admin | 2,233 ▲56 | 5.83 ▲0.15 | 100.67 ▲0.17 | 41.67 ▼6.22 |
Posts /wp-admin/edit.php | 2,143 ▲46 | 2.48 ▲0.48 | 40.09 ▲3.94 | 32.75 ▼4.75 |
Add New Post /wp-admin/post-new.php | 1,557 ▲12 | 18.00 ▼5.17 | 707.01 ▼4.29 | 37.58 ▼18.69 |
Media Library /wp-admin/upload.php | 1,438 ▲38 | 4.49 ▲0.28 | 106.28 ▼5.71 | 48.83 ▼0.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/mortgagea-calculator/mortgage-calculator.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/mortgagea-calculator/inc/wmc_fronted.php:232
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mortgagea-calculator/inc/wmc_backend.php:2
- > 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 87% from 29 tests
readme.txt 88% 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: These screenshots lack descriptions #1, #2, #3 in mortgagea-calculator/assets to your readme.txt
- Contributors: Plugin contributors field is missing
mortgagea-calculator/mortgage-calculator.php 85% from 13 tests
Analyzing the main PHP file in "Mortgage Calculator" version 1.0
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("mortgagea-calculator.php" instead of "mortgage-calculator.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,656 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 103 | 257 | 716 |
PHP | 3 | 40 | 11 | 681 |
CSS | 2 | 3 | 4 | 259 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.04 |
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 | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
No PNG files were detected