Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.11ms] Passed 4 tests
A check of server-side resources used by Allerta Meteo Lombardia
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 37.08 ▼3.88 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.23 ▼5.48 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 48.87 ▲1.86 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 83.53 ▼16.93 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 42.96 ▲7.65 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
amli_version_number |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Allerta Meteo Lombardia
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.56 ▼0.74 | 1.92 ▼0.06 | 41.13 ▼3.80 |
Dashboard /wp-admin | 2,203 ▲18 | 5.82 ▲0.75 | 109.73 ▼1.28 | 40.33 ▼1.39 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.04 ▼0.01 | 39.68 ▲2.80 | 36.09 ▼2.70 |
Add New Post /wp-admin/post-new.php | 1,531 ▲17 | 23.11 ▲5.61 | 639.52 ▼68.75 | 63.94 ▲9.45 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.23 ▲0.10 | 102.14 ▼23.31 | 43.85 ▼7.29 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- amli_version_number
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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 items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function shortcode_atts() in wp-content/plugins/allerta-meteo-lombardia-italia/class-shortcode.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/allerta-meteo-lombardia-italia/allerta-meteo-lombardia-italia.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: meteo, italia, allerta, lombardia
allerta-meteo-lombardia-italia/allerta-meteo-lombardia-italia.php Passed 13 tests
This is the main PHP file of "Allerta Meteo Lombardia" version 1.5.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
77 characters long description:
Visualizzatore di allerte meteo collegato con il portale di Regione Lombardia
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected158 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 30 | 13 | 158 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/wpgov.png | 10.12KB | 5.20KB | ▼ 48.64% |