Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲3.26MB] [CPU: ▲5.08ms] Passed 4 tests
Analyzing server-side resources used by 3B Meteo
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.94 ▲3.47 | 48.39 ▲6.18 |
Dashboard /wp-admin | 6.96 ▲3.65 | 52.35 ▲3.27 |
Posts /wp-admin/edit.php | 6.96 ▲3.60 | 53.85 ▲2.80 |
Add New Post /wp-admin/post-new.php | 8.19 ▲2.30 | 103.99 ▲8.06 |
Media Library /wp-admin/upload.php | 6.96 ▲3.73 | 51.76 ▲15.84 |
Server storage [IO: ▲2.51MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 139 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
trebimeteo_config |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for 3B Meteo
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,943 ▲197 | 15.11 ▲0.73 | 28.76 ▲26.91 | 45.57 ▲0.93 |
Dashboard /wp-admin | 2,204 ▲13 | 5.79 ▲0.86 | 100.36 ▼4.57 | 38.65 ▼7.81 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▲0.01 | 36.56 ▲1.00 | 35.59 ▼2.08 |
Add New Post /wp-admin/post-new.php | 6,367 ▲4,845 | 29.31 ▲6.34 | 911.35 ▲311.31 | 41.48 ▼23.87 |
Media Library /wp-admin/upload.php | 1,386 ▲1 | 4.20 ▼0.07 | 98.68 ▼1.73 | 42.11 ▲0.27 |
3B Meteo /wp-admin/TreBiMeteo.php | 26 | 0.44 | 0.07 | 13.06 |
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
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- trebimeteo_config
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 39× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'TreBiMeteo\\Http\\Server\\MiddlewareInterface' not found in wp-content/plugins/3b-meteo/src/Http/Server/ResetMiddleware.php:12
- > PHP Fatal error
Uncaught Error: Interface 'TreBiMeteo\\Http\\Server\\MiddlewareInterface' not found in wp-content/plugins/3b-meteo/src/Http/Server/LocalitiesFixturesMiddleware.php:11
- > PHP Fatal error
Uncaught Error: Interface 'TreBiMeteo\\Http\\Server\\MiddlewareInterface' not found in wp-content/plugins/3b-meteo/src/Http/Server/LocalitiesMiddleware.php:22
- > PHP Fatal error
Uncaught Error: Interface 'TreBiMeteo\\Http\\Message\\ResponseFactoryInterface' not found in wp-content/plugins/3b-meteo/src/Http/Message/ResponseFactory.php:8
- > PHP Fatal error
Uncaught Error: Interface 'TreBiMeteo\\Http\\Client\\ClientInterface' not found in wp-content/plugins/3b-meteo/src/Http/Client/WeatherDataClient.php:10
- > PHP Fatal error
Uncaught Error: Interface 'TreBiMeteo\\Http\\Server\\MiddlewareInterface' not found in wp-content/plugins/3b-meteo/src/Http/Debug/AddFilterBeforeHttpRemoteCall.php:17
- > PHP Fatal error
Uncaught Error: Interface 'TreBiMeteo\\Http\\Server\\MiddlewareInterface' not found in wp-content/plugins/3b-meteo/src/Http/Server/WeatherDataFixturesMiddleware.php:12
- > PHP Fatal error
Uncaught Error: Interface 'TreBiMeteo\\Http\\Server\\MiddlewareInterface' not found in wp-content/plugins/3b-meteo/src/Http/Debug/DebugLogConfigMiddleware.php:13
- > PHP Fatal error
Uncaught Error: Interface 'TreBiMeteo\\Http\\Server\\MiddlewareInterface' not found in wp-content/plugins/3b-meteo/src/Http/Debug/DebugLogRequestMiddleware.php:12
- > PHP Fatal error
Uncaught Error: Interface 'ItalyStrap\\Config\\Config_Interface' not found in wp-content/plugins/3b-meteo/vendor/italystrap/config/src/Config/ConfigInterface.php:11
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/TreBiMeteo.php
- > Network (severe)
wp-admin/TreBiMeteo.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% 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
Attributes that require attention:
- Screenshots: Screenshot #4 ((Old) Localita' Dati in Diretta **[trebi-b1]**) image missing
3b-meteo/3bmeteo.php 92% from 13 tests
The principal PHP file in "3B Meteo" v. 1.1.0 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("3b-meteo.php" instead of "3bmeteo.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Almost there! Just fix the following issues
- Do not distribute dangerous files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/3b-meteo/vendor/italystrap/config/codecept.bat
- ☣ wp-content/plugins/3b-meteo/vendor/italystrap/cache/codecept.bat
- ☣ wp-content/plugins/3b-meteo/vendor/italystrap/cache/create_empty_dump.bat
- ☣ wp-content/plugins/3b-meteo/vendor/italystrap/cache/test.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 81 | 1,358 | 1,735 | 22,379 |
JSON | 14 | 4 | 0 | 998 |
Markdown | 8 | 254 | 0 | 509 |
XML | 4 | 22 | 17 | 105 |
JavaScript | 6 | 29 | 30 | 94 |
SVG | 1 | 2 | 0 | 62 |
YAML | 2 | 0 | 0 | 48 |
Bourne Shell | 1 | 3 | 1 | 10 |
DOS Batch | 3 | 0 | 0 | 8 |
CSS | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 7.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 13 | |
Traits | 2 | |
Classes | 44 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 44 | 100.00% |
▷ Final classes | 32 | 72.73% |
Methods | 238 | |
▷ Static methods | 24 | 10.08% |
▷ Public methods | 174 | 73.11% |
▷ Protected methods | 44 | 18.49% |
▷ Private methods | 20 | 8.40% |
Functions | 58 | |
▷ Named functions | 29 | 50.00% |
▷ Anonymous functions | 29 | 50.00% |
Constants | 99 | |
▷ Global constants | 10 | 10.10% |
▷ Class constants | 89 | 89.90% |
▷ Public constants | 89 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin