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.21MB] [CPU: ▼139.63ms] Passed 4 tests
This is a short check of server-side resources used by Weather Atlas Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.05 ▲0.32 | 49.98 ▲26.55 |
Dashboard /wp-admin | 3.26 ▲0.20 | 48.32 ▲3.70 |
Posts /wp-admin/edit.php | 3.37 ▲0.26 | 43.23 ▼4.17 |
Add New Post /wp-admin/post-new.php | 5.62 ▲0.18 | 98.83 ▼561.44 |
Media Library /wp-admin/upload.php | 3.21 ▲0.20 | 37.45 ▲3.39 |
Server storage [IO: ▲0.95MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 40 new files
Database: no new tables, 2 new options
New WordPress options |
---|
weather_atlas_version |
widget_weather_atlas |
Browser metrics Passed 4 tests
An overview of browser requirements for Weather Atlas Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,883 ▲287 | 16.99 ▲1.48 | 17.02 ▲5.81 | 51.10 ▼1.59 |
Dashboard /wp-admin | 2,992 ▲61 | 6.61 ▲0.65 | 143.15 ▼4.31 | 119.14 ▼3.78 |
Posts /wp-admin/edit.php | 2,761 ▲22 | 3.00 ▲0.31 | 78.10 ▲5.99 | 107.60 ▲8.75 |
Add New Post /wp-admin/post-new.php | 1,713 ▲30 | 15.65 ▼2.76 | 398.61 ▼2.56 | 113.51 ▲1.11 |
Media Library /wp-admin/upload.php | 1,840 ▲33 | 5.42 ▲0.44 | 128.77 ▼23.86 | 133.79 ▲13.43 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 2 options in the database
- weather_atlas_version
- widget_weather_atlas
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/weather-atlas/admin/partials/weather-atlas-admin-display.php
- > /wp-content/plugins/weather-atlas/languages/language_conditions.en.php
- > /wp-content/plugins/weather-atlas/public/partials/weather-atlas-public-display.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/weather-atlas/includes/class-weather-atlas.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/weather-atlas/admin/class-weather-atlas-admin.php:89
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% 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: You are using too many tags: 16 tag instead of maximum 10
weather-atlas/weather-atlas.php 92% from 13 tests
The principal PHP file in "Weather Atlas Widget" v. 1.2.1 is loaded by WordPress automatically on each request
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 145 characters long)
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
No dangerous file extensions were detected8,166 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 0 | 0 | 5,751 |
PHP | 13 | 214 | 516 | 1,609 |
JavaScript | 8 | 80 | 172 | 549 |
SVG | 1 | 0 | 0 | 257 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 6.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 4 | 14.29% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
Functions | 11 | |
▷ Named functions | 11 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin