Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲2.34MB] [CPU: ▲12.39ms] Passed 4 tests
This is a short check of server-side resources used by OWM Weather
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.60 ▲2.14 | 52.25 ▲9.23 |
Dashboard /wp-admin | 5.71 ▲2.41 | 65.98 ▲14.66 |
Posts /wp-admin/edit.php | 5.77 ▲2.41 | 67.97 ▲9.42 |
Add New Post /wp-admin/post-new.php | 8.31 ▲2.42 | 110.33 ▲16.23 |
Media Library /wp-admin/upload.php | 5.64 ▲2.41 | 56.65 ▲18.26 |
All Weather /wp-admin/edit.php?post_type=owm-weather | 5.72 | 54.48 |
New Weather /wp-admin/post-new.php?post_type=owm-weather | 5.86 | 110.93 |
OWM Weather /wp-admin/options-general.php?page=owmw-settings-admin | 5.63 | 57.83 |
Server storage [IO: ▲6.31MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 150 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_owm_weather_shortcode_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by OWM Weather
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,036 ▲275 | 13.96 ▼0.29 | 8.35 ▲6.51 | 36.72 ▼10.89 |
Dashboard /wp-admin | 2,328 ▲154 | 5.81 ▲0.24 | 95.65 ▲5.28 | 44.19 ▲2.49 |
Posts /wp-admin/edit.php | 2,198 ▲95 | 2.33 ▲0.28 | 48.82 ▲7.94 | 39.06 ▲3.24 |
Add New Post /wp-admin/post-new.php | 6,261 ▲4,735 | 19.02 ▲1.51 | 838.90 ▲142.17 | 37.03 ▼17.88 |
Media Library /wp-admin/upload.php | 1,488 ▲91 | 4.40 ▲0.20 | 107.28 ▲7.72 | 44.03 ▼1.96 |
All Weather /wp-admin/edit.php?post_type=owm-weather | 1,707 | 2.33 | 49.67 | 33.23 |
New Weather /wp-admin/post-new.php?post_type=owm-weather | 9,633 | 7.97 | 331.46 | 124.19 |
OWM Weather /wp-admin/options-general.php?page=owmw-settings-admin | 8,438 | 5.12 | 243.89 | 108.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 does not fully uninstall, leaving 7 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_owm_weather_shortcode_widget
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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
- 8× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/owm-weather/owmweather.php
- > /wp-content/plugins/owm-weather/owmweather-options.php
- > /wp-content/plugins/owm-weather/owmweather-anim.php
- > /wp-content/plugins/owm-weather/owmweather-widget.php
- > /wp-content/plugins/owm-weather/template/content-owmweather-custom2.php
- > /wp-content/plugins/owm-weather/template/content-owmweather-custom1.php
- > /wp-content/plugins/owm-weather/owmweather-admin.php
- > /wp-content/plugins/owm-weather/owmweather-pointers.php
- 16× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/owm-weather/template/content-owmweather-tabbed2.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses() in wp-content/plugins/owm-weather/template/content-owmweather-table3.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/owm-weather/template/content-owmweather-card1.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/owm-weather/classes/class-weather-shortcode-widget.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/owm-weather/owmweather-export.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses() in wp-content/plugins/owm-weather/template/content-owmweather-slider1.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/owm-weather/owmweather-block.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses() in wp-content/plugins/owm-weather/template/content-owmweather-chart2.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses() in wp-content/plugins/owm-weather/template/content-owmweather-chart1.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/owm-weather/template/content-owmweather-debug.php:15
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=owmw-settings-admin
- > Network (severe)
https://img.youtube.com/vi//default.jpg - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Donate link: Please fix this invalid url: "paypal.me/ujsoftware"
owm-weather/owmweather.php 92% from 13 tests
The primary PHP file in "OWM Weather" version 5.7.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("owm-weather.php" instead of "owmweather.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin69,778 lines of code in 100 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 31 | 5,899 | 2,247 | 25,730 |
PO File | 16 | 12,234 | 15,538 | 22,383 |
PHP | 29 | 1,400 | 650 | 14,295 |
JavaScript | 16 | 580 | 434 | 5,560 |
SVG | 6 | 1 | 3 | 1,796 |
Bourne Shell | 1 | 0 | 0 | 13 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 31.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 152.00 |
Average method complexity | 1.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 174 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 170 | 97.70% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 2.30% |
Functions | 214 | |
▷ Named functions | 209 | 97.66% |
▷ Anonymous functions | 5 | 2.34% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
7 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/marker-icon.png | 1.71KB | 1.56KB | ▼ 8.59% |
img/Legend_Fahrenheit.png | 7.76KB | 4.33KB | ▼ 44.14% |
css/images/marker-icon-2x.png | 3.94KB | 2.53KB | ▼ 35.71% |
img/logo-owmweather.png | 6.68KB | 5.03KB | ▼ 24.66% |
css/images/layers-2x.png | 1.23KB | 1.67KB | 0.00% |