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/weather-layer/weather_layer.php+508
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.82MB] [CPU: ▼59.23ms] Passed 4 tests
Server-side resources used by Weather Layer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.17 ▼1.29 | 5.27 ▼52.11 |
Dashboard /wp-admin | 2.19 ▼1.15 | 6.68 ▼55.86 |
Posts /wp-admin/edit.php | 2.19 ▼1.16 | 5.78 ▼39.63 |
Add New Post /wp-admin/post-new.php | 2.19 ▼3.69 | 6.01 ▼89.31 |
Media Library /wp-admin/upload.php | 2.19 ▼1.03 | 6.80 ▼31.68 |
Weather Layer /wp-admin/plugins.php?page=weather_layer_options | 2.20 | 5.70 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_weather_layer_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Weather Layer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲85 | 14.33 ▼0.01 | 1.74 ▲0.07 | 45.45 ▼0.60 |
Dashboard /wp-admin | 2,196 ▲19 | 5.62 ▼0.03 | 90.46 ▼16.37 | 44.71 ▼15.85 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.06 | 38.89 ▼1.12 | 36.63 ▼6.83 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.57 ▲0.40 | 682.83 ▼14.19 | 61.70 ▲9.20 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.14 ▼0.03 | 106.27 ▲0.08 | 44.72 ▲2.59 |
Weather Layer /wp-admin/plugins.php?page=weather_layer_options | 911 | 2.00 | 25.59 | 41.81 |
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
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/weather-layer/weather_layer.php+508
Array and string offset access syntax with curly braces is deprecated
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_weather_layer_widget
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/plugins.php?page=weather_layer_options
- > Deprecated in wp-content/plugins/weather-layer/weather_layer.php+543
Array and string offset access syntax with curly braces is deprecated
- > GET request to /wp-admin/plugins.php?page=weather_layer_options
- > Deprecated in wp-content/plugins/weather-layer/widgets/weather_layer.php+62
Function create_function() is deprecated
- > GET request to /wp-admin/plugins.php?page=weather_layer_options
- > Notice in wp-content/plugins/weather-layer/admin.php+50
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/weather-layer/config.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/weather-layer/config.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/weather-layer/widgets/weather_layer.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/weather-layer/config.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== weather-layer ===
)
weather-layer/weather_layer.php 85% from 13 tests
The main PHP file in "Weather Layer" ver. 4.2.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 259 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("weather-layer.php" instead of "weather_layer.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin883 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 144 | 95 | 747 |
CSS | 1 | 21 | 0 | 136 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 27 | |
▷ Named functions | 27 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 12 | 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
11 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icones/soleil.png | 4.26KB | 3.81KB | ▼ 10.69% |
icones/soleil-partiel.png | 4.34KB | 3.33KB | ▼ 23.31% |
icones/brouillard.png | 2.14KB | 2.19KB | 0.00% |
icones/pluie-partielle.png | 2.57KB | 2.34KB | ▼ 9.05% |
icones/pluie.png | 2.75KB | 2.37KB | ▼ 13.85% |