Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/wp-taf-metar-widget/WP-TAF-METAR-Widget.php+202
Use of undefined constant register_WPTafMetarWidget - assumed 'register_WPTafMetarWidget' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.91MB] [CPU: ▼54.63ms] Passed 4 tests
This is a short check of server-side resources used by taf-metar-widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 4.46 ▼40.08 |
Dashboard /wp-admin | 2.10 ▼1.20 | 6.52 ▼44.14 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 6.35 ▼41.61 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 6.22 ▼92.69 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.90 ▼30.98 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_wp-taf_metar_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
taf-metar-widget: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.28 ▼1.32 | 1.74 ▼0.13 | 43.35 ▲0.22 |
Dashboard /wp-admin | 2,206 ▲18 | 4.89 ▼0.98 | 110.82 ▼8.59 | 43.72 ▲1.50 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▲0.00 | 35.52 ▼1.62 | 36.44 ▲1.57 |
Add New Post /wp-admin/post-new.php | 1,514 ▼20 | 17.77 ▼5.37 | 690.07 ▲3.97 | 52.33 ▼5.53 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.19 ▲0.00 | 96.96 ▼3.42 | 44.04 ▼1.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/wp-taf-metar-widget/WP-TAF-METAR-Widget.php+202
Use of undefined constant register_WPTafMetarWidget - assumed 'register_WPTafMetarWidget' (this will throw an Error in a future version of PHP)
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- widget_wp-taf_metar_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: weather, metar, aviation, taf, widget...
wp-taf-metar-widget/WP-TAF-METAR-Widget.php 92% from 13 tests
"taf-metar-widget" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-taf-metar-widget.php" instead of "WP-TAF-METAR-Widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin113 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 49 | 46 | 113 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 3.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 57.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 42.86% |
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 Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin