Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/weather-widget-esotanc-weather/esotanc-weather-widget.php+21
Methods with the same name as their class will not be constructors in a future version of PHP; esotanc_weather_widget has a deprecated constructor
Server metrics [RAM: ▼1.57MB] [CPU: ▼205.68ms] Passed 4 tests
This is a short check of server-side resources used by Weather Widget - Esotanc Weather
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼0.66 | 6.87 ▼22.87 |
Dashboard /wp-admin | 2.08 ▼0.97 | 10.41 ▼39.82 |
Posts /wp-admin/edit.php | 2.08 ▼1.02 | 5.76 ▼45.19 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.35 | 9.19 ▼682.36 |
Media Library /wp-admin/upload.php | 2.08 ▼0.93 | 9.26 ▼55.36 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 54 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_esotanc_weather_widget |
Browser metrics Passed 4 tests
Weather Widget - Esotanc Weather: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 16.28 ▲0.46 | 12.46 ▲2.35 | 55.48 ▲6.17 |
Dashboard /wp-admin | 2,970 ▲36 | 5.99 ▼0.19 | 156.93 ▼1.68 | 128.06 ▲4.27 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.80 ▲0.12 | 86.11 ▲18.63 | 106.48 ▲7.81 |
Add New Post /wp-admin/post-new.php | 1,581 ▼102 | 19.21 ▲0.98 | 420.45 ▼35.73 | 130.38 ▲6.72 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.05 ▲0.03 | 191.76 ▲25.07 | 137.73 ▼11.76 |
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
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/weather-widget-esotanc-weather/esotanc-weather-widget.php+21
Methods with the same name as their class will not be constructors in a future version of PHP; esotanc_weather_widget has a deprecated constructor
- This plugin did not uninstall successfully, leaving 1 option in the database
- widget_esotanc_weather_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/weather-widget-esotanc-weather/esotanc-weather-widget.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
weather-widget-esotanc-weather/esotanc-weather-widget.php 92% from 13 tests
The main PHP script in "Weather Widget - Esotanc Weather" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("weather-widget-esotanc-weather.php" instead of "esotanc-weather-widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin401 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 62 | 39 | 350 |
XML | 1 | 2 | 1 | 51 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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 Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
34 PNG files occupy 0.07MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/kiseso.png | 1.87KB | 1.63KB | ▼ 12.90% |
img/zivatar.png | 2.88KB | 2.00KB | ▼ 30.46% |
img/onoseso.png | 2.13KB | 1.80KB | ▼ 15.56% |
img/zapor.png | 2.78KB | 1.95KB | ▼ 29.87% |
img/nefelhos.png | 1.56KB | 1.47KB | ▼ 5.70% |