Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/metgis-weather/plugin.php+189
Function create_function() is deprecated
Server metrics [RAM: ▼1.89MB] [CPU: ▼53.86ms] Passed 4 tests
This is a short check of server-side resources used by MetGIS Weather
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 5.02 ▼34.19 |
Dashboard /wp-admin | 2.11 ▼1.19 | 6.90 ▼42.85 |
Posts /wp-admin/edit.php | 2.11 ▼1.24 | 6.50 ▼39.86 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.77 | 6.29 ▼98.52 |
Media Library /wp-admin/upload.php | 2.11 ▼1.11 | 6.24 ▼28.13 |
Server storage [IO: ▲5.52MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 203 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_metgis-weather |
Browser metrics Passed 4 tests
A check of browser resources used by MetGIS Weather
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,929 ▲194 | 13.76 ▼0.42 | 5.85 ▲4.06 | 36.95 ▼3.41 |
Dashboard /wp-admin | 2,224 ▲36 | 6.00 ▲1.11 | 97.02 ▼13.41 | 38.45 ▼1.98 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.43 ▲0.46 | 34.88 ▼3.87 | 32.31 ▼0.14 |
Add New Post /wp-admin/post-new.php | 1,534 ▲14 | 23.00 ▼0.04 | 642.82 ▼29.55 | 36.00 ▼20.81 |
Media Library /wp-admin/upload.php | 1,422 ▲34 | 4.45 ▲0.24 | 96.24 ▼1.90 | 42.76 ▼0.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/metgis-weather/plugin.php+189
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 7 options
- widget_metgis-weather
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
Please fix the following items
- 18× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: info in wp-content/plugins/metgis-weather/views/widget.php on line 45
- > PHP Notice
Undefined index: shadowColor in wp-content/plugins/metgis-weather/views/widget.php on line 41
- > PHP Notice
Undefined index: title in wp-content/plugins/metgis-weather/views/widget.php on line 42
- > PHP Notice
Undefined index: color in wp-content/plugins/metgis-weather/views/widget.php on line 41
- > PHP Notice
Trying to get property 'dateRequest' of non-object in wp-content/plugins/metgis-weather/views/widget.php on line 45
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/metgis-weather/views/widget.php:45
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/metgis-weather/views/admin.php:4
- > PHP Notice
Undefined variable: data in wp-content/plugins/metgis-weather/views/widget.php on line 3
- > PHP Notice
Trying to get property 'dateFirstDay' of non-object in wp-content/plugins/metgis-weather/views/widget.php on line 4
- > PHP Notice
Undefined index: dateFormat in wp-content/plugins/metgis-weather/views/widget.php on line 45
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Contributors: The plugin contributors field is not present
metgis-weather/plugin.php 85% from 13 tests
The main PHP script in "MetGIS Weather" version 1.1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("metgis-weather.php" instead of "plugin.php")
- 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 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected834 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 116 | 41 | 377 |
PO File | 2 | 144 | 0 | 290 |
CSS | 2 | 22 | 0 | 156 |
JavaScript | 2 | 0 | 2 | 10 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
180 PNG files occupy 4.64MB with 2.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icons1/sun_cloud_bright_rain_snow_thunder.png | 4.09KB | 2.93KB | ▼ 28.37% |
images/icons1/SE.png | 0.45KB | 0.44KB | ▼ 2.15% |
images/icons3/E.png | 1.07KB | 0.28KB | ▼ 73.70% |
images/icons2/humidity.png | 51.48KB | 2.63KB | ▼ 94.90% |
images/icons1/cloud_bright_snow_easy.png | 3.90KB | 3.11KB | ▼ 20.35% |