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 cannot be installed
- > Deprecated in wp-content/plugins/easyweather-widget/weather.php+11
Function create_function() is deprecated
Server metrics [RAM: ▼1.77MB] [CPU: ▼188.99ms] Passed 4 tests
A check of server-side resources used by EasyWeather widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.86 ▼0.86 | 5.02 ▼23.36 |
Dashboard /wp-admin | 1.88 ▼1.18 | 7.33 ▼37.35 |
Posts /wp-admin/edit.php | 1.88 ▼1.23 | 5.67 ▼42.29 |
Add New Post /wp-admin/post-new.php | 1.88 ▼3.55 | 5.56 ▼651.17 |
Media Library /wp-admin/upload.php | 1.88 ▼1.12 | 9.73 ▼25.14 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_easyweather_widget |
Browser metrics Passed 4 tests
EasyWeather widget: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 16.36 ▲0.78 | 10.31 ▲0.32 | 47.24 ▲1.78 |
Dashboard /wp-admin | 2,973 ▲39 | 5.94 ▼0.26 | 145.34 ▼23.19 | 115.12 ▲11.01 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.85 ▲0.13 | 65.48 ▼0.52 | 88.49 ▼1.43 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.32 ▼0.04 | 435.18 ▼29.22 | 118.70 ▲6.81 |
Media Library /wp-admin/upload.php | 1,748 ▼59 | 5.01 ▼0.01 | 168.42 ▲1.71 | 130.39 ▲23.03 |
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
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/easyweather-widget/weather.php+11
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 1 option
- widget_easyweather_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easyweather-widget/weather.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Donate link: Please fix this invalid url: ""
easyweather-widget/weather.php 92% from 13 tests
The main PHP script in "EasyWeather widget" version 1.0 is automatically included on every request by WordPress
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("easyweather-widget.php" instead of "weather.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
No dangerous file extensions were detected210 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 27 | 9 | 210 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 4.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 16.67% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin