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
The following installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/aviationweather-widget/aviationweather-widget.php+108
Function create_function() is deprecated
Server metrics [RAM: ▼1.91MB] [CPU: ▼52.12ms] Passed 4 tests
Server-side resources used by AviationWeather Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.39 | 3.87 ▼32.80 |
Dashboard /wp-admin | 2.10 ▼1.21 | 6.03 ▼38.09 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 4.73 ▼48.35 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 5.94 ▼89.22 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.30 ▼29.51 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_aviationweather-widget |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by AviationWeather Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.25 ▼0.48 | 1.81 ▲0.20 | 38.88 ▼5.40 |
Dashboard /wp-admin | 2,195 ▲15 | 5.55 ▼0.12 | 83.63 ▼3.73 | 43.52 ▲2.10 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▼0.10 | 36.16 ▼3.17 | 31.66 ▼1.79 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.16 ▼0.25 | 604.53 ▲0.03 | 49.13 ▼18.19 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.20 ▼0.01 | 97.95 ▼0.68 | 42.58 ▼1.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/aviationweather-widget/aviationweather-widget.php+108
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_aviationweather-widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/aviationweather-widget/aviationweather-widget.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (ScreenShot of placed aviationweather-widget on a WordPress powered WebSite. (Widget Output.jpg)), #2 (ScreenShot of the admin configuration panel. (Admin Panel.jpg))
aviationweather-widget/aviationweather-widget.php Passed 13 tests
The entry point to "AviationWeather Plugin" version 1.1 is a PHP file that has certain tags in its header comment area
95 characters long description:
Plugin to show the latest METAR and TAF information from AviationWeather.org for any ICAO Code.
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
No dangerous file extensions were detected90 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 12 | 9 | 90 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 0 | |
▷ Named functions | 0 | 0.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
There were not PNG files found in your plugin