Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.51MB] [CPU: ▼166.14ms] Passed 4 tests
An overview of server-side resources used by NetAtmoSphere
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.08 ▲0.24 | 45.16 ▲5.40 |
Dashboard /wp-admin | 3.14 ▲0.08 | 32.60 ▼18.20 |
Posts /wp-admin/edit.php | 3.16 ▲0.04 | 64.38 ▲10.33 |
Add New Post /wp-admin/post-new.php | 3.14 ▼2.30 | 28.00 ▼644.77 |
Media Library /wp-admin/upload.php | 3.14 ▲0.13 | 32.17 ▼6.98 |
NetAtmoSphere /wp-admin/options-general.php?page=netatmosphere | 3.14 | 28.35 |
Server storage [IO: ▲0.27MB] [DB: ▲0.02MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 101 new files
Database: 3 new tables, 3 new options
New tables |
---|
wp_netatmosphere_data |
wp_netatmosphere_devices_types |
wp_netatmosphere_devices |
New WordPress options |
---|
widget_netatmosphere_widget |
nas_db_version |
nas_plugin_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for NetAtmoSphere
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,888 ▲316 | 17.06 ▲1.41 | 20.89 ▲8.16 | 60.03 ▲6.56 |
Dashboard /wp-admin | 3,008 ▲77 | 6.07 ▲0.05 | 150.12 ▼5.97 | 132.33 ▲4.44 |
Posts /wp-admin/edit.php | 2,774 ▲35 | 2.73 ▲0.02 | 69.36 ▼6.41 | 101.21 ▲7.68 |
Add New Post /wp-admin/post-new.php | 1,644 ▲63 | 21.53 ▲3.71 | 306.58 ▼156.72 | 115.20 ▼13.24 |
Media Library /wp-admin/upload.php | 1,842 ▲35 | 5.05 ▲0.02 | 156.43 ▼14.62 | 134.35 ▼5.11 |
NetAtmoSphere /wp-admin/options-general.php?page=netatmosphere | 1,037 | 2.32 | 58.57 | 71.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/netatmosphere/inc/Commons/dropdown-time-units.php+29
Function create_function() is deprecated
- Zombie tables were found after uninstall: 3 tables
- wp_netatmosphere_devices
- wp_netatmosphere_data
- wp_netatmosphere_devices_types
- Zombie WordPress options detected upon uninstall: 3 options
- nas_db_version
- widget_netatmosphere_widget
- nas_plugin_version
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=netatmosphere
- > Deprecated in wp-content/plugins/netatmosphere/inc/Commons/dropdown-time-units.php+29
Function create_function() is deprecated
SRP 0% 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
Please fix the following items
- 35× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/netatmosphere/inc/class-nas-cron.php
- > /wp-content/plugins/netatmosphere/tpl/front.data.latest.tpl.php
- > /wp-content/plugins/netatmosphere/inc/Widgets/class-widget.php
- > /wp-content/plugins/netatmosphere/inc/Shortcodes/class-shortcode-base.php
- > /wp-content/plugins/netatmosphere/inc/Data/class-nas-data-table.php
- > /wp-content/plugins/netatmosphere/inc/Data/class-nas-data-cell.php
- > /wp-content/plugins/netatmosphere/admin/class-admin-nas-plugin.php
- > /wp-content/plugins/netatmosphere/autoloader.php
- > /wp-content/plugins/netatmosphere/inc/Tools/class-tool-weather.php
- > /wp-content/plugins/netatmosphere/netatmo.php
- 15× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Netatmo\\Exceptions\ASDKException' not found in wp-content/plugins/netatmosphere/lib/Netatmo-API/src/Netatmo/Exceptions/NAClientException.php:16
- > PHP Fatal error
Uncaught Error: Class 'Netatmo\\Objects\AObjectWithPicture' not found in wp-content/plugins/netatmosphere/lib/Netatmo-API/src/Netatmo/Objects/NAPerson.php:10
- > PHP Fatal error
Uncaught Error: Class 'Netatmo\\Objects\AObject' not found in wp-content/plugins/netatmosphere/lib/Netatmo-API/src/Netatmo/Objects/NACamera.php:14
- > PHP Fatal error
Uncaught Error: Class 'Netatmo\\Exceptions\AClientException' not found in wp-content/plugins/netatmosphere/lib/Netatmo-API/src/Netatmo/Exceptions/NAApiErrorType.php:6
- > PHP Fatal error
Uncaught Error: Class 'Netatmo\\Objects\AObject' not found in wp-content/plugins/netatmosphere/lib/Netatmo-API/src/Netatmo/Objects/NAObjectWithPicture.php:7
- > PHP Fatal error
Uncaught Error: Class 'Netatmo\\Objects\AObject' not found in wp-content/plugins/netatmosphere/lib/Netatmo-API/src/Netatmo/Objects/NAHome.php:13
- > PHP Fatal error
Uncaught Error: Class 'Netatmo\\Clients\AApiClient' not found in wp-content/plugins/netatmosphere/lib/Netatmo-API/src/Netatmo/Clients/NAWelcomeApiClient.php:15
- > PHP Fatal error
Uncaught Error: Class 'Netatmo\\Clients\AApiClient' not found in wp-content/plugins/netatmosphere/lib/Netatmo-API/src/Netatmo/Clients/NAWSApiClient.php:12
- > PHP Fatal error
Uncaught Error: Class 'Netatmo\\Exceptions\AClientException' not found in wp-content/plugins/netatmosphere/lib/Netatmo-API/src/Netatmo/Exceptions/NACurlErrorType.php:5
- > PHP Fatal error
Uncaught Error: Class 'Netatmo\\Clients\AApiClient' not found in wp-content/plugins/netatmosphere/lib/Netatmo-API/src/Netatmo/Clients/NAThermApiClient.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: weather, netatmo, weather data, widget, shortcode...
netatmosphere/netatmosphere.php Passed 13 tests
The main PHP file in "NetAtmoSphere" ver. 2.0.17 adds more information about the plugin and also serves as the entry point for this plugin
71 characters long description:
Fetch periodically and display weather data coming from www.netatmo.com
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
There were no executable files found in this plugin5,226 lines of code in 96 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 90 | 1,040 | 1,327 | 4,590 |
PO File | 1 | 100 | 105 | 258 |
Markdown | 1 | 120 | 0 | 255 |
CSS | 2 | 8 | 7 | 101 |
JavaScript | 2 | 8 | 25 | 22 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of 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.31 |
Average class complexity | 5.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 94.00 |
Average method complexity | 2.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 106 | |
▷ Abstract classes | 6 | 5.66% |
▷ Concrete classes | 100 | 94.34% |
▷ Final classes | 0 | 0.00% |
Methods | 354 | |
▷ Static methods | 122 | 34.46% |
▷ Public methods | 303 | 85.59% |
▷ Protected methods | 38 | 10.73% |
▷ Private methods | 13 | 3.67% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 213 | |
▷ Global constants | 17 | 7.98% |
▷ Class constants | 196 | 92.02% |
▷ Public constants | 196 | 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
No PNG files were detected