Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/hm-weather-widget/hm_widget_assets/includes/geoplugin.class.php+31
Methods with the same name as their class will not be constructors in a future version of PHP; geoPlugin has a deprecated constructor
Server metrics [RAM: ▼1.94MB] [CPU: ▼51.27ms] Passed 4 tests
Analyzing server-side resources used by Hm Weather Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.05 ▼1.41 | 5.13 ▼38.68 |
Dashboard /wp-admin | 2.07 ▼1.23 | 7.22 ▼40.23 |
Posts /wp-admin/edit.php | 2.07 ▼1.28 | 8.01 ▼41.30 |
Add New Post /wp-admin/post-new.php | 2.07 ▼3.82 | 6.91 ▼84.86 |
Media Library /wp-admin/upload.php | 2.07 ▼1.16 | 6.74 ▼29.45 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_hm_weather_widget |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Hm Weather Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.25 ▼1.07 | 1.63 ▼0.50 | 40.41 ▼10.87 |
Dashboard /wp-admin | 2,206 ▲18 | 5.00 ▼0.88 | 102.68 ▼10.63 | 43.97 ▼0.33 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.05 | 33.64 ▼4.05 | 33.08 ▼4.54 |
Add New Post /wp-admin/post-new.php | 1,514 ▼19 | 17.52 ▼5.48 | 648.12 ▼54.11 | 49.05 ▼12.11 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.18 ▼0.05 | 95.76 ▼9.22 | 45.66 ▲1.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/hm-weather-widget/hm_widget_assets/includes/geoplugin.class.php+31
Methods with the same name as their class will not be constructors in a future version of PHP; geoPlugin has a deprecated constructor
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_hm_weather_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
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
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/hm-weather-widget/hm_weather_widget.php:14
- > PHP Fatal error
Uncaught Error: Class 'wp_Widget' not found in wp-content/plugins/hm-weather-widget/hm_widget_assets/includes/hm-weather-widgets.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Requires at least: Version format is invalid
hm-weather-widget/hm_weather_widget.php 85% from 13 tests
Analyzing the main PHP file in "Hm Weather Widget" version 1.0.0
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("hm-weather-widget.php" instead of "hm_weather_widget.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
Everything looks great! No dangerous files found in this plugin288 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 125 | 74 | 288 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 5.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 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 | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected