Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼9.67ms] Passed 4 tests
Server-side resources used by Weather Widget Pro
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 37.92 ▼8.86 |
Dashboard /wp-admin | 3.49 ▲0.15 | 45.06 ▼11.52 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 46.42 ▼1.03 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.21 | 80.75 ▼17.26 |
Media Library /wp-admin/upload.php | 3.41 ▲0.19 | 33.29 ▲1.13 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 84 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_wiycw_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Weather Widget Pro
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.61 ▼1.04 | 1.60 ▼0.59 | 41.41 ▼17.93 |
Dashboard /wp-admin | 2,215 ▲24 | 5.87 ▼0.04 | 94.77 ▼2.71 | 38.24 ▼0.83 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.03 ▲0.03 | 34.25 ▼3.17 | 34.12 ▼0.36 |
Add New Post /wp-admin/post-new.php | 1,524 ▼9 | 23.32 ▲0.13 | 662.00 ▲37.57 | 57.83 ▲5.85 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.23 ▲0.02 | 94.60 ▼2.49 | 43.31 ▼0.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- widget_wiycw_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% 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)
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
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/weather-in-any-city-widget/weather-in-any-city-widget.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: You are using too many tags: 15 tag instead of maximum 10
- Screenshots: Please add descriptions for these screenshots #6, #7 in weather-in-any-city-widget/assets to your readme.txt
- Contributors: The plugin contributors field is missing
weather-in-any-city-widget/weather-in-any-city-widget.php Passed 13 tests
"Weather Widget Pro" version 1.1.28's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
90 characters long description:
Weather Widget Pro provides a complete weather forecast for any location around the world.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin4,346 lines of code in 65 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 14 | 882 | 896 | 2,016 |
SVG | 45 | 0 | 45 | 986 |
PHP | 1 | 147 | 11 | 736 |
JavaScript | 3 | 119 | 0 | 382 |
CSS | 2 | 43 | 0 | 226 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 54.00 |
▷ Minimum class complexity | 54.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 14.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin