Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/weather-press/includes/class-weather-press.php+175
Function create_function() is deprecated
Server metrics [RAM: ▼1.77MB] [CPU: ▼61.71ms] Passed 4 tests
This is a short check of server-side resources used by weather press
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.22 ▼1.24 | 5.77 ▼40.02 |
Dashboard /wp-admin | 2.24 ▼1.10 | 7.44 ▼64.92 |
Posts /wp-admin/edit.php | 2.24 ▼1.11 | 6.72 ▼43.75 |
Add New Post /wp-admin/post-new.php | 2.24 ▼3.64 | 8.67 ▼98.14 |
Media Library /wp-admin/upload.php | 2.24 ▼0.98 | 6.93 ▼30.67 |
Server storage [IO: ▲5.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 144 new files
Database: no new tables, 11 new options
New WordPress options |
---|
weather_press_unit |
weather_press_secondary_location |
widget_weather-press |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
weather_press_lang |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for weather press
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,947 ▲161 | 14.15 ▼0.22 | 28.60 ▲26.54 | 43.56 ▲0.56 |
Dashboard /wp-admin | 2,230 ▲53 | 5.60 ▲0.06 | 98.25 ▼0.07 | 73.29 ▲28.20 |
Posts /wp-admin/edit.php | 2,144 ▲44 | 1.97 ▲0.02 | 37.60 ▼9.88 | 39.69 ▲1.07 |
Add New Post /wp-admin/post-new.php | 1,571 ▲45 | 23.09 ▼0.03 | 760.60 ▲30.63 | 55.78 ▲0.57 |
Media Library /wp-admin/upload.php | 1,450 ▲50 | 4.12 ▼0.01 | 98.84 ▼19.36 | 89.11 ▲40.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/weather-press/includes/class-weather-press.php+175
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_weather-press
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/weather-press/includes/class-weather-press-fetcher.php
- > /wp-content/plugins/weather-press/public/partials/weather-press-public-display.php
- 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: wpress_Main_Location_id in wp-content/plugins/weather-press/public/partials/weather-press-public-display.php on line 113
- > PHP Notice
Undefined variable: wpress_Secondary_Location_Bottom_id in wp-content/plugins/weather-press/public/partials/weather-press-public-display.php on line 114
- > PHP Warning
Use of undefined constant WEATHER_PRESS_PATH - assumed 'WEATHER_PRESS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/weather-press/public/partials/weather-press-public-display.php on line 190
- > PHP Notice
Undefined variable: weather_press_Current_Language in wp-content/plugins/weather-press/public/partials/weather-press-public-display.php on line 151
- > PHP Notice
Undefined variable: wpress_Main_Location_city_name in wp-content/plugins/weather-press/public/partials/weather-press-public-display.php on line 113
- > PHP Warning
Use of undefined constant WEATHER_PRESS_PATH - assumed 'WEATHER_PRESS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/weather-press/public/partials/weather-press-public-display.php on line 161
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/weather-press/public/partials/weather-press-public-display.php on line 66
- > PHP Notice
Undefined variable: weather_press_Current_Language in wp-content/plugins/weather-press/public/partials/weather-press-public-display.php on line 149
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/weather-press/includes/class-weather-press-widget.php:19
- > PHP Notice
Undefined variable: wpress_Secondary_Location_Bottom_city_name in wp-content/plugins/weather-press/public/partials/weather-press-public-display.php on line 114
- > PHP Notice
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 on the user side
Optimizations
Plugin configuration Passed 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
5 plugin tags: weather, world weather, local weather, forecast, widgets
weather-press/weather-press.php Passed 13 tests
The entry point to "weather press" version 4.7 is a PHP file that has certain tags in its header comment area
90 characters long description:
You need an amazing wordpress weather plugin & widget ?? ...Weather Press offer you more !
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
Good job! No executable or dangerous file extensions detected6,789 lines of code in 59 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 644 | 44 | 3,416 |
PHP | 15 | 1,352 | 856 | 2,136 |
SVG | 35 | 16 | 34 | 1,235 |
JavaScript | 2 | 0 | 1 | 2 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 6.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 3 | 6.67% |
▷ Public methods | 40 | 88.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 11.11% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
52 PNG files occupy 2.48MB with 1.88MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/09n.png | 11.09KB | 5.56KB | ▼ 49.84% |
public/images/tool-list-divider.png | 2.73KB | 0.09KB | ▼ 96.86% |
public/images/50d.png | 55.71KB | 7.21KB | ▼ 87.05% |
public/images/11d.png | 48.96KB | 5.51KB | ▼ 88.74% |
public/images/cloud-white.png | 55.84KB | 24.39KB | ▼ 56.33% |