Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.93ms] Passed 4 tests
A check of server-side resources used by WF Weather
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 36.22 ▼4.18 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.89 ▼2.71 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 41.31 ▼3.81 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 80.24 ▼13.00 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 35.33 ▲1.62 |
WF Weather /wp-admin/options-general.php?page=wf-weather | 3.21 | 27.69 |
Server storage [IO: ▲0.04MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WF Weather
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲59 | 14.23 ▲0.28 | 1.85 ▲0.12 | 46.43 ▲2.97 |
Dashboard /wp-admin | 2,199 ▲19 | 5.62 ▲0.08 | 93.44 ▲2.44 | 41.36 ▲0.57 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.00 ▲0.06 | 33.61 ▼2.73 | 34.86 ▼1.98 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 23.30 ▲0.36 | 618.74 ▼33.23 | 58.04 ▼8.01 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.15 ▲0.03 | 97.01 ▲2.06 | 41.62 ▼1.90 |
WF Weather /wp-admin/options-general.php?page=wf-weather | 820 | 2.13 | 23.44 | 30.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% 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 0% 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× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wf-weather/wf-weather.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wf-weather/includes/wf_weather_settings.php:202
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wf-weather/includes/wf_weather_shortcodes.php:209
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: Please add at least on tag
wf-weather/wf-weather.php Passed 13 tests
The main PHP file in "WF Weather" ver. 0.9.1 adds more information about the plugin and also serves as the entry point for this plugin
79 characters long description:
WF Weather is the `wunderfarm-way` to show Weather information on your website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected819 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 78 | 87 | 569 |
PO File | 2 | 58 | 64 | 165 |
CSS | 1 | 19 | 0 | 85 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin