Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.77MB] [CPU: ▲4.81ms] Passed 4 tests
Analyzing server-side resources used by wp-forecast
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.25 ▲0.79 | 46.92 ▲7.46 |
Dashboard /wp-admin | 4.07 ▲0.77 | 53.14 ▲7.24 |
Posts /wp-admin/edit.php | 4.19 ▲0.83 | 51.28 ▲4.22 |
Add New Post /wp-admin/post-new.php | 6.66 ▲0.77 | 85.20 ▲0.32 |
Media Library /wp-admin/upload.php | 4.00 ▲0.77 | 40.63 ▲7.88 |
Server storage [IO: ▲1.85MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 190 new files
Database: no new tables, 18 new options
New WordPress options |
---|
widget_recent-posts |
wp-forecast-optsA |
wp-forecast-pre-transport |
wp-forecast-cacheA |
can_compress_scripts |
widget_wp-forecast |
wp-forecast-timeout |
wp-forecast-count |
widget_theysaidso_widget |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
A check of browser resources used by wp-forecast
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲73 | 14.32 ▲0.06 | 1.55 ▼0.10 | 40.49 ▼3.85 |
Dashboard /wp-admin | 2,212 ▲45 | 5.60 ▼0.06 | 91.95 ▼13.46 | 81.73 ▲44.50 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.01 ▲0.01 | 39.04 ▼2.99 | 34.79 ▼2.62 |
Add New Post /wp-admin/post-new.php | 1,697 ▲171 | 22.13 ▼0.97 | 651.23 ▼63.23 | 52.75 ▼3.44 |
Media Library /wp-admin/upload.php | 1,425 ▲22 | 4.22 ▲0.05 | 98.46 ▲2.13 | 71.36 ▲29.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 18 options in the database
- wp-forecast-delopt
- wp-forecast-pre-transport
- wp-forecast-count
- wp-forecast-ipstackapikey
- wp-forecast-optsA
- widget_recent-posts
- wp-forecast-expireA
- wp-forecast-timeout
- widget_theysaidso_widget
- widget_wp-forecast-uv
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-forecast/wp-forecast-js.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-forecast/class-wpfuvwidget.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-forecast/wpf-autoupdate.php:89
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-forecast/class-wpf-widget.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-forecast/wp-forecast.php:60
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Add a description for screenshot #4 in wp-forecast/assets to your readme.txt
wp-forecast/wp-forecast.php 85% from 13 tests
The main PHP script in "wp-forecast" version 9.2 is automatically included on every request by WordPress
It is important to fix the following:
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("lang")
- Domain Path: The domain path should be prefixed with a forward slash character ("/lang")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin22,173 lines of code in 79 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 28 | 8,925 | 12,373 | 14,014 |
PHP | 47 | 768 | 1,613 | 7,795 |
CSS | 2 | 38 | 36 | 264 |
JavaScript | 2 | 12 | 27 | 100 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 9.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 74 | |
▷ Named functions | 73 | 98.65% |
▷ Anonymous functions | 1 | 1.35% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
20 PNG files occupy 0.10MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icons/wpf-SE.png | 2.60KB | 1.68KB | ▼ 35.47% |
icons/wpf-WNW.png | 2.71KB | 1.67KB | ▼ 38.45% |
icons/wpf-ENE.png | 2.59KB | 1.66KB | ▼ 35.75% |
icons/wpf-NW.png | 2.59KB | 1.67KB | ▼ 35.43% |
icons/wpf-WSW.png | 2.59KB | 1.67KB | ▼ 35.73% |