Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- Install procedure had errors
- > Warning in wp-content/plugins/metar-widget/metar-widget.php+62
Use of undefined constant register_metarwidget - assumed 'register_metarwidget' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.93MB] [CPU: ▼51.75ms] Passed 4 tests
This is a short check of server-side resources used by METAR plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 8.79 ▼34.74 |
Dashboard /wp-admin | 2.08 ▼1.23 | 4.91 ▼43.65 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 6.74 ▼40.93 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 5.46 ▼87.67 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 5.84 ▼29.78 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_metar_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for METAR plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.27 ▼0.93 | 1.67 ▼0.21 | 38.93 ▼11.72 |
Dashboard /wp-admin | 2,206 ▲18 | 5.85 ▲0.03 | 99.72 ▼4.47 | 41.31 ▲1.22 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.01 | 39.91 ▲2.11 | 34.00 ▼4.41 |
Add New Post /wp-admin/post-new.php | 1,542 ▼0 | 18.53 ▲0.39 | 612.32 ▲0.42 | 54.51 ▲0.28 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.23 ▲0.10 | 93.10 ▼12.24 | 41.38 ▲0.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/metar-widget/metar-widget.php+62
Use of undefined constant register_metarwidget - assumed 'register_metarwidget' (this will throw an Error in a future version of PHP)
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_metar_widget
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/metar-widget/metar-widget.php:12
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: Screenshot #1 (Screenshot of placed metar-widget on Cambodia vACC website) image required
metar-widget/metar-widget.php Passed 13 tests
Analyzing the main PHP file in "METAR plugin" version 0.1
81 characters long description:
Plugin to include the latest METAR information from NOAA database for any Airport
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
No dangerous file extensions were detected44 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 9 | 10 | 44 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 113.61KB | 40.86KB | ▼ 64.03% |