Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.31MB] [CPU: ▼3.96ms] Passed 4 tests
This is a short check of server-side resources used by Responsive Mortgage Calculator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.33 | 40.06 ▼0.14 |
Dashboard /wp-admin | 3.66 ▲0.32 | 45.79 ▼14.12 |
Posts /wp-admin/edit.php | 3.72 ▲0.36 | 49.69 ▲3.40 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.30 | 90.80 ▼3.23 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 38.01 ▲1.65 |
Resp Mortgage Calculator /wp-admin/options-general.php?page=lidd_mc_options | 3.49 | 32.21 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 41 new files
Database: no new tables, 8 new options
New WordPress options |
---|
lidd_mc_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_lidd_mc_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Responsive Mortgage Calculator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,873 ▲126 | 13.50 ▼1.21 | 7.72 ▲5.90 | 42.72 ▼0.44 |
Dashboard /wp-admin | 2,196 ▲19 | 5.58 ▼0.04 | 91.06 ▼11.79 | 38.79 ▼2.40 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.97 ▼0.04 | 38.89 ▼0.97 | 36.92 ▲2.87 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.26 ▲0.35 | 631.94 ▼43.02 | 53.74 ▼7.49 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.20 ▲0.07 | 95.01 ▼13.84 | 39.15 ▼6.45 |
Resp Mortgage Calculator /wp-admin/options-general.php?page=lidd_mc_options | 1,426 | 1.97 | 25.48 | 31.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/responsive-mortgage-calculator/uninstall.php+13
Constant LIDD_MC_OPTIONS already defined
- The uninstall procedure has failed, leaving 7 options in the database
- widget_lidd_mc_widget
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 19× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/responsive-mortgage-calculator/includes/display_form.php
- > /wp-content/plugins/responsive-mortgage-calculator/includes/load_form.php
- > /wp-content/plugins/responsive-mortgage-calculator/includes/LiddMCTextInput.php
- > /wp-content/plugins/responsive-mortgage-calculator/includes/LiddMCInputExtended.php
- > /wp-content/plugins/responsive-mortgage-calculator/includes/shortcode.php
- > /wp-content/plugins/responsive-mortgage-calculator/includes/load_scripts.php
- > /wp-content/plugins/responsive-mortgage-calculator/includes/LiddMCDetails.php
- > /wp-content/plugins/responsive-mortgage-calculator/includes/LiddMCSubmit.php
- > /wp-content/plugins/responsive-mortgage-calculator/includes/LiddMCSelectInput.php
- > /wp-content/plugins/responsive-mortgage-calculator/includes/widget.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/responsive-mortgage-calculator/includes/defaults.php:40
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: A description for screenshot #4 is required in responsive-mortgage-calculator/assets to your readme.txt
responsive-mortgage-calculator/responsive-mortgage-calculator.php 92% from 13 tests
The principal PHP file in "Responsive Mortgage Calculator" v. 2.4.5 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 149 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin2,508 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 387 | 826 | 1,576 |
JavaScript | 1 | 68 | 63 | 381 |
PO File | 2 | 174 | 208 | 366 |
CSS | 1 | 25 | 0 | 173 |
XML | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 10.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 3.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 32 | 59.26% |
▷ Protected methods | 11 | 20.37% |
▷ Private methods | 11 | 20.37% |
Functions | 73 | |
▷ Named functions | 73 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icon_graph.png | 0.29KB | 0.16KB | ▼ 45.36% |
img/icon_inspector.png | 0.49KB | 0.38KB | ▼ 22.31% |