Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/wordpress-weather-widget/index.php+44
Methods with the same name as their class will not be constructors in a future version of PHP; Weather_Widget has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼54.76ms] Passed 4 tests
An overview of server-side resources used by WordPress Weather Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 9.78 ▼50.04 |
Dashboard /wp-admin | 2.09 ▼1.21 | 6.13 ▼40.90 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 5.54 ▼44.95 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.79 | 7.30 ▼83.13 |
Media Library /wp-admin/upload.php | 2.09 ▼1.13 | 7.54 ▼27.89 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_weather-widget |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WordPress Weather Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲67 | 13.19 ▼1.56 | 1.61 ▼0.44 | 38.82 ▼10.87 |
Dashboard /wp-admin | 2,209 ▲21 | 4.90 ▲0.03 | 99.93 ▼15.91 | 39.06 ▼2.15 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▲0.02 | 40.51 ▼0.13 | 35.01 ▼4.94 |
Add New Post /wp-admin/post-new.php | 1,544 ▲23 | 18.44 ▼4.70 | 628.04 ▼50.63 | 50.74 ▼3.79 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.19 ▼0.02 | 97.08 ▼0.78 | 42.60 ▼5.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/wordpress-weather-widget/index.php+44
Methods with the same name as their class will not be constructors in a future version of PHP; Weather_Widget has a deprecated constructor
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_weather-widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% 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 50% 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
- 28× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: cond in wp-content/plugins/wordpress-weather-widget/condition.php on line 130
- > PHP Notice
Undefined variable: cond in wp-content/plugins/wordpress-weather-widget/condition.php on line 21
- > PHP Notice
Undefined variable: cond in wp-content/plugins/wordpress-weather-widget/condition.php on line 26
- > PHP Notice
Undefined variable: cond in wp-content/plugins/wordpress-weather-widget/condition.php on line 91
- > PHP Notice
Undefined variable: cond in wp-content/plugins/wordpress-weather-widget/condition.php on line 116
- > PHP Notice
Undefined variable: cond in wp-content/plugins/wordpress-weather-widget/condition.php on line 106
- > PHP Notice
Undefined variable: cond in wp-content/plugins/wordpress-weather-widget/condition.php on line 125
- > PHP Notice
Undefined variable: cond in wp-content/plugins/wordpress-weather-widget/condition.php on line 31
- > PHP Notice
Undefined variable: cond in wp-content/plugins/wordpress-weather-widget/condition.php on line 101
- > PHP Notice
Undefined variable: cond in wp-content/plugins/wordpress-weather-widget/condition.php on line 71
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 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
Attributes that need to be fixed:
- Requires at least: Version not formatted correctly
- Screenshots: Screenshot #1 (**Widget Settings** - Widget Settings in the Wordpress Administration Area) image not found
wordpress-weather-widget/index.php 92% from 13 tests
This is the main PHP file of "WordPress Weather Widget" version 2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wordpress-weather-widget.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin225 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 62 | 49 | 198 |
CSS | 1 | 5 | 0 | 27 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
29 PNG files occupy 0.27MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/thunderstorm.png | 11.15KB | 3.68KB | ▼ 66.96% |
images/fog.png | 8.06KB | 2.88KB | ▼ 64.22% |
images/rain_snow.png | 10.92KB | 3.75KB | ▼ 65.61% |
images/chance_of_rain.png | 9.44KB | 3.14KB | ▼ 66.71% |
images/sleet.png | 10.89KB | 3.72KB | ▼ 65.82% |