Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.58ms] Passed 4 tests
An overview of server-side resources used by WordPress OpenWeatherMap Weather Forecast Plugin Lite
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 44.94 ▲3.91 |
Dashboard /wp-admin | 3.34 ▲0.04 | 47.07 ▼0.29 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 46.29 ▼2.11 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 85.67 ▼15.41 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.30 ▲3.49 |
Server storage [IO: ▲0.79MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_cspdy_owm_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WordPress OpenWeatherMap Weather Forecast Plugin Lite
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲99 | 13.68 ▼1.08 | 1.84 ▲0.26 | 42.27 ▼6.51 |
Dashboard /wp-admin | 2,228 ▲37 | 4.98 ▼0.91 | 101.44 ▲0.82 | 75.80 ▲33.18 |
Posts /wp-admin/edit.php | 2,128 ▲39 | 2.31 ▲0.14 | 38.01 ▼4.85 | 37.52 ▲2.65 |
Add New Post /wp-admin/post-new.php | 1,700 ▲158 | 22.94 ▲4.55 | 721.18 ▲136.03 | 30.42 ▼39.78 |
Media Library /wp-admin/upload.php | 1,422 ▲34 | 4.37 ▲0.09 | 99.14 ▲4.38 | 89.26 ▲48.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_cspdy_owm_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
- 16× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: fcObj in wp-content/plugins/wp-openweathermap-weather-forecast-lite/pressure_chart.php on line 19
- > PHP Notice
Undefined variable: fcObj in wp-content/plugins/wp-openweathermap-weather-forecast-lite/humidity_chart.php on line 19
- > PHP Notice
Undefined variable: currentObjowm in wp-content/plugins/wp-openweathermap-weather-forecast-lite/layouts/map_disabled.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-openweathermap-weather-forecast-lite/settings/widget_settings.php:13
- > PHP Fatal error
Uncaught Error: Call to a member function dt() on null in wp-content/plugins/wp-openweathermap-weather-forecast-lite/layouts/map_disabled.php:2
- > PHP Fatal error
Uncaught Error: Call to a member function fcdt() on null in wp-content/plugins/wp-openweathermap-weather-forecast-lite/pressure_chart.php:19
- > PHP Notice
Undefined variable: currentObjowm in wp-content/plugins/wp-openweathermap-weather-forecast-lite/layouts/map_right.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-openweathermap-weather-forecast-lite/layouts/map_left.php:20
- > PHP Fatal error
Uncaught Error: Call to a member function fcHumidity() on null in wp-content/plugins/wp-openweathermap-weather-forecast-lite/humidity_chart.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-openweathermap-weather-forecast-lite/widget.php:4
- > PHP Notice
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)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add descriptions for these screenshots #1, #10, #2, #3, #4, #5, #6, #7, #8, #9 in wp-openweathermap-weather-forecast-lite/assets to your readme.txt
wp-openweathermap-weather-forecast-lite/index.php 85% from 13 tests
The entry point to "WordPress OpenWeatherMap Weather Forecast Plugin Lite" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 229 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-openweathermap-weather-forecast-lite.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected2,394 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 516 | 127 | 1,699 |
JavaScript | 3 | 61 | 156 | 319 |
SVG | 1 | 0 | 0 | 257 |
CSS | 3 | 29 | 45 | 119 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 15.75 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 48 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 9 | 90.00% |
▷ Anonymous functions | 1 | 10.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
imgs/icon.png | 5.52KB | 2.92KB | ▼ 47.10% |
imgs/icon26.png | 1.52KB | 1.52KB | 0.26% |
imgs/map_left.png | 2.46KB | 1.23KB | ▼ 50.18% |
imgs/map_right.png | 2.45KB | 1.23KB | ▼ 49.72% |