Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲1.11MB] [CPU: ▲7.78ms] Passed 4 tests
Server-side resources used by Location Weather – Best Weather Forecast Widget Plugin for WordPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.75 ▲1.28 | 47.71 ▲6.56 |
Dashboard /wp-admin | 4.43 ▲1.08 | 56.74 ▼3.32 |
Posts /wp-admin/edit.php | 4.46 ▲1.10 | 60.90 ▲15.77 |
Add New Post /wp-admin/post-new.php | 7.02 ▲1.13 | 101.85 ▲12.12 |
Media Library /wp-admin/upload.php | 4.35 ▲1.12 | 50.79 ▲17.32 |
Manage Weather /wp-admin/edit.php?post_type=location_weather | 4.78 | 66.02 |
Add New /wp-admin/post-new.php?post_type=location_weather | 4.80 | 76.71 |
Settings /wp-admin/edit.php?post_type=location_weather&page=lw-settings | 4.65 | 56.50 |
Help /wp-admin/edit.php?post_type=location_weather&page=splw_help | 4.65 | 50.06 |
Tools /wp-admin/edit.php?post_type=location_weather&page=lw-tools | 4.65 | 65.80 |
Server storage [IO: ▲1.73MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 239 new files
Database: no new tables, 14 new options
New WordPress options |
---|
widget_sp_location_weather_widget_content |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
location_weather_activation_date |
can_compress_scripts |
location_weather_version |
widget_lw_widget |
widget_recent-posts |
location_weather_settings |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Location Weather – Best Weather Forecast Widget Plugin for WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,993 ▲231 | 13.51 ▼0.53 | 7.36 ▲5.75 | 30.83 ▼12.66 |
Dashboard /wp-admin | 2,293 ▲119 | 5.57 ▲0.02 | 95.57 ▼5.41 | 72.27 ▲27.49 |
Posts /wp-admin/edit.php | 2,214 ▲111 | 1.99 ▼0.02 | 40.58 ▲5.35 | 37.67 ▲0.41 |
Add New Post /wp-admin/post-new.php | 1,596 ▲70 | 22.39 ▼0.81 | 652.02 ▼35.75 | 117.38 ▲54.34 |
Media Library /wp-admin/upload.php | 1,504 ▲101 | 4.21 ▼0.07 | 99.49 ▼1.88 | 80.69 ▲34.05 |
Manage Weather /wp-admin/edit.php?post_type=location_weather | 1,405 | 3.69 | 63.84 | 60.42 |
Add New /wp-admin/post-new.php?post_type=location_weather | 9,262 | 5.08 | 120.20 | 225.00 |
Settings /wp-admin/edit.php?post_type=location_weather&page=lw-settings | 1,251 | 3.64 | 57.69 | 120.44 |
Help /wp-admin/edit.php?post_type=location_weather&page=splw_help | 2,053 | 13.41 | 318.71 | 179.74 |
Tools /wp-admin/edit.php?post_type=location_weather&page=lw-tools | 1,245 | 3.74 | 60.19 | 82.91 |
Uninstaller [IO: ▲1.73MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attentionZombie WordPress options detected upon uninstall: 15 options
- Uninstall procedure had uncaught errors
- > Compile error in wp-content/plugins/location-weather/main.php+299
Cannot redeclare location_weather() (previously declared in wp-content/plugins/location-weather/main.php:300)
- Incomplete uninstall procedure, leaving 239 files (1.73MB) in the plugin directory
- (new file) assets/css/all.min.css
- (new file) assets/css/admin.css
- (new file) assets/css/admin.min.css
- (new file) assets/css/help-page.css
- (new file) assets/css/old-style.min.css
- (new file) assets/css/old-style.css
- (new file) assets/css/fontawesome.min.css
- (new file) assets/css/help-page.min.css
- (new file) assets/css/fontello.min.css
- (new file) assets/css/fontello.css
- ...
- widget_lw_widget
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- location_weather_tools_options
- location_weather_version
- location_weather_activation_date
- widget_sp_location_weather_widget_content
- location_weather_first_version
- recovery_mode_email_last_sent
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/location-weather/includes/Frontend/templates/template-parts/footer.php
- > /wp-content/plugins/location-weather/includes/Frontend/templates/section-title.php
- 31× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function ShapedPlugin\\Weather\\Admin\\Preview\\add_action() in wp-content/plugins/location-weather/includes/Admin/Preview/LW_Preview.php:37
- > PHP Notice
Undefined variable: show_wind_gusts in wp-content/plugins/location-weather/includes/Frontend/templates/template-parts/additional-data.php on line 14
- > PHP Notice
Undefined variable: weather_data in wp-content/plugins/location-weather/includes/Frontend/templates/template-parts/header.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'ShapedPlugin\\Weather\\Frontend\\Aid\\Location' not found in wp-content/plugins/location-weather/includes/Frontend/Aid/City.php:13
- > PHP Notice
Undefined variable: layout in wp-content/plugins/location-weather/includes/Frontend/templates/additional-icon.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/location-weather/includes/Admin/LW_Widget.php:15
- > PHP Notice
Undefined variable: show_wind in wp-content/plugins/location-weather/includes/Frontend/templates/template-parts/additional-data.php on line 14
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/location-weather/includes/Admin/ElementBlock/Location_Weather_Shortcode_Widget.php:23
- > PHP Notice
Undefined variable: show_visibility in wp-content/plugins/location-weather/includes/Frontend/templates/template-parts/additional-data.php on line 14
- > PHP Notice
Undefined variable: show_weather_updated_time in wp-content/plugins/location-weather/includes/Frontend/templates/template-parts/footer.php on line 13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 27 tag instead of maximum 10
location-weather/main.php 85% from 13 tests
"Location Weather – Best Weather Forecast Widget Plugin for WordPress" version 2.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("location-weather.php" instead of "main.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 267 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin16,890 lines of code in 211 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 90 | 1,613 | 3,580 | 7,964 |
CSS | 16 | 833 | 475 | 4,905 |
JavaScript | 9 | 887 | 338 | 3,393 |
SVG | 95 | 0 | 9 | 623 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 18.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 136.00 |
Average method complexity | 4.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 59.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 57 | |
▷ Abstract classes | 2 | 3.51% |
▷ Concrete classes | 55 | 96.49% |
▷ Final classes | 1 | 1.82% |
Methods | 259 | |
▷ Static methods | 64 | 24.71% |
▷ Public methods | 248 | 95.75% |
▷ Protected methods | 2 | 0.77% |
▷ Private methods | 9 | 3.47% |
Functions | 27 | |
▷ Named functions | 24 | 88.89% |
▷ Anonymous functions | 3 | 11.11% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/Admin/framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |
includes/Admin/framework/assets/images/icon-256.png | 11.28KB | 3.62KB | ▼ 67.92% |
assets/images/Dawie-Hanekom-min.png | 10.69KB | 10.71KB | 0.00% |