Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼144.42ms] Passed 4 tests
An overview of server-side resources used by Weer
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▲0.09 | 39.80 ▲2.22 |
Dashboard /wp-admin | 3.14 ▲0.09 | 53.15 ▲10.57 |
Posts /wp-admin/edit.php | 3.25 ▲0.13 | 50.19 ▼3.67 |
Add New Post /wp-admin/post-new.php | 5.50 ▲0.06 | 89.49 ▼568.81 |
Media Library /wp-admin/upload.php | 3.08 ▲0.08 | 28.38 ▼7.43 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_weer_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Weer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,816 ▲179 | 16.40 ▲0.69 | 13.73 ▲3.74 | 49.30 ▼2.21 |
Dashboard /wp-admin | 2,977 ▲46 | 5.86 ▼0.16 | 137.52 ▼8.59 | 113.68 ▼10.23 |
Posts /wp-admin/edit.php | 2,743 ▲4 | 2.70 ▲0.02 | 71.54 ▲2.20 | 102.63 ▲4.64 |
Add New Post /wp-admin/post-new.php | 1,687 ▲17 | 18.55 ▼0.63 | 380.67 ▲9.00 | 110.75 ▼5.37 |
Media Library /wp-admin/upload.php | 1,811 ▲7 | 5.02 ▼0.01 | 152.64 ▲0.96 | 121.92 ▼6.41 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 1 option in the database
- widget_weer_widget
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/weer/public/partials/weer-public-display.php
- > /wp-content/plugins/weer/admin/partials/weer-admin-display.php
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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3 in weer/assets to your readme.txt
weer/weer.php Passed 13 tests
The main file in "Weer" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
42 characters long description:
The best Dutch weather forecasting widget.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin961 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 151 | 543 | 414 |
CSS | 2 | 32 | 8 | 278 |
JavaScript | 2 | 57 | 101 | 211 |
SVG | 5 | 0 | 0 | 58 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 4.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 2 | 7.41% |
▷ Public methods | 22 | 81.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 18.52% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin