Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼10.49ms] Passed 4 tests
An overview of server-side resources used by Niche Self Employed Mortgage Calculator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 41.37 ▼7.02 |
Dashboard /wp-admin | 3.34 ▲0.03 | 49.54 ▼15.03 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 52.55 ▼5.62 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 79.65 ▼14.30 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.57 ▲0.52 |
Niche SE Calculator /wp-admin/options-general.php?page=ssmc-options | 3.23 | 31.60 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Niche Self Employed Mortgage Calculator
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲77 | 13.52 ▼0.84 | 1.73 ▼0.75 | 39.05 ▼4.04 |
Dashboard /wp-admin | 2,229 ▲38 | 5.06 ▼0.75 | 111.13 ▲6.07 | 37.41 ▼4.77 |
Posts /wp-admin/edit.php | 2,114 ▲25 | 2.31 ▲0.31 | 40.41 ▲2.95 | 34.76 ▲0.33 |
Add New Post /wp-admin/post-new.php | 1,531 ▲120 | 23.62 ▲5.89 | 669.24 ▲100.27 | 37.28 ▼5.96 |
Media Library /wp-admin/upload.php | 1,411 ▲20 | 4.36 ▲0.21 | 106.02 ▲2.55 | 44.97 ▲1.87 |
Niche SE Calculator /wp-admin/options-general.php?page=ssmc-options | 1,052 | 2.31 | 46.89 | 21.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/niche-self-employment-mortgage-calculator/template/calculator.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function Conobe\\add_action() in wp-content/plugins/niche-self-employment-mortgage-calculator/lib/SelfEmployedMortgageCalculator.php:47
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=ssmc-options
- > Network (severe)
wp-content/plugins/niche-self-employment-mortgage-calculator/lib/my-script.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: self employed calculator, director mortgage calculator, soletrader mortgage calculator, niche, uk...
niche-self-employment-mortgage-calculator/niche-self-employed-mortgage-calculator.php 85% from 13 tests
"Niche Self Employed Mortgage Calculator" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 156 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("niche-self-employment-mortgage-calculator.php" instead of "niche-self-employed-mortgage-calculator.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected456 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 139 | 86 | 280 |
CSS | 1 | 19 | 0 | 122 |
JavaScript | 2 | 14 | 0 | 54 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 4 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
3 PNG files occupy 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-original.png | 11.87KB | 1.57KB | ▼ 86.78% |
assets/icon-128x128.png | 13.47KB | 3.49KB | ▼ 74.12% |
assets/icon-256x256.png | 23.90KB | 9.94KB | ▼ 58.40% |