Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▲0.57ms] Passed 4 tests
This is a short check of server-side resources used by Weather Forecast Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 41.15 ▼2.45 |
Dashboard /wp-admin | 3.37 ▲0.07 | 49.39 ▲1.98 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 54.78 ▲5.26 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 85.83 ▼2.51 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 40.91 ▲7.31 |
Shortcodes /wp-admin/admin.php?page=wfw_shortcodes_page | 3.34 | 36.34 |
Settings /wp-admin/admin.php?page=wfw_settings_page | 3.29 | 36.26 |
Weather Forecast Widget /wp-admin/admin.php?page=wfw_menu_page | 3.30 | 39.37 |
Server storage [IO: ▲1.49MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 357 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Weather Forecast Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,107 ▲361 | 15.33 ▲1.04 | 7.77 ▲5.92 | 39.02 ▼5.64 |
Dashboard /wp-admin | 2,385 ▲194 | 6.43 ▲1.54 | 135.60 ▲30.87 | 44.44 ▲1.92 |
Posts /wp-admin/edit.php | 2,291 ▲199 | 3.38 ▲1.39 | 51.78 ▲9.95 | 34.61 ▼2.54 |
Add New Post /wp-admin/post-new.php | 1,701 ▲167 | 22.15 ▼1.14 | 628.77 ▼58.74 | 39.20 ▼35.31 |
Media Library /wp-admin/upload.php | 1,424 ▲36 | 4.10 ▼0.05 | 119.89 ▲18.11 | 60.30 ▲14.17 |
Shortcodes /wp-admin/admin.php?page=wfw_shortcodes_page | 1,419 | 3.12 | 39.25 | 29.38 |
Settings /wp-admin/admin.php?page=wfw_settings_page | 1,408 | 3.05 | 40.77 | 77.15 |
Weather Forecast Widget /wp-admin/admin.php?page=wfw_menu_page | 1,047 | 3.03 | 39.29 | 26.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/weather-forecast-widget/admin/partials/weather-forecast-widget-admin-display.php
- > /wp-content/plugins/weather-forecast-widget/public/partials/weather-forecast-widget-public-display.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/weather-forecast-widget/admin/partials/weather-forecast-widget-admin-menu-shortcodes.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/weather-forecast-widget/admin/partials/weather-forecast-widget-admin-menu.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/weather-forecast-widget/admin/partials/weather-forecast-widget-admin-menu-settings.php:22
- > 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 93% 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
Please fix the following attributes:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
weather-forecast-widget/weather-forecast-widget.php 92% from 13 tests
The main PHP file in "Weather Forecast Widget" ver. 1.1.5 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 154 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected11,005 lines of code in 271 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 41 | 73 | 7,544 |
PHP | 17 | 352 | 833 | 1,969 |
PO File | 2 | 288 | 436 | 928 |
SVG | 240 | 0 | 0 | 496 |
JavaScript | 4 | 11 | 71 | 68 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 27.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 200.00 |
Average method complexity | 4.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 2 | 3.08% |
▷ Public methods | 47 | 72.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 18 | 27.69% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected