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.64MB] [CPU: ▼185.45ms] Passed 4 tests
A check of server-side resources used by Käuferportal Solarrechner-Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.99 ▼0.84 | 16.52 ▼20.74 |
Dashboard /wp-admin | 2.01 ▼1.04 | 11.80 ▼41.26 |
Posts /wp-admin/edit.php | 2.02 ▼1.09 | 11.97 ▼34.34 |
Add New Post /wp-admin/post-new.php | 2.01 ▼3.42 | 11.69 ▼637.47 |
Media Library /wp-admin/upload.php | 2.01 ▼0.99 | 10.03 ▼28.71 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_kp-solar-rechner |
Browser metrics Passed 4 tests
Checking browser requirements for Käuferportal Solarrechner-Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,828 ▲232 | 16.53 ▲1.01 | 19.07 ▲4.96 | 50.53 ▲2.21 |
Dashboard /wp-admin | 2,970 ▲39 | 6.02 ▼0.09 | 149.69 ▲4.89 | 118.07 ▲9.47 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.00 | 77.43 ▲8.53 | 96.35 ▲11.43 |
Add New Post /wp-admin/post-new.php | 1,581 ▼102 | 18.50 ▼0.28 | 438.87 ▲37.29 | 145.10 ▲26.85 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.03 ▼0.01 | 177.83 ▲18.85 | 126.50 ▼6.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5304
The called constructor method for WP_Widget in KP_Solar_Rechner_Widget is deprecated since version 4.3.0! Use __construct() instead.
- Zombie WordPress options detected upon uninstall: 1 option
- widget_kp-solar-rechner
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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/kp-solar-rechner/template.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/kp-solar-rechner/kp-solar-rechner.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: solar, rechner, widget, solaranlage, calculator...
kp-solar-rechner/kp-solar-rechner.php 92% from 13 tests
This is the main PHP file of "Käuferportal Solarrechner-Plugin" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 155 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
Success! There were no dangerous files found in this plugin828 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 76 | 6 | 430 |
JavaScript | 2 | 38 | 10 | 236 |
PHP | 2 | 39 | 23 | 162 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
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 | 3 | 42.86% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
20 PNG files occupy 0.12MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/bg.png | 27.80KB | 10.34KB | ▼ 62.82% |
assets/img/inline_validation.png | 1.48KB | 1.23KB | ▼ 16.81% |
assets/img/button_submit_form.png | 2.88KB | 1.88KB | ▼ 34.51% |
assets/img/delta.png | 0.15KB | 0.13KB | ▼ 10.39% |
assets/img/switch.png | 0.53KB | 0.65KB | 0.00% |